fix issue where is always interpreted as true

This commit is contained in:
Max Roby 2023-11-18 20:27:06 +01:00 committed by Chris Lu
parent 0770f567e5
commit ad9fef7a52

View file

@ -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") -}} {{- 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" -}} {{- printf "true" -}}
{{- else -}} {{- else -}}
{{- printf "false" -}} {{- printf "" -}}
{{- end -}} {{- end -}}
{{- 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 -}} {{- if or .Values.global.enableSecurity .Values.volume.extraVolumes -}}
{{- printf "true" -}} {{- printf "true" -}}
{{- else -}} {{- else -}}
{{- printf "false" -}} {{- printf "" -}}
{{- end -}} {{- end -}}
{{- end -}} {{- 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") -}} {{- if or (eq .Values.filer.data.type "persistentVolumeClaim") (eq .Values.filer.logs.type "persistentVolumeClaim") -}}
{{- printf "true" -}} {{- printf "true" -}}
{{- else -}} {{- else -}}
{{- printf "false" -}} {{- printf "" -}}
{{- end -}} {{- end -}}
{{- 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") -}} {{- if or (eq .Values.filer.data.type "hostPath") (eq .Values.filer.logs.type "hostPath") -}}
{{- printf "true" -}} {{- printf "true" -}}
{{- else -}} {{- else -}}
{{- printf "false" -}} {{- printf "" -}}
{{- end -}} {{- end -}}
{{- 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") -}} {{- if or (eq .Values.master.data.type "persistentVolumeClaim") (eq .Values.master.logs.type "persistentVolumeClaim") -}}
{{- printf "true" -}} {{- printf "true" -}}
{{- else -}} {{- else -}}
{{- printf "false" -}} {{- printf "" -}}
{{- end -}} {{- end -}}
{{- 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 -}} {{- if or .Values.global.enableSecurity .Values.volume.extraVolumes -}}
{{- printf "true" -}} {{- printf "true" -}}
{{- else -}} {{- else -}}
{{- printf "false" -}} {{- printf "" -}}
{{- end -}} {{- end -}}
{{- end -}} {{- 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 )) -}} {{- if or (not (empty .Values.volume.dir_idx )) (not (empty .Values.volume.initContainers )) -}}
{{- printf "true" -}} {{- printf "true" -}}
{{- else -}} {{- else -}}
{{- printf "false" -}} {{- printf "" -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}