diff --git a/ceph/templates/deployment-cephfs-provisioner.yaml b/ceph/templates/deployment-cephfs-provisioner.yaml index b79e7b6f48..83fb221ed5 100644 --- a/ceph/templates/deployment-cephfs-provisioner.yaml +++ b/ceph/templates/deployment-cephfs-provisioner.yaml @@ -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 diff --git a/ceph/templates/deployment-rbd-provisioner.yaml b/ceph/templates/deployment-rbd-provisioner.yaml index 0c8e973932..7e51c8ef1b 100644 --- a/ceph/templates/deployment-rbd-provisioner.yaml +++ b/ceph/templates/deployment-rbd-provisioner.yaml @@ -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