Skip to content
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

CatlogSource ImagePull Secrets not working #1801

Closed
dasabhisek opened this issue Oct 8, 2020 · 3 comments
Closed

CatlogSource ImagePull Secrets not working #1801

dasabhisek opened this issue Oct 8, 2020 · 3 comments
Labels
triage/support Indicates an issue that is a support question. triage/unresolved Indicates an issue that can not or will not be resolved.

Comments

@dasabhisek
Copy link

Bug Report

I am some issue. I set the image pull secrets under .spec.secrets of CatalogSource. But I am facing Error: ErrImagePull
Also this secrets are not copied into target namespace where Operator is getting installed.

What did you do?
I set the image pull secrets under .spec.secrets of CatalogSource

What did you expect to see?
Private image can be pulled using the catalogsource secrets

What did you see instead? Under which circumstances?
But I am facing Error: ErrImagePull
Also this secrets are not copied into target namespace where Operator is getting installed.

Environment

  • operator-lifecycle-manager version: 0.19
  • OpenshiftCluseter: 4.3
@exdx
Copy link
Member

exdx commented Oct 22, 2020

HI @dasabhisek, could you confirm the version of OLM you're using? 0.19 is not a tagged release.

Looking back at an older version, even 0.13, we copy the secret from the OLM namespace to the target namespace here. I imagine the embedded CSV deployment spec would reference this secret by name in the podSpec and then when the deployment is created from the CSV the secret is available to the pods.

Are there any logs in the catalog operator related to secrets that you see? Is the secret you're using in the OLM namespace? OLM copies the secret from its own namespace into the operator-installation namespace.

@exdx exdx added the triage/support Indicates an issue that is a support question. label Oct 22, 2020
@stale
Copy link

stale bot commented Dec 21, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 21, 2020
@openshift-ci-robot openshift-ci-robot added triage/unresolved Indicates an issue that can not or will not be resolved. and removed wontfix labels Dec 22, 2020
@awgreene
Copy link
Member

awgreene commented Feb 5, 2021

This feature is working as intended. In the master branch, OLM currently allows users to provide a secret that is used to pull the CatalogSource image and the bundles contained within. OLM does not create this secret in namespaces of operators that it deploys in order to avoid privilege escalation, which would allow all users in that namespace to pull images from the registry.

@awgreene awgreene closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/support Indicates an issue that is a support question. triage/unresolved Indicates an issue that can not or will not be resolved.
Projects
None yet
Development

No branches or pull requests

4 participants