From cc9e8aa7b63a643f905ed91a8802f2ef38acba07 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Tue, 14 Jun 2022 18:57:40 +0530 Subject: [PATCH] deploy: add cluster name in the templates added in helm charts which should help users. Signed-off-by: Prasanna Kumar Kalever --- charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml | 3 +++ charts/ceph-csi-cephfs/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml index 40ecfea4f..36591eb9e 100644 --- a/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml +++ b/charts/ceph-csi-cephfs/templates/provisioner-deployment.yaml @@ -123,6 +123,9 @@ spec: - "--drivername=$(DRIVER_NAME)" {{- if .Values.provisioner.profiling.enabled }} - "--enableprofiling={{ .Values.provisioner.profiling.enabled }}" +{{- end }} +{{- if .Values.provisioner.clustername }} + - "--clustername={{ .Values.provisioner.clustername }}" {{- end }} env: - name: POD_IP diff --git a/charts/ceph-csi-cephfs/values.yaml b/charts/ceph-csi-cephfs/values.yaml index 7529e07ca..71ffbf964 100644 --- a/charts/ceph-csi-cephfs/values.yaml +++ b/charts/ceph-csi-cephfs/values.yaml @@ -125,6 +125,8 @@ provisioner: maxUnavailable: 50% # Timeout for waiting for creation or deletion of a volume timeout: 60s + # cluster name to set on the subvolume + # clustername: "k8s-cluster-1" # set user created priorityclassName for csi provisioner pods. default is # system-cluster-critical which is less priority than system-node-critical