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

Support impersonation for validation #260

Merged
merged 1 commit into from
Jan 30, 2021
Merged

Support impersonation for validation #260

merged 1 commit into from
Jan 30, 2021

Conversation

splushii
Copy link
Contributor

Having a similar setup as in #217. Running kustomize-controller with minimal privileges and using serviceAccountName to "elevate" privileges for Kustomizations.

Kustomization validation was performed with the kustomize-controller service account, which with the above setup doesn't have the required privileges. This PR adds support for service account impersonation during validation.

Same approach as for apply(): https://github.com/splushii/kustomize-controller/blob/d0f2dc6e4aab2cd6dd454adec0698d5ea2bd644e/controllers/kustomization_controller.go#L595-L604

Signed-off-by: Christian Hernvall <c.hernvall@yubico.com>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @splushii good catch!

@stefanprodan stefanprodan merged commit d910238 into fluxcd:main Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants