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

webhook: support cert renewal in bods by using secret projectedVolume instead of subPath mounts #976

Merged
merged 2 commits into from May 13, 2020

Conversation

bonifaido
Copy link
Member

@bonifaido bonifaido commented May 12, 2020

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #960
License Apache 2.0

What's in this PR?

Using projected volumes to mount CA secrets into pods in the webhook.

Why?

Because when the secret gets modified and the pod restarts it won't work again, see: kubernetes/kubernetes#68211

Additional context

This is an upstream Kubernetes issue that is not fixed for a long time, but we can work around it locally here.

Checklist

  • Error handling code meets the guideline
  • Logging code meets the guideline (TODO)

Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
@bonifaido bonifaido requested review from pbalogh-sa and baluchicken and removed request for pbalogh-sa May 12, 2020 14:34
@bonifaido bonifaido self-assigned this May 12, 2020
@bonifaido bonifaido changed the title webhook: secret subPath mount fix webhook: secret projectedVolume instead of subPath mount May 12, 2020
@bonifaido bonifaido marked this pull request as ready for review May 12, 2020 14:39
@bonifaido bonifaido requested a review from pepov May 12, 2020 14:42
@bonifaido bonifaido merged commit c54552f into master May 13, 2020
@bonifaido bonifaido deleted the subpath-fix branch May 13, 2020 07:25
@bonifaido bonifaido changed the title webhook: secret projectedVolume instead of subPath mount webhook: support cert renewal in bods by using secret projectedVolume instead of subPath mounts May 28, 2020
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.

[vault-secrets-webhook] Container fails to start after CA certificate in Kubernetes secret renewed
2 participants