Skip to content

Commit

Permalink
feat: By default fail to create a Pod if it's clone configuration is …
Browse files Browse the repository at this point in the history
…invalid
  • Loading branch information
John Doe committed Jun 24, 2022
1 parent e6d0be7 commit f076573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
{{- include "git-clone-operator.labels" . | nindent 8 }}
webhooks:
- name: {{ include "git-clone-operator.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
failurePolicy: Ignore # do not block whole cluster
failurePolicy: {{ .Value.webhook.failurePolicy }}
{{- if .Values.onlyLabelledNamespaces }}
namespaceSelector:
matchLabels:
Expand Down
3 changes: 3 additions & 0 deletions helm/git-clone-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ podSecurityContext:
fsGroup: 65161
runAsNonRoot: true

webhook:
failurePolicy: Fail

serviceAccount:
create: true
name: git-clone-operator-sa
Expand Down

0 comments on commit f076573

Please sign in to comment.