diff --git a/charts/ceph-csi-cephfs/templates/nodeplugin-clusterrole.yaml b/charts/ceph-csi-cephfs/templates/nodeplugin-clusterrole.yaml index e425f184050..ec61a67137b 100644 --- a/charts/ceph-csi-cephfs/templates/nodeplugin-clusterrole.yaml +++ b/charts/ceph-csi-cephfs/templates/nodeplugin-clusterrole.yaml @@ -11,9 +11,7 @@ metadata: heritage: {{ .Release.Service }} {{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }} rules: -{{- if and .Values.readAffinity .Values.readAffinity.enabled }} - apiGroups: [""] resources: ["nodes"] verbs: ["get"] -{{- end }} {{- end -}} diff --git a/charts/ceph-csi-rbd/templates/nodeplugin-clusterrole.yaml b/charts/ceph-csi-rbd/templates/nodeplugin-clusterrole.yaml index aa8ddd4fd6b..497d5a9b190 100644 --- a/charts/ceph-csi-rbd/templates/nodeplugin-clusterrole.yaml +++ b/charts/ceph-csi-rbd/templates/nodeplugin-clusterrole.yaml @@ -11,11 +11,9 @@ metadata: heritage: {{ .Release.Service }} {{- with .Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }} rules: -{{- if .Values.topology.enabled }} - apiGroups: [""] resources: ["nodes"] verbs: ["get"] -{{- end }} # allow to read Vault Token and connection options from the Tenants namespace - apiGroups: [""] resources: ["secrets"]