make fix more general (eg. support levels > 5)
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
449fb81595
commit
2882d4a0c7
@ -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 }}
|
||||
|
||||
@ -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 }}
|
||||
|
||||
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user