From 29870cdbcc049fe58fa130dc83113138309e357d Mon Sep 17 00:00:00 2001 From: Humble Chirammal Date: Tue, 17 May 2022 14:06:20 +0530 Subject: [PATCH] helm: remove topology RBAC section for cephfs deployment At present CephFS does not support topology aware provisioning and this commit remove the same. Signed-off-by: Humble Chirammal --- .../templates/nodeplugin-daemonset.yaml | 3 --- .../templates/provisioner-clusterrole.yaml | 8 -------- .../templates/provisioner-deployment.yaml | 3 --- charts/ceph-csi-cephfs/values.yaml | 12 ------------ 4 files changed, 26 deletions(-) diff --git a/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml b/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml index 0b997a16b..cc8b3f734 100644 --- a/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml +++ b/charts/ceph-csi-cephfs/templates/nodeplugin-daemonset.yaml @@ -75,9 +75,6 @@ spec: - "--endpoint=$(CSI_ENDPOINT)" - "--v={{ .Values.logLevel }}" - "--drivername=$(DRIVER_NAME)" -{{- if .Values.topology.enabled }} - - "--domainlabels={{ .Values.topology.domainLabels | join "," }}" -{{- end }} {{- if .Values.nodeplugin.profiling.enabled }} - "--enableprofiling={{ .Values.nodeplugin.profiling.enabled }}" {{- end }} diff --git a/charts/ceph-csi-cephfs/templates/provisioner-clusterrole.yaml b/charts/ceph-csi-cephfs/templates/provisioner-clusterrole.yaml index 280e300e6..a78f35168 100644 --- a/charts/ceph-csi-cephfs/templates/provisioner-clusterrole.yaml +++ b/charts/ceph-csi-cephfs/templates/provisioner-clusterrole.yaml @@ -53,12 +53,4 @@ rules: resources: ["persistentvolumeclaims/status"] verbs: ["update", "patch"] {{- end -}} -{{- if .Values.topology.enabled }} - - apiGroups: [""] - resources: ["nodes"] - verbs: ["get", "list", "watch"] - - apiGroups: ["storage.k8s.io"] - resources: ["csinodes"] - verbs: ["get", "list", "watch"] -{{- end }} {{- end -}} diff --git a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml index c455b8690..3e11062a9 100644 --- a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml @@ -62,9 +62,6 @@ spec: - "--leader-election=true" - "--retry-interval-start=500ms" - "--extra-create-metadata=true" -{{- if .Values.topology.enabled }} - - "--feature-gates=Topology=true" -{{- end }} env: - name: ADDRESS value: "unix:///csi/{{ .Values.provisionerSocketFile }}" diff --git a/charts/ceph-csi-cephfs/values.yaml b/charts/ceph-csi-cephfs/values.yaml index b23246a13..221996e26 100644 --- a/charts/ceph-csi-cephfs/values.yaml +++ b/charts/ceph-csi-cephfs/values.yaml @@ -206,18 +206,6 @@ provisioner: # selinux-enabled filesystems selinuxMount: true -topology: - # Specifies whether topology based provisioning support should - # be exposed by CSI - enabled: false - # domainLabels define which node labels to use as domains - # for CSI nodeplugins to advertise their domains - # NOTE: the value here serves as an example and needs to be - # updated with node labels that define domains of interest - domainLabels: - - failure-domain/region - - failure-domain/zone - storageClass: # Specifies whether the Storage class should be created create: false