-
Notifications
You must be signed in to change notification settings - Fork 173
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
Integration with cert-manager #613
Conversation
✅ Deploy Preview for capsule-documentation canceled.
|
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.
LGTM
@prometherion, I have some questions regarding this PR.
Because in previous implementation there was a third way - cert-manager can generate certificates and Capsule can patch webhooks and CRDs (due to this check, reconciler was always skipping generating new certs if they were not managed by Capsule) |
@MaxFedotov if you're enabling Cert Manager, CRD must be patched manually. However, you can still run the TLS reconcile with the Helm value
|
@prometherion What do you think if we skip reconciling certificates if |
@MaxFedotov I think it's up to the cluster administrator, we're providing all the available options to play the desired implementation:
All of these options can be easily put in place with the new Helm values, translated in Since these are advanced parameters, they're expected to use just by people who are aware of what they're doing. |
a67f3af
to
2ac316d
Compare
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.
LGTM
This PR allows deeper integration with
cert-manager
by adding new Helm values.certManager.generateCertificates
: allows to create the Certificate and Issuer requested bycert-manager
, along with the required annotations for injecting the CA in the Mutating and Validating webhookstls.create
: allows to skip the creation of the secret, useful if it must be provided externallytls.enableController
: allows to skip the start of the TLS reconciler, useful whencert-manager
is injecting on its own the CA, or managed by a third party (e.g. Vault, or custom strategies)Along with that, the
CapsuleConfiguration
has dropped the annotationcapsule.clastix.io/generate-certificates
in favor ofcapsule.clastix.io/enable-tls-configuration
that allows controlling the start of the said reconciler. This cannot be considered a breaking change since the annotation hasn't been yet released in a stable version.