Skip to content

Commit

Permalink
feat/support-ObjectSelectorAdmissionSkip-helm-value (#349)
Browse files Browse the repository at this point in the history
* feat/support-ObjectSelectorAdmissionSkip-helm-value

* set AllowAdmissionSkip back to false

* add matchLabels support

Co-authored-by: Bertrand Delage <bertrand.delage@sap.com>
Co-authored-by: Stuart Hayton <sjhx@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 4, 2021
1 parent 0d00ddc commit e831ca0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/portieris/templates/webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,7 @@ webhooks:
values:
- skip
{{ end }}
{{ if .Values.ObjectSelectorAdmissionSkip }}
objectSelector:
{{ toYaml .Values.ObjectSelectorAdmissionSkip | indent 6 }}
{{ end }}
9 changes: 9 additions & 0 deletions helm/portieris/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ affinity:
# enable this option!
AllowAdmissionSkip: false

ObjectSelectorAdmissionSkip:
# matchLabels:
# app: xxx
# matchExpressions:
# - key: xxxxx.xxxxx/xxx
# operator: NotIn
# values:
# - xxxx

clusterPolicy:
allowedRepositories:
# This permissive policy allows all images in namespaces which do not have an ImagePolicy.
Expand Down

0 comments on commit e831ca0

Please sign in to comment.