Uploaded image for project: 'OpenShift CFE'
  1. OpenShift CFE
  2. CFE-825

As a oc-mirror user, I would like mirrored operator catalogs to have valid caches

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • oc / oc-mirror
    • None
    • Strategic Product Work
    • 8
    • False
    • None
    • False
    • OCPSTRAT-277 - OC mirror improvements
    • CFE Sprint 237, CFE Sprint 238, CFE Sprint 239, CFE Sprint 240

      As a oc-mirror user, I would like mirrored operator catalogs to have valid caches that reflect the contents of the catalog (configs folder) based on the filtering done in the ImageSetConfig for that catalog

      so that the catalog image starts efficiently in a cluster.

      Tasks:

      • white-out /tmp on all manifests (per platform)
      • Recreate the cache under /tmp/cache using
        • extract the whole catalog
        • use the opm binary included in the extracted catalog to call (command line)
      opm serve /configs –-cache-dir /tmp/cache –-cache-only 
      • Create a new layer from /configs and /tmp/cache
        • the /tmp is compatible with all platforms
      • oc-mirror should not change the CMD nor ENTRYPOINT of the image
      • Rebuild catalog image up to the index (manifest list)

      Acceptance criteria:

      • Run the catalog container with command opm serve <configDir> --cache-dir=<cacheDir> --cache-only --cache-enforce-integrity to verify the integrity of the cache
      • 4.14 catalogs mirrored with oc-mirror v4.14 run correctly in a cluster
        • when mirrored with mirrorToMirror workflow
        • when mirrored with mirrorToMirror workflow with --include-oci-local-catalogs
        • when mirrored with mirrorToDisk + diskToMirror workflow
      • 4.14 catalogs mirrored with oc-mirror v4.14 use the pre-computed cache (not sure how to test this)
      • catalogs<= 4.13 mirrored with oc-mirror v4.14 run correctly in a cluster (this is not something we publish as supported)

              skhoury@redhat.com Sherine Khoury
              skhoury@redhat.com Sherine Khoury
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: