Admission Webhooks/ClusterRole: Align PSP rule.
This commit is contained in:
parent
c0e1120d46
commit
3d4487a932
1 changed files with 5 additions and 6 deletions
|
@ -21,14 +21,13 @@ rules:
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
{{- if .Values.podSecurityPolicy.enabled }}
|
{{- if .Values.podSecurityPolicy.enabled }}
|
||||||
- apiGroups: ['extensions']
|
- apiGroups: [{{ template "podSecurityPolicy.apiGroup" . }}]
|
||||||
resources: ['podsecuritypolicies']
|
resources: ['podsecuritypolicies']
|
||||||
verbs: ['use']
|
verbs: ['use']
|
||||||
resourceNames:
|
|
||||||
{{- with .Values.controller.admissionWebhooks.existingPsp }}
|
{{- with .Values.controller.admissionWebhooks.existingPsp }}
|
||||||
- {{ . }}
|
resourceNames: [{{ . }}]
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- {{ include "ingress-nginx.admissionWebhooks.fullname" . }}
|
resourceNames: [{{ include "ingress-nginx.admissionWebhooks.fullname" . }}]
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue