Skip to content

Commit

Permalink
add support for multiple arguments for the csi-provisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
yacinebbt authored and outscale-hmi committed Sep 11, 2024
1 parent fc8f618 commit 7bc3b5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osc-bsu-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions osc-bsu-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7bc3b5e

Please sign in to comment.