[bug-1574]: Fix offline bundle registry references#774
Merged
Conversation
c157baa to
c1d107e
Compare
donatwork
reviewed
Nov 11, 2024
samples/authorization/csm_authorization_proxy_server_v1110.yaml
Outdated
Show resolved
Hide resolved
donatwork
previously approved these changes
Nov 12, 2024
alexemc
previously approved these changes
Nov 12, 2024
donatwork
previously approved these changes
Nov 12, 2024
shaynafinocchiaro
approved these changes
Nov 12, 2024
Contributor
jooseppi-luna
left a comment
There was a problem hiding this comment.
have you tried installing with the bundle? how have we verified that it works other than looking through it?
alikdell
approved these changes
Nov 12, 2024
bharathsreekanth
approved these changes
Nov 12, 2024
Contributor
Author
@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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.0with the private registry:docker.io/private-registry.com/csi-isilon:v2.11.0. Then,docker.io/dellemc/csi-isilon:v2.11.0is 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.