Support existing PSPs in Helm chart

This commit is contained in:
Eric Bailey 2021-02-23 18:31:56 -06:00
parent 3e8c8076b4
commit 63e35ac32b
9 changed files with 27 additions and 4 deletions

View file

@ -22,6 +22,10 @@ rules:
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
{{- with .Values.controller.admissionWebhooks.existingPsp }}
- {{ . }}
{{- else }}
- {{ include "ingress-nginx.fullname" . }}-admission
{{- end }}
{{- end }}
{{- end }}