Skip to content

Commit

Permalink
fix: disable controller.provisioner in process mode
Browse files Browse the repository at this point in the history
Signed-off-by: Xuhui zhang <[email protected]>
  • Loading branch information
zxh326 committed Jul 5, 2024
1 parent 1e5c68d commit ab71e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/juicefs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
- --leader-election-lease-duration={{ .Values.controller.leaderElection.leaseDuration }}
{{- end }}
{{- end }}
{{- if .Values.controller.provisioner }}
{{- if and (.Values.controller.provisioner) (ne .Values.mountMode "process" ) }}
- --provisioner=true
{{- end }}
{{- if hasKey .Values.controller "cacheClientConf" }}
Expand Down Expand Up @@ -171,7 +171,7 @@ spec:
- name: juicefs-config
mountPath: /etc/config
{{- end }}
{{- if not .Values.controller.provisioner }}
{{- if or (not .Values.controller.provisioner) (eq .Values.mountMode "process") }}
- name: csi-provisioner
image: {{ printf "%s:%s" .Values.sidecars.csiProvisionerImage.repository .Values.sidecars.csiProvisionerImage.tag }}
{{- if .Values.sidecars.csiProvisionerImage.pullPolicy }}
Expand Down

0 comments on commit ab71e8a

Please sign in to comment.