-
Notifications
You must be signed in to change notification settings - Fork 69
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
feat(helm): Allow external TLS provider for webhook #420
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Anaël LATASSA <workgithub@latassa.fr>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @anael-l. Thanks for your PR. I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@@ -1,4 +1,4 @@ | |||
{{- if not .Values.app.webhook.tls.helmCert.enabled -}} | |||
{{- if .Values.app.webhook.tls.certManager.enabled -}} |
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.
This appears like a breaking change. Is it intentional? If possible, I think we should still support the app.webhook.tls.helmCert.enabled
Helm value.
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.
the app.webhook.tls.helmCert.enabled
still works, but for for existing installation, the app.webhook.tls.certManager.enabled
var would have to be set to false, which indeed is a breaking change.
Should we have instead a app.webhook.tls.externalProvider.enabled=false
var that when enabled, disables the cert-manager certficates creation ?
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.
I am not sure if this will work, but could it be an option to add a new optional Helm value to set the name of the webhook certificate secret? And when user sets this value, all use of cert-manager or Helm to generate a webhook certificate is turned off?
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
closes: #407
Added a new parameter
app.webhook.tls.certManager.enabled=true
that keeps the default config to create certmanager certificates, but that can be disabled.Added new parameters
app.webhook.annotations
andapp.webhook.service.annotations
to set annotations for theValidatingWebhookConfiguration
and WebhookService
respectively.This allows for having another way to provide TLS certificates like for instance wih the Openshift service serving certificates
Example values: