Skip to content

Add instructions to reference pull secret from bundle #321

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

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

SRodi
Copy link
Contributor

@SRodi SRodi commented Dec 4, 2023

* add instructions for image pull from private registry within bundle
* relates to operator-framework/operator-sdk#6622

Signed-off-by: Simone-Rodigari <[email protected]>
If the `imagePullSecret` is referenced in the bundle, for instance when the controller-manager image is pulled from a private registry, there is no place in the API to tell OLM to attach the `imagePullSecrets`. As a consequence, permissions to pull the image should be added directly to the controller-manager deployment configurations. This can be achieved by updating `config/manager/manager.yaml` and adding `deployment.spec.template.spec.imagePullSecrets` with the required secret name.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make this comment a little bit more generic? Instead of added directly to the controller-manager deployment configurations, something like added directly to the operator deployment's podspec. Then update that last sentence to contextualize it around "here's how that works for the operator-sdk's abstraction" in some way?

* make the instruction more generic
* provide an example for operator-sdk

Signed-off-by: Simone-Rodigari <[email protected]>
@kevinrizza
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 5, 2023
@kevinrizza kevinrizza merged commit d91e0b1 into operator-framework:master Dec 5, 2023
@SRodi SRodi deleted the patch-1 branch December 5, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants