Skip to content

Commit

Permalink
Avoid null set on optional cli dataLocality arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackbennett authored and chrislusf committed Nov 10, 2023
1 parent ed701ee commit a5296eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/helm/seaweedfs-csi-driver/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ spec:
- --nodeid=$(NODE_ID)
- --driverName=$(DRIVER_NAME)
- --cacheDir=/var/cache/seaweedfs
- --dataLocality={{ .Values.dataLocality }}
{{- if ne "none" .Values.dataLocality}}
- "--dataLocality={{ .Values.dataLocality }}"
{{- end }}
{{- if .Values.node.injectTopologyInfoFromNodeLabel.enabled }}
- --dataCenter=$(DATACENTER)
{{- end }}
Expand Down

0 comments on commit a5296eb

Please sign in to comment.