aboutsummaryrefslogtreecommitdiff
path: root/k8s
diff options
context:
space:
mode:
authorMax Roby <max@lil-mac.lan>2023-11-18 20:27:06 +0100
committerChris Lu <chrislusf@users.noreply.github.com>2023-11-20 13:52:04 -0800
commitad9fef7a52105895b1fd7cc8d371b8f63bb2b0c2 (patch)
tree933f46e66773980c3603e6939013f996790e4668 /k8s
parent0770f567e54df117a41488ebc6dd515108dd9c6d (diff)
downloadseaweedfs-ad9fef7a52105895b1fd7cc8d371b8f63bb2b0c2.tar.xz
seaweedfs-ad9fef7a52105895b1fd7cc8d371b8f63bb2b0c2.zip
fix issue where is always interpreted as true
Diffstat (limited to 'k8s')
-rw-r--r--k8s/charts/seaweedfs/templates/_helpers.tpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/k8s/charts/seaweedfs/templates/_helpers.tpl b/k8s/charts/seaweedfs/templates/_helpers.tpl
index 712657474..611a2b4ef 100644
--- a/k8s/charts/seaweedfs/templates/_helpers.tpl
+++ b/k8s/charts/seaweedfs/templates/_helpers.tpl
@@ -118,7 +118,7 @@ Inject extra environment vars in the format key:value, if populated
{{- if or (or (eq .Values.volume.data.type "persistentVolumeClaim") (and (eq .Values.volume.idx.type "persistentVolumeClaim") .Values.volume.dir_idx )) (eq .Values.volume.logs.type "persistentVolumeClaim") -}}
{{- printf "true" -}}
{{- else -}}
-{{- printf "false" -}}
+{{- printf "" -}}
{{- end -}}
{{- end -}}
@@ -130,7 +130,7 @@ Inject extra environment vars in the format key:value, if populated
{{- if or .Values.global.enableSecurity .Values.volume.extraVolumes -}}
{{- printf "true" -}}
{{- else -}}
-{{- printf "false" -}}
+{{- printf "" -}}
{{- end -}}
{{- end -}}
{{- end -}}
@@ -140,7 +140,7 @@ Inject extra environment vars in the format key:value, if populated
{{- if or (eq .Values.filer.data.type "persistentVolumeClaim") (eq .Values.filer.logs.type "persistentVolumeClaim") -}}
{{- printf "true" -}}
{{- else -}}
-{{- printf "false" -}}
+{{- printf "" -}}
{{- end -}}
{{- end -}}
@@ -149,7 +149,7 @@ Inject extra environment vars in the format key:value, if populated
{{- if or (eq .Values.filer.data.type "hostPath") (eq .Values.filer.logs.type "hostPath") -}}
{{- printf "true" -}}
{{- else -}}
-{{- printf "false" -}}
+{{- printf "" -}}
{{- end -}}
{{- end -}}
@@ -158,7 +158,7 @@ Inject extra environment vars in the format key:value, if populated
{{- if or (eq .Values.master.data.type "persistentVolumeClaim") (eq .Values.master.logs.type "persistentVolumeClaim") -}}
{{- printf "true" -}}
{{- else -}}
-{{- printf "false" -}}
+{{- printf "" -}}
{{- end -}}
{{- end -}}
@@ -170,7 +170,7 @@ Inject extra environment vars in the format key:value, if populated
{{- if or .Values.global.enableSecurity .Values.volume.extraVolumes -}}
{{- printf "true" -}}
{{- else -}}
-{{- printf "false" -}}
+{{- printf "" -}}
{{- end -}}
{{- end -}}
{{- end -}}
@@ -180,7 +180,7 @@ Inject extra environment vars in the format key:value, if populated
{{- if or (not (empty .Values.volume.dir_idx )) (not (empty .Values.volume.initContainers )) -}}
{{- printf "true" -}}
{{- else -}}
-{{- printf "false" -}}
+{{- printf "" -}}
{{- end -}}
{{- end -}}