-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug-1574]: Fix offline bundle registry references #774
Conversation
c157baa
to
c1d107e
Compare
samples/authorization/csm_authorization_proxy_server_v1110.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you tried installing with the bundle? how have we verified that it works other than looking through it?
@jooseppi-luna Yes, this works. The issue that the customer observed with the RELATED_IMAGES environment variables is resolved and installation is successful, with relevant files updated with the registry. |
Description
The images.manifest file prior to 1.7.0, used to update the bundle with the private registry when preparing the bundle, contains references with and without docker.io for some images:
If a file contains
docker.io/dellemc/csi-isilon:v2.11.0
, preparing the bundle will replacedellemc/csi-isilon:v2.11.0
with the private registry:docker.io/private-registry.com/csi-isilon:v2.11.0
. Then,docker.io/dellemc/csi-isilon:v2.11.0
is replaced with the private registry but now that string has no matches and the file is left with the faulty registry.This fix is having all image references specify the registry.
https://github.com/dell/csm-operator/blob/main/bundle/manifests/dell-csm-operator.clusterserviceversion.yaml and https://github.com/dell/csm-operator/blob/main/operatorconfig/driverconfig/common/default.yaml, used to gather image names when building the bundle, are updated to reference all images with the public registry. Since 1.7.0, all of our images now reference quay.io except sdc, otel-collector, and nginx. These are updated to reference docker.io.
The sample files are updated to reference the registry to be consistent with the images.manifest file.
Made csm-offline-bundle.sh executable.
Adds a new unit test for code coverage improvement for PR check.
Caveats:
GitHub Issues
List the GitHub issues impacted by this PR:
Checklist:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
Built and prepared the bundle verifying that the private registry is correctly put in place in the yaml files that the user will use.
Built and installed the Operator via offline bundle.