make fix more general (eg. support levels > 5)

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot 2024-01-03 10:52:59 +01:00
parent 449fb81595
commit 2882d4a0c7
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ spec:
image: "{{ template "image" (tuple .Values.cainjector.image $.Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.cainjector.image.pullPolicy }}
args:
{{- if eq (.Values.global.logLevel | toString) "0" "1" "2" "3" "4" "5" }}
{{- if ne (quote .Values.global.logLevel) (quote "") }}
- --v={{ .Values.global.logLevel }}
{{- end }}
{{- with .Values.global.leaderElection }}

View File

@ -76,7 +76,7 @@ spec:
image: "{{ template "image" (tuple .Values.image $.Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
{{- if eq (.Values.global.logLevel | toString) "0" "1" "2" "3" "4" "5" }}
{{- if ne (quote .Values.global.logLevel) (quote "") }}
- --v={{ .Values.global.logLevel }}
{{- end }}
{{- if .Values.config }}

View File

@ -63,7 +63,7 @@ spec:
image: "{{ template "image" (tuple .Values.webhook.image $.Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.webhook.image.pullPolicy }}
args:
{{- if eq (.Values.global.logLevel | toString) "0" "1" "2" "3" "4" "5" }}
{{- if ne (quote .Values.global.logLevel) (quote "") }}
- --v={{ .Values.global.logLevel }}
{{- end }}
{{- if .Values.webhook.config }}