diff --git a/deploy/charts/rook-ceph/templates/clusterrole.yaml b/deploy/charts/rook-ceph/templates/clusterrole.yaml index a11437d59152..57752582fc19 100644 --- a/deploy/charts/rook-ceph/templates/clusterrole.yaml +++ b/deploy/charts/rook-ceph/templates/clusterrole.yaml @@ -613,7 +613,7 @@ rules: kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: - name: objectstorage-provisioner-role + name: objectstorage-provisioner-role{{ if .Values.currentNamespaceOnly }}-{{ .Release.Namespace }}{{ end }} labels: app.kubernetes.io/part-of: container-object-storage-interface app.kubernetes.io/component: driver-ceph diff --git a/deploy/charts/rook-ceph/templates/clusterrolebinding.yaml b/deploy/charts/rook-ceph/templates/clusterrolebinding.yaml index 801ca459ca37..4e95b0aa6cb2 100644 --- a/deploy/charts/rook-ceph/templates/clusterrolebinding.yaml +++ b/deploy/charts/rook-ceph/templates/clusterrolebinding.yaml @@ -136,14 +136,14 @@ roleRef: kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: - name: objectstorage-provisioner-role-binding + name: objectstorage-provisioner-role-binding{{ if .Values.currentNamespaceOnly }}-{{ .Release.Namespace }}{{ end }} labels: app.kubernetes.io/part-of: container-object-storage-interface app.kubernetes.io/component: driver-ceph app.kubernetes.io/name: cosi-driver-ceph subjects: - kind: ServiceAccount - name: objectstorage-provisioner + name: objectstorage-provisioner{{ if .Values.currentNamespaceOnly }}-{{ .Release.Namespace }}{{ end }} namespace: {{ .Release.Namespace }} # namespace:operator roleRef: kind: ClusterRole