aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deploy/helm/seaweedfs-csi-driver/templates/daemonset.yaml3
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 }}