Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit 97a51b5

Browse files
authored
fix: chart: update cert-manager cert. duration (external-secrets#2986)
Update cert-manager certificate duration to 1 year in the Helm chart. This commit resolves a timing issue in the external-secrets Helm chart, where the default certificate duration was previously not explicitly set. This lack of specification led to conflicts with the cert-manager's lookahead interval. By setting the `webhook.certManager.cert.duration` to "8760h" (one year), we ensure that cert-manager will renew the certificate before the external-secrets webhook starts to report issues, and restarts, due to the certificate nearing expiration (as per the lookahead interval). This solution has been discussed in external-secrets#2519. Signed-off-by: Thibault Gérondal <[email protected]>
1 parent 921ed35 commit 97a51b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

deploy/charts/external-secrets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ The command removes all the Kubernetes components associated with the chart and
153153
| webhook.certManager.addInjectorAnnotations | bool | `true` | Automatically add the cert-manager.io/inject-ca-from annotation to the webhooks and CRDs. As long as you have the cert-manager CA Injector enabled, this will automatically setup your webhook's CA to the one used by cert-manager. See https://cert-manager.io/docs/concepts/ca-injector |
154154
| webhook.certManager.cert.annotations | object | `{}` | Add extra annotations to the Certificate resource. |
155155
| webhook.certManager.cert.create | bool | `true` | Create a certificate resource within this chart. See https://cert-manager.io/docs/usage/certificate/ |
156-
| webhook.certManager.cert.duration | string | `""` | Set the requested duration (i.e. lifetime) of the Certificate. See https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec |
156+
| webhook.certManager.cert.duration | string | `"8760h"` | Set the requested duration (i.e. lifetime) of the Certificate. See https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec One year by default. |
157157
| webhook.certManager.cert.issuerRef | object | `{"group":"cert-manager.io","kind":"Issuer","name":"my-issuer"}` | For the Certificate created by this chart, setup the issuer. See https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.IssuerSpec |
158158
| webhook.certManager.cert.renewBefore | string | `""` | How long before the currently issued certificate’s expiry cert-manager should renew the certificate. See https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec Note that renewBefore should be greater than .webhook.lookaheadInterval since the webhook will check this far in advance that the certificate is valid. |
159159
| webhook.certManager.enabled | bool | `false` | Enabling cert-manager support will disable the built in secret and switch to using cert-manager (installed separately) to automatically issue and renew the webhook certificate. This chart does not install cert-manager for you, See https://cert-manager.io/docs/ |

deploy/charts/external-secrets/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ webhook:
271271
name: "my-issuer"
272272
# -- Set the requested duration (i.e. lifetime) of the Certificate. See
273273
# https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec
274-
duration: ""
274+
# One year by default.
275+
duration: "8760h"
275276
# -- How long before the currently issued certificate’s expiry
276277
# cert-manager should renew the certificate. See
277278
# https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec

0 commit comments

Comments
 (0)