Skip to content

Commit

Permalink
template apiVersion in default-backend-role controller-role (helm#18602)
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Schlotbohm <[email protected]>
  • Loading branch information
msschl authored and Ciprian Hacman committed Dec 5, 2019
1 parent 905ba16 commit 9e6841d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/nginx-ingress/templates/controller-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ rules:
- create
- patch
{{- if .Values.podSecurityPolicy.enabled }}
- apiGroups: ['extensions']
- apiGroups: ['{{ template "podSecurityPolicy.apiVersion" . }}']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [{{ template "nginx-ingress.fullname" . }}]
Expand Down
2 changes: 1 addition & 1 deletion stable/nginx-ingress/templates/default-backend-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
release: {{ .Release.Name }}
name: {{ template "nginx-ingress.fullname" . }}-backend
rules:
- apiGroups: ['extensions']
- apiGroups: ['{{ template "podSecurityPolicy.apiVersion" . }}']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames: [{{ template "nginx-ingress.fullname" . }}-backend]
Expand Down

0 comments on commit 9e6841d

Please sign in to comment.