Skip to content

Commit

Permalink
Allow webhook failurePolicy to be Fail
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul M Chheda <rahul.chheda@accurics.com>
  • Loading branch information
rahulchheda committed May 26, 2021
1 parent f5fa815 commit 014d696
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions deploy/helm-charts/server/templates/policy_fail_vw.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# if else block here
{{- if eq .Values.webhook.failurePolicy "Fail" }}
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
Expand Down Expand Up @@ -59,4 +59,5 @@ webhooks:
{{- else }}
- {{ . -}}
{{- end }}
{{- end }}
{{- end }}
{{- end -}}
2 changes: 1 addition & 1 deletion deploy/helm-charts/server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ persistence:

webhook:
name: webhook.terrascan.io
failurePolicy: Ignore
failurePolicy: Fail
sideEffects: None
admissionReviewVersions:
- "v1"
Expand Down

0 comments on commit 014d696

Please sign in to comment.