Skip to content

Commit 2924346

Browse files
authored
fix: make webhook failurePolicy and reinvocationPolicy configurable (#141)
1 parent 4946af7 commit 2924346

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

charts/gcp-workload-identity-federation-webhook/templates/mutating-webhook-configuration.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ webhooks:
1414
name: '{{ include "gcp-workload-identity-federation-webhook.fullname" . }}-webhook-service'
1515
namespace: '{{ .Release.Namespace }}'
1616
path: /mutate-v1-pod
17-
failurePolicy: Ignore
17+
failurePolicy: {{ .Values.webhook.failurePolicy }}
18+
reinvocationPolicy: {{ .Values.webhook.reinvocationPolicy }}
1819
name: mpod.kb.io
1920
rules:
2021
- apiGroups:

charts/gcp-workload-identity-federation-webhook/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ metricsService:
6262
targetPort: metrics
6363
type: ClusterIP
6464

65+
webhook:
66+
failurePolicy: Ignore
67+
reinvocationPolicy: Never
68+
6569
webhookService:
6670
ports:
6771
- name: webhook

0 commit comments

Comments
 (0)