Browse Source

Change name for ClusterRole and ClusterRoleBinding

master
Fábio Kaiser Rauber 3 years ago
parent
commit
509e24701c
  1. 6
      charts/pv-resizer/v0.1.0/templates/rbac.yaml

6
charts/pv-resizer/v0.1.0/templates/rbac.yaml

@ -3,7 +3,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Release.Name }}
name: {{ .Release.Name }}-role
labels:
{{- include "pv-resizer.labels" . | nindent 4 }}
rules:
@ -22,13 +22,13 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Release.Name }}
name: {{ .Release.Name }}-binding
labels:
{{- include "pv-resizer.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Release.Name }}
name: {{ .Release.Name }}-role
subjects:
- kind: ServiceAccount
name: {{ include "pv-resizer.serviceAccountName" . }}

Loading…
Cancel
Save