diff --git a/deploy/charts/cert-manager/README.template.md b/deploy/charts/cert-manager/README.template.md index 174bc0188..e35d3342b 100644 --- a/deploy/charts/cert-manager/README.template.md +++ b/deploy/charts/cert-manager/README.template.md @@ -133,6 +133,7 @@ The following table lists the configurable parameters of the cert-manager chart | `https_proxy` | Value of the `HTTPS_PROXY` environment variable in the cert-manager pod | | | `no_proxy` | Value of the `NO_PROXY` environment variable in the cert-manager pod | | | `webhook.replicaCount` | Number of cert-manager webhook replicas | `1` | +| `webhook.timeoutSeconds` | Seconds the API server should wait the webhook to respond before treating the call as a failure. | `10` | | `webhook.podAnnotations` | Annotations to add to the webhook pods | `{}` | | `webhook.deploymentAnnotations` | Annotations to add to the webhook deployment | `{}` | | `webhook.mutatingWebhookConfigurationAnnotations` | Annotations to add to the mutating webhook configuration | `{}` | diff --git a/deploy/charts/cert-manager/templates/webhook-mutating-webhook.yaml b/deploy/charts/cert-manager/templates/webhook-mutating-webhook.yaml index b02e19679..56ff07b74 100644 --- a/deploy/charts/cert-manager/templates/webhook-mutating-webhook.yaml +++ b/deploy/charts/cert-manager/templates/webhook-mutating-webhook.yaml @@ -35,6 +35,7 @@ webhooks: - "*/*" {{- if $isV1AdmissionRegistration }} admissionReviewVersions: ["v1", "v1beta1"] + timeoutSeconds: {{ .Values.webhook.timeoutSeconds }} {{- end }} failurePolicy: Fail {{- if (semverCompare ">=1.12-0" .Capabilities.KubeVersion.GitVersion) }} diff --git a/deploy/charts/cert-manager/templates/webhook-validating-webhook.yaml b/deploy/charts/cert-manager/templates/webhook-validating-webhook.yaml index 77d7526bc..c45461e05 100644 --- a/deploy/charts/cert-manager/templates/webhook-validating-webhook.yaml +++ b/deploy/charts/cert-manager/templates/webhook-validating-webhook.yaml @@ -45,6 +45,7 @@ webhooks: - "*/*" {{- if $isV1AdmissionRegistration }} admissionReviewVersions: ["v1", "v1beta1"] + timeoutSeconds: {{ .Values.webhook.timeoutSeconds }} {{- end }} failurePolicy: Fail {{- if (semverCompare ">=1.12-0" .Capabilities.KubeVersion.GitVersion) }} diff --git a/deploy/charts/cert-manager/values.yaml b/deploy/charts/cert-manager/values.yaml index 35f3615f2..2cb976e8f 100644 --- a/deploy/charts/cert-manager/values.yaml +++ b/deploy/charts/cert-manager/values.yaml @@ -178,6 +178,7 @@ tolerations: [] webhook: replicaCount: 1 + timeoutSeconds: 10 strategy: {} # type: RollingUpdate