From dd85bd2d338cee76b39dca392f9d68cac37df05e Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Wed, 17 Nov 2021 16:22:11 -0700 Subject: [PATCH] helm: move rbd-csi-nodeplugin from PSP resources Move the rbd-csi-nodeplugin ClusterRoleBinding from the chart PSP resources to its proper place with the rest of the operator-wide ClusterRoleBindings. Signed-off-by: Blaine Gardner --- .../rook-ceph/templates/clusterrolebinding.yaml | 13 +++++++++++++ cluster/charts/rook-ceph/templates/psp.yaml | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) 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 -}}