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

Add injector.webhookAnnotations chart option #584

Merged
merged 2 commits into from
Aug 16, 2021

Conversation

tvoran
Copy link
Member

@tvoran tvoran commented Aug 10, 2021

Allows setting annotations on the mutating webhook config.

For example, if cert-manager is managing the certificates for vault-k8s, that would require setting the CA cert in the chart values (injector.certs.caBundle). But, if the cert-manager.io/inject-ca-from: <namespace>/<secret> annotation is set on the mutating webhook config, cert-manager will keep the mutating webhook config updated with the CA from the Secret.

Allows setting annotations on the mutating webhook config
@tvoran tvoran requested review from tomhjp and benashz August 16, 2021 04:25
Copy link
Contributor

@tomhjp tomhjp left a comment

Choose a reason for hiding this comment

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

LGTM, should we also update the schema? Happy to leave that to a separate PR if we'd rather batch those changes up/roll them at release time.

{{- if .Values.injector.webhookAnnotations }}
annotations:
{{- $tp := typeOf .Values.injector.webhookAnnotations }}
{{- if eq $tp "string" }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it worth supporting string for new options?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question, though I feel like even with new options we need to keep supporting both types for consistency with the other annotation options in the chart.

@tvoran
Copy link
Member Author

tvoran commented Aug 16, 2021

@tomhjp Thanks for the reminder! Schema updated in c2a384b.

@tvoran tvoran merged commit f7ab37f into master Aug 16, 2021
@tvoran tvoran deleted the better-cert-manager-support branch August 16, 2021 20:49
@tvoran tvoran mentioned this pull request Aug 19, 2021
illegalnumbers pushed a commit to streamnative/vault-helm that referenced this pull request Mar 17, 2022
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