From d46a12a6ccf837bfaf611af0f51088a8d7020f9c Mon Sep 17 00:00:00 2001 From: timfeirg Date: Mon, 15 Jan 2024 14:32:53 +0800 Subject: [PATCH 1/2] introduce feature flag --cache-client-conf depends on https://github.com/juicedata/juicefs-csi-driver/pull/850 --- charts/juicefs-csi-driver/templates/controller.yaml | 3 +++ charts/juicefs-csi-driver/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/juicefs-csi-driver/templates/controller.yaml b/charts/juicefs-csi-driver/templates/controller.yaml index 1292c36..cca4861 100644 --- a/charts/juicefs-csi-driver/templates/controller.yaml +++ b/charts/juicefs-csi-driver/templates/controller.yaml @@ -51,6 +51,9 @@ spec: {{- if .Values.controller.provisioner }} - --provisioner=true {{- end }} + {{- if hasKey .Values.controller "cacheClientConf" }} + - --cache-client-conf={{ .Values.controller.cacheClientConf }} + {{- end }} {{- if eq .Values.mountMode "sidecar" }} - --webhook=true {{- end }} diff --git a/charts/juicefs-csi-driver/values.yaml b/charts/juicefs-csi-driver/values.yaml index a155795..3a9f411 100644 --- a/charts/juicefs-csi-driver/values.yaml +++ b/charts/juicefs-csi-driver/values.yaml @@ -109,6 +109,8 @@ controller: # Enable provisioner of controller service, must be set to true when pathPattern is used # Ref: https://juicefs.com/docs/csi/guide/pv/#using-path-pattern provisioner: false + # Cache client auth config file in user's secret, only applicable to JuiceFS EE + # cacheClientConf: false replicas: 2 resources: limits: From 803af2f9ce47bda79c122b3411d48f38586bb119 Mon Sep 17 00:00:00 2001 From: timfeirg Date: Thu, 18 Jan 2024 16:25:40 +0800 Subject: [PATCH 2/2] enable by default --- charts/juicefs-csi-driver/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/juicefs-csi-driver/values.yaml b/charts/juicefs-csi-driver/values.yaml index 3a9f411..bff84b7 100644 --- a/charts/juicefs-csi-driver/values.yaml +++ b/charts/juicefs-csi-driver/values.yaml @@ -110,7 +110,7 @@ controller: # Ref: https://juicefs.com/docs/csi/guide/pv/#using-path-pattern provisioner: false # Cache client auth config file in user's secret, only applicable to JuiceFS EE - # cacheClientConf: false + cacheClientConf: true replicas: 2 resources: limits: