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

ClusterStack & ClusterStore support using a private registry. #649

Closed
genevieve opened this issue Mar 22, 2021 · 3 comments · Fixed by #670
Closed

ClusterStack & ClusterStore support using a private registry. #649

genevieve opened this issue Mar 22, 2021 · 3 comments · Fixed by #670
Labels
enhancement New feature or request

Comments

@genevieve
Copy link
Contributor

While using the ClusterStack resource in our cluster (in order to use it with the builder resource), we discovered that the CRD does not support using images from a private registry. For the Build/Image resources, we can point to our builder image in that same private registry as the creds are wired up fine and the controller can access the image.

{"level":"error","ts":"2021-03-16T21:58:11.929Z","logger":"controller.Stacks","caller":"controller/controller.go:480","msg":"Reconcile error","commit":"d4de54b","error":"GET https://repo-url: UNAUTHORIZED: access to the requested resource is not authorized","stacktrace":"knative.dev/pkg/controller.(*Impl).handleErr\n\t/workspace/vendor/knative.dev/pkg/controller/controller.go:480\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\t/workspace/vendor/knative.dev/pkg/controller/controller.go:466\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\t/workspace/vendor/knative.dev/pkg/controller/controller.go:403"}

From this conversation it sounds like the issue is figuring out how to provide imagePullSecrets to these cluster scoped resources. I don't currently have a solution for modeling this and wanted to open this issue so we can track discussions around this feature.

@c0d1ngm0nk3y
Copy link
Contributor

c0d1ngm0nk3y commented Apr 16, 2021

We would like to tackle this issue since we have the same use case.

Our proposal is to introduce a field(ObjectReference to a ServiceAccount) to ClusterStore and to ClusterStack. Just like it is done in ClusterBuilder. Those credentials can be used to access the private registry.

From our understanding, this is the smallest step to support the use-case of a private registry for ClusterStack and ClusterStore.

Any remarks, notes, objections ?

Tagging my pair: @Haegi

@genevieve
Copy link
Contributor Author

This would work for us. Thanks @c0d1ngm0nk3y

@tarzzz
Copy link

tarzzz commented Sep 8, 2021

Great work! Is there a timeline for when this will be available in a release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants