diff options
| author | chrislusf <chris.lu@gmail.com> | 2025-12-11 10:29:48 -0800 |
|---|---|---|
| committer | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-11 10:57:25 -0800 |
| commit | 1e23c5e813fe5175d4be45c5be1b820961d88f16 (patch) | |
| tree | f7091b87fb5ce0ed634baf3cabef53f1b90f2f14 /deploy | |
| parent | 1914f0f53bcbd5057a3007d5db427f6753181b60 (diff) | |
| download | seaweedfs-csi-driver-1e23c5e813fe5175d4be45c5be1b820961d88f16.tar.xz seaweedfs-csi-driver-1e23c5e813fe5175d4be45c5be1b820961d88f16.zip | |
fix: add validation to prevent invalid mountService.enabled=false config
Add a Helm validation check that fails with a clear error message when
node.enabled is true but mountService.enabled is false. This prevents
user error and guides users to the correct configuration.
Diffstat (limited to 'deploy')
| -rw-r--r-- | deploy/helm/seaweedfs-csi-driver/templates/daemonset.yaml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yaml b/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yaml index f3e97c3..ad1979f 100644 --- a/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yaml +++ b/deploy/helm/seaweedfs-csi-driver/templates/daemonset.yaml @@ -1,3 +1,6 @@ +{{- if and .Values.node.enabled (not .Values.mountService.enabled) -}} +{{- fail "mountService.enabled must be true when node.enabled is true. The CSI driver requires the mount service to function." -}} +{{- end -}} {{- if .Values.node.enabled}} {{- $mountEndpoint := default .Values.mountService.endpoint .Values.node.mountEndpoint }} {{- $mountSocketDir := default .Values.mountService.socketDir .Values.node.mountSocketDir }} |
