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

Loading…
Cancel
Save