helm: Fix missing ClusterRoleBinding for nodeplugin ServiceAccount

When topology is disabled, the ClusterRoleBinding is not created in the Helm
chart. However, the nodeplugin needs access to volumeattachments for the volume
healer.

Signed-off-by: Steven Reitsma <steven@properchaos.nl>
This commit is contained in:
Steven Reitsma 2021-12-21 14:54:34 +01:00 committed by mergify[bot]
parent bc8ef89811
commit 6be0e8cb51

View File

@ -1,5 +1,4 @@
{{- if .Values.rbac.create -}}
{{- if .Values.topology.enabled }}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
@ -18,5 +17,4 @@ roleRef:
kind: ClusterRole
name: {{ include "ceph-csi-rbd.nodeplugin.fullname" . }}
apiGroup: rbac.authorization.k8s.io
{{- end }}
{{- end -}}