Uploaded image for project: 'Managed Service - API'
  1. Managed Service - API
  2. MGDAPI-4710

Refactor create bundle script to not overwrite existing images

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical Critical
    • 1.28.0
    • None
    • None
    • RHOAM Sprint 31

      WHAT
      The bundle-rhmi-operators.sh script used by make create/olm/bundle currently rebuilds and pushes bundle images regardless if the image already exists remotely in its registry. This becomes a problem when building the official bundle and index images for new versions of multitenant RHOAM because every previous bundle/index image in the chain will be rebuilt and pushed, overwriting the existing version of the image in quay.

      To get around this, the script needs to be refactored to support a command line argument, for example DONT_OVERWRITE, which when set to true will prevent the script from rebuilding and pushing images that already exist remotely.

      HOW
      <Suggestions for how this may be solved. [Optional]>

      DONE

      • The script doesn't overwrite existing remote images if DONT_OVERWRITE=true when running the script
      • All existing functionality is preserved

              ckyrillo@redhat.com Carl Kyrillos
              ckyrillo@redhat.com Carl Kyrillos
              Fiona Waters Fiona Waters
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: