Ceph: Include release name in cluster roles to prevent collision
This PS includes the release name in the cluster role to prevent colision if the chart is deployed multiple times in the same cluster. Change-Id: I8e90367769a8b955981c0f2cf4f29756c448e1d7
This commit is contained in:
parent
e5168393ac
commit
7c68e446c0
@ -18,7 +18,7 @@ limitations under the License.
|
||||
{{- $envAll := . }}
|
||||
{{- $dependencies := .Values.dependencies.cephfs_provisioner }}
|
||||
|
||||
{{- $serviceAccountName := "ceph-cephfs-provisioner"}}
|
||||
{{- $serviceAccountName := printf "%s-%s" .Release.Name "ceph-cephfs-provisioner" }}
|
||||
{{ tuple $envAll $dependencies $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
|
@ -18,7 +18,7 @@ limitations under the License.
|
||||
{{- $envAll := . }}
|
||||
{{- $dependencies := .Values.dependencies.rbd_provisioner }}
|
||||
|
||||
{{- $serviceAccountName := "ceph-rbd-provisioner"}}
|
||||
{{- $serviceAccountName := printf "%s-%s" .Release.Name "ceph-rbd-provisioner" }}
|
||||
{{ tuple $envAll $dependencies $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
|
Loading…
Reference in New Issue
Block a user