diff --git a/charts/curve-csi/templates/csi-daemonset.yaml b/charts/curve-csi/templates/csi-daemonset.yaml index 2828a5a..2508015 100644 --- a/charts/curve-csi/templates/csi-daemonset.yaml +++ b/charts/curve-csi/templates/csi-daemonset.yaml @@ -79,7 +79,7 @@ spec: - name: CSI_ENDPOINT value: unix:///csi/csi.sock - name: MDSADDR - value: 10.0.0.1:6700,10.0.0.2:6700,10.0.0.3:6700 + value: {{ .Values.curve.mdsAddr }} resources: {{ toYaml .Values.nodeplugin.plugin.resources | indent 10 }} volumeMounts: diff --git a/charts/curve-csi/templates/csi-deployment.yaml b/charts/curve-csi/templates/csi-deployment.yaml index 48acd7b..ec46b59 100644 --- a/charts/curve-csi/templates/csi-deployment.yaml +++ b/charts/curve-csi/templates/csi-deployment.yaml @@ -116,7 +116,7 @@ spec: - --endpoint=$(CSI_ENDPOINT) - --drivername=curve.csi.netease.com - --nodeid=$(NODE_ID) - - --snapshot-server={{ .Values.controllerplugin.snapshotServer }} + - --snapshot-server={{ .Values.curve.snapshotServer }} {{- if .Values.controllerplugin.debug.enabled }} - "--debug-port={{ .Values.controllerplugin.debug.port }}" {{- end }} @@ -142,7 +142,7 @@ spec: - name: CSI_ENDPOINT value: unix:///csi/csi-provisioner.sock - name: MDSADDR - value: 10.0.0.1:6700,10.0.0.2:6700,10.0.0.3:6700 + value: {{ .Values.curve.mdsAddr }} resources: {{ toYaml .Values.controllerplugin.plugin.resources | indent 10 }} volumeMounts: diff --git a/charts/curve-csi/values.yaml b/charts/curve-csi/values.yaml index 874d921..d1e74f7 100644 --- a/charts/curve-csi/values.yaml +++ b/charts/curve-csi/values.yaml @@ -1,3 +1,7 @@ +curve: + mdsAddr: + snapshotServer: + # node plugin variables nodeplugin: debug: @@ -9,7 +13,7 @@ nodeplugin: hostDir: /var/log/curve-csi-node plugin: - image: curvecsi/curve-csi:v3.0.0 + image: curvecsi/curve-csi:v3.0.1 # add resources limit resources: {} @@ -28,8 +32,6 @@ nodeplugin: controllerplugin: replicas: 2 - snapshotServer: http://127.0.0.1:5555 - debug: enabled: true port: 9696 @@ -39,7 +41,7 @@ controllerplugin: hostDir: /var/log/curve-csi-controller plugin: - image: curvecsi/curve-csi:v3.0.0 + image: curvecsi/curve-csi:v3.0.1 # add resources limit resources: {} @@ -68,3 +70,6 @@ controllerplugin: tolerations: [] affinity: {} + +storageClass: + enable: false \ No newline at end of file