-
Notifications
You must be signed in to change notification settings - Fork 117
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
Allow extra manually added pull secrets to managed SA #418
Conversation
Add an annotation to keep track of managed pullsecrets on the created service account
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.
First glance looks good, need to test more thoroughly. Would you consider adding some tests to the end-to-end testing as well?
Hey @sudermanjr, I've rearranged the e2e tests a bit so I think it kinda make more sense now there are multiple tests. Also I take the liberty to bump the yq version up so I can use it into the e2e test to analyze the SA manifests. This is my first time doing this kind of e2e test, so if there are any further adjustments needed or if something isn't quite right, please just let me know so I can fix it. |
forgot to commit the yq fix on the pre script, sorry |
I think now it should be fixed for good, but I can not run the whole e2e tests. Is there any way to run this locally to not be waiting for the CI to be enabled? |
Apparently these tests are a much older format that is just a bash script. Seems like you would have to spin up a kind cluster, built the rbac-manager image, and then use |
Seems like the e2e/rbacdefinition folder isn't getting copied to the "command-runner" container in CircleCI. I think you'll need an additional |
yeah, you're right! I was thinking it was the BASE_DIR variable but it was properly resolved |
That got a lot closer. Looks like just a couple tweaks to the yq commands now looks like the version of yq in the command runner is being overwritten somewhere:
Edit: looks like we're only installing Happy to do that in a separate PR, but if you want to do it we can just lump all this together. |
I've updated the versions. I'm not sure that this is the problem now, but it's fine by me to do it in this PR |
LGTM. Thanks! |
This PR fixes #417
Checklist
Description
What's the goal of this PR?
Change the default behaviour of service account pull secrets to support adding extra ones, supporting global pull secrets on OKD/OCP and the ones manually added
What changes did you make?
The SA matching logic is updated so it matches SAs with the same metadata and if all of the desired pull secrets are present on the existing SA.
What alternative solution should we consider, if any?