-
Notifications
You must be signed in to change notification settings - Fork 25
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
controller-manager: Configurable image repos + imagePullSecrets #170
controller-manager: Configurable image repos + imagePullSecrets #170
Conversation
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.
Thanks for the contribution. I had one suggestion and a question.
Can you run this from the repo root dir?
I just noticed we no longer run this in our CI. I'll fix this separately, but it should be clean for you. |
|
a130aac
to
2ba0008
Compare
@@ -10,7 +10,7 @@ spec: | |||
spec: | |||
containers: | |||
- name: kube-rbac-proxy | |||
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0 | |||
image: kube-rbac-proxy |
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.
I think this is messing up the olm install of the operator. Can we revert this and update the sed in create-helm-charts.sh so that it is able to match this line?
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.
I can. Is there any documentation for testing "olm install" on my desktop? I don't know what that is. I'm also curious why this install flow doesn't simply use helm and take the default from there.
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.
You can deploy with OLM via this:
DEPLOY_WITH=olm make setup-olm deploy
This is taken from DEVELOPER.md.
OLM is the deployment method for operatorhub.io. It's deployment is baked into the operator-sdk that we use, so we don't have as much control over it when compared to helm.
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.
Thanks. I pushed a new change. Please note I also added imagePullSecrets to values.yaml to access private repos; I forgot it in my initial submission.
The ... setup-olm deploy
command successfully built an image, but failed push to docker.io/library/verticadb-operator-bundle
due to permissions. I'm not sure how to how to change this location for a test.
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.
Okay. I will take a closer look on Monday. You can set BUNDLE_IMG
environment variable to control the image name. But lets use the CI to test this out.
2ba0008
to
bd54812
Compare
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.
Looks good. I added a unit test for the new helm parameters. We should merge with latest main to pickup the most recent changes. Did you have trouble signing the CLA?
Add config option for kube-rbac-proxy image instead of a hard coded name, so that the controller-manager can be depoloyed from a 3rd party registry (e.g. air gapped cluster, caching proxy). Add image.repo config options to allow specifying a different repository without changing name or version, for convenience. Add imagePullSecrets so that images can be pulled from private repos.
27b2ca3
to
a2b74f1
Compare
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.
Thanks for contributing
…ica#170) Add config option for kube-rbac-proxy image instead of a hard coded name, so that the controller-manager can be depoloyed from a 3rd party registry (e.g. air gapped cluster, caching proxy). Add image.repo config options to allow specifying a different repository without changing name or version, for convenience. Add imagePullSecrets so that images can be pulled from private repos.
Add config option for kube-rbac-proxy image instead of a hard
coded name, so that the controller-manager can be depoloyed
from a 3rd party registry (e.g. air gapped cluster, caching proxy).
Add image.repo config options to allow specifying a different
repository without changing name or version, for convenience.
Add imagePullSecrets so that images can be pulled from private repos.