diff --git a/helm/kubernetes-operator/templates/webhook.yaml b/helm/kubernetes-operator/templates/webhook.yaml index 4ba96f3..3f55934 100644 --- a/helm/kubernetes-operator/templates/webhook.yaml +++ b/helm/kubernetes-operator/templates/webhook.yaml @@ -19,7 +19,7 @@ webhooks: name: {{ template "kubernetes-operator.webhookService" . }} namespace: {{ $.Release.Namespace }} path: /mutate--v1-pod - failurePolicy: Fail + failurePolicy: {{ .Values.webhook.failurePolicy }} name: mpod-v1.netbird.io admissionReviewVersions: - v1 @@ -71,7 +71,7 @@ webhooks: name: {{ template "kubernetes-operator.webhookService" . }} namespace: {{ $.Release.Namespace }} path: /validate-netbird-io-v1-nbsetupkey - failurePolicy: Fail + failurePolicy: {{ .Values.webhook.failurePolicy }} name: vnbsetupkey-v1.netbird.io admissionReviewVersions: - v1 @@ -112,7 +112,7 @@ webhooks: name: {{ template "kubernetes-operator.webhookService" . }} namespace: {{ $.Release.Namespace }} path: /validate-netbird-io-v1-nbresource - failurePolicy: Fail + failurePolicy: {{ .Values.webhook.failurePolicy }} name: vnbresource-v1.netbird.io admissionReviewVersions: - v1 @@ -151,7 +151,7 @@ webhooks: name: {{ template "kubernetes-operator.webhookService" . }} namespace: {{ $.Release.Namespace }} path: /validate-netbird-io-v1-nbroutingpeer - failurePolicy: Fail + failurePolicy: {{ .Values.webhook.failurePolicy }} name: vnbroutingpeer-v1.netbird.io admissionReviewVersions: - v1 @@ -190,7 +190,7 @@ webhooks: name: {{ template "kubernetes-operator.webhookService" . }} namespace: {{ $.Release.Namespace }} path: /validate-netbird-io-v1-nbgroup - failurePolicy: Fail + failurePolicy: {{ .Values.webhook.failurePolicy }} name: vnbgroup-v1.netbird.io admissionReviewVersions: - v1 diff --git a/helm/kubernetes-operator/values.yaml b/helm/kubernetes-operator/values.yaml index 3d0e332..6bcaa17 100644 --- a/helm/kubernetes-operator/values.yaml +++ b/helm/kubernetes-operator/values.yaml @@ -30,6 +30,9 @@ webhook: # operator: NotIn # values: # - foo + + # Failure Policy for webhook + failurePolicy: Fail operator: # This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/