|
|
@ -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" . }} |
|
|
|