File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ kind: MutatingWebhookConfiguration
55metadata:
66 name: { { (split " ." .operatorName)._0 } }
77webhooks:
8- - name: { { .operatorName } }
8+ - name: mutate. { { .resource } }. { { .groupName } }
99 admissionReviewVersions:
1010 - v1
1111 clientConfig:
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ kind: ValidatingWebhookConfiguration
55metadata:
66 name: { { (split " ." .operatorName)._0 } }
77webhooks:
8- - name: { { .operatorName } }
8+ - name: validate. { { .resource } }. { { .groupName } }
99 admissionReviewVersions:
1010 - v1
1111 clientConfig:
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ metadata:
7777 cert-manager.io/inject-ca-from: { {`{{`} } .Release.Namespace { {`} }`}}/{ {`{{`} } include "{ { $operator } }.fullname" . { {`} }`}}
7878 { {`{{`} }- end { {`} }`}}
7979webhooks:
80- - name: { { .operatorName } }
80+ - name: validate. { { .resource } }. { { .groupName } }
8181 admissionReviewVersions:
8282 - v1
8383 clientConfig:
@@ -101,9 +101,10 @@ webhooks:
101101 resources:
102102 - { { .resource } }
103103 scope: Namespaced
104- failurePolicy: Fail
104+ matchPolicy: Equivalent
105105 sideEffects: None
106106 timeoutSeconds: 10
107+ failurePolicy: Fail
107108{ {- end } }
108109{ {- if .mutatingWebhookEnabled } }
109110---
@@ -118,7 +119,7 @@ metadata:
118119 cert-manager.io/inject-ca-from: { {`{{`} } .Release.Namespace { {`} }`}}/{ {`{{`} } include "{ { $operator } }.fullname" . { {`} }`}}
119120 { {`{{`} }- end { {`} }`}}
120121webhooks:
121- - name: { { .operatorName } }
122+ - name: mutate. { { .resource } }. { { .groupName } }
122123 admissionReviewVersions:
123124 - v1
124125 clientConfig:
@@ -141,8 +142,9 @@ webhooks:
141142 resources:
142143 - { { .resource } }
143144 scope: Namespaced
144- failurePolicy: Fail
145+ matchPolicy: Equivalent
145146 sideEffects: None
146- reinvocationPolicy: Never
147147 timeoutSeconds: 10
148+ failurePolicy: Fail
149+ reinvocationPolicy: Never
148150{ {- end } }
You can’t perform that action at this time.
0 commit comments