Explicitly set webhook match policy to Equivalent

Signed-off-by: irbekrm <irbekrm@gmail.com>
This commit is contained in:
irbekrm 2021-07-08 08:16:48 +01:00
parent 3fc6fc62a2
commit 160e638c8f
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,10 @@ webhooks:
resources:
- "*/*"
admissionReviewVersions: ["v1", "v1beta1"]
# This webhook only accepts v1 cert-manager resources.
# Equivalent matchPolicy ensures that non-v1 resource requests are sent to
# this webhook (after the resources have been converted to v1).
matchPolicy: Equivalent
timeoutSeconds: {{ .Values.webhook.timeoutSeconds }}
failurePolicy: Fail
# Only include 'sideEffects' field in Kubernetes 1.12+

View File

@ -38,6 +38,10 @@ webhooks:
resources:
- "*/*"
admissionReviewVersions: ["v1", "v1beta1"]
# This webhook only accepts v1 cert-manager resources.
# Equivalent matchPolicy ensures that non-v1 resource requests are sent to
# this webhook (after the resources have been converted to v1).
matchPolicy: Equivalent
timeoutSeconds: {{ .Values.webhook.timeoutSeconds }}
failurePolicy: Fail
sideEffects: None