Skip to content

Commit 651fd1c

Browse files
committed
feat: allow setting mutating webhook failurepolicy
fixes #654
1 parent bcdafd2 commit 651fd1c

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

chart/open-feature-operator/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ labels: {}
1818
## @param annotations Annotations to apply to all of the pods in the operator.
1919
annotations: {}
2020

21+
## @section Mutating Webhook configuration
22+
mutatingWebhook:
23+
## @param mutatingWebhook.failurePolicy FailurePolicy when the webhook does not respond
24+
failurePolicy: Ignore
25+
## @param mutatingWebhook.objectSelector ObjectSelector on which pods the mutatingWebhook will run
26+
objectSelector: {}
2127
## @section Sidecar configuration
2228
sidecarConfiguration:
2329
## @param sidecarConfiguration.port Sets the value of the `XXX_PORT` environment variable for the injected sidecar.

config/overlays/helm/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ patchesStrategicMerge:
1616
- manager.yaml
1717
- exclude-webhook-server-container-port.yaml
1818
- exclude-validatingwebhook.yaml
19+
- mutatingwebhook.yaml
1920

2021
configMapGenerator:
2122
- name: manager-config
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: admissionregistration.k8s.io/v1
2+
kind: MutatingWebhookConfiguration
3+
metadata:
4+
name: mutating-webhook-configuration
5+
webhooks:
6+
- name: mutate.openfeature.dev
7+
failurePolicy: "___{{ .Values.mutatingWebhook.failurePolicy }}___"
8+
objectSelector: "___{{ toYaml .Values.mutatingWebhook.objectSelector | nindent 4 }}___"

0 commit comments

Comments
 (0)