From 509e24701cef8a170cd821fdab05849edbe30b28 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Tue, 26 Apr 2022 15:52:18 -0300 Subject: [PATCH] Change name for ClusterRole and ClusterRoleBinding --- charts/pv-resizer/v0.1.0/templates/rbac.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/pv-resizer/v0.1.0/templates/rbac.yaml b/charts/pv-resizer/v0.1.0/templates/rbac.yaml index ca8263b..78ac40b 100644 --- a/charts/pv-resizer/v0.1.0/templates/rbac.yaml +++ b/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" . }}