Skip to content

Commit

Permalink
add condition if the variable is not defined or null
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 7bc3b5e commit 75a9b10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osc-bsu-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,11 @@ spec:
{{- if .Values.extraCreateMetadata }}
- --extra-create-metadata
{{- end}}
{{- if .Values.sidecars.provisionerImage.extraArgs }}
{{- range $key, $value := .Values.sidecars.provisionerImage.extraArgs }}
- {{ $key }}={{ $value }}
{{- end }
{{- end }}
{{- end }}
- --leader-election=true
{{- if .Values.sidecars.provisionerImage.leaderElection.leaseDuration }}
- --leader-election-lease-duration={{ .Values.sidecars.provisionerImage.leaderElection.leaseDuration }}
Expand Down

0 comments on commit 75a9b10

Please sign in to comment.