diff --git a/cluster/charts/rook-ceph/templates/clusterrolebinding.yaml b/cluster/charts/rook-ceph/templates/clusterrolebinding.yaml index b4a3935fd..732ff20e1 100644 --- a/cluster/charts/rook-ceph/templates/clusterrolebinding.yaml +++ b/cluster/charts/rook-ceph/templates/clusterrolebinding.yaml @@ -49,6 +49,19 @@ subjects: --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: rbd-csi-nodeplugin +roleRef: + kind: ClusterRole + name: rbd-csi-nodeplugin + apiGroup: rbac.authorization.k8s.io +subjects: + - kind: ServiceAccount + name: rook-csi-rbd-plugin-sa + namespace: {{ .Release.Namespace }} # namespace:operator +--- +kind: ClusterRoleBinding +apiVersion: rbac.authorization.k8s.io/v1 metadata: name: cephfs-csi-nodeplugin subjects: diff --git a/cluster/charts/rook-ceph/templates/psp.yaml b/cluster/charts/rook-ceph/templates/psp.yaml index 77667a1f5..1b46af488 100644 --- a/cluster/charts/rook-ceph/templates/psp.yaml +++ b/cluster/charts/rook-ceph/templates/psp.yaml @@ -163,18 +163,5 @@ subjects: - kind: ServiceAccount name: rook-csi-rbd-provisioner-sa namespace: {{ .Release.Namespace }} # namespace:operator ---- -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: rbd-csi-nodeplugin -roleRef: - kind: ClusterRole - name: rbd-csi-nodeplugin - apiGroup: rbac.authorization.k8s.io -subjects: - - kind: ServiceAccount - name: rook-csi-rbd-plugin-sa - namespace: {{ .Release.Namespace }} # namespace:operator {{- end }} {{- end -}}