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

Authentication service secret efficiency change #437

Merged
merged 2 commits into from
Dec 8, 2022

Conversation

waterfoul
Copy link

Moved the creation of the authentication service secret out of mutate containers. Before it was attempting to create an identical secret for each container and init container. The end result was a single secret but there was quite a bit of time spent spinning over the containers checking to see if the secret (which was already created) was there. This change moves it outside mutateContainers resulting in a single attempt instead of container count + init container count attempts.
Ex. If you have 5 containers and 3 init containers it would try 7 times before, it now does it once.
In our cluster this was causing the webhook to timeout on a large pod with many containers

cmd/azure-keyvault-secrets-webhook/pod.go Outdated Show resolved Hide resolved
@181192 181192 merged commit c4fac0c into SparebankenVest:master Dec 8, 2022
@181192
Copy link
Collaborator

181192 commented Dec 8, 2022

Thank you very much @waterfoul released webhook image 1.4.1

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