diff --git a/osc-bsu-csi-driver/templates/controller.yaml b/osc-bsu-csi-driver/templates/controller.yaml index 071fbb97..e77a9aab 100644 --- a/osc-bsu-csi-driver/templates/controller.yaml +++ b/osc-bsu-csi-driver/templates/controller.yaml @@ -145,6 +145,9 @@ spec: {{- if .Values.extraCreateMetadata }} - --extra-create-metadata {{- end}} + {{- range $key, $value := .Values.sidecars.provisionerImage.extraArgs }} + - {{ $key }}={{ $value }} + {{- end } - --leader-election=true {{- if .Values.sidecars.provisionerImage.leaderElection.leaseDuration }} - --leader-election-lease-duration={{ .Values.sidecars.provisionerImage.leaderElection.leaseDuration }} diff --git a/osc-bsu-csi-driver/values.yaml b/osc-bsu-csi-driver/values.yaml index 73d0b2c8..3000f6fd 100644 --- a/osc-bsu-csi-driver/values.yaml +++ b/osc-bsu-csi-driver/values.yaml @@ -43,6 +43,10 @@ sidecars: enableLivenessProbe: false # -- Customize leaderElection, you can specify `leaseDuration`, `renewDeadline` and/or `retryPeriod`. Each value must be in an acceptable time.ParseDuration format.(Ref: https://pkg.go.dev/flag#Duration) leaderElection: {} + extraArgs: + --feature-gates: "CrossNamespaceVolumeDataSource=true" + --feature-gates: "NodeSwap=true" + # ... other arguments that can be used by the provisioner when it is needed. attacherImage: repository: registry.k8s.io/sig-storage/csi-attacher tag: "v3.3.0"