int value from tpl

This commit is contained in:
Stavros kois
2023-02-10 16:08:34 +02:00
parent 33f2fccf57
commit b297437676
2 changed files with 3 additions and 3 deletions
@@ -59,7 +59,7 @@ tests:
some_host: some_host
some_scheme: HTTPS
some_path: /api/v1
some_value: some_value
some_value: 123
workload:
workload-name:
enabled: true
@@ -103,7 +103,7 @@ tests:
host: some_host
httpHeaders:
- name: key
value: some_value
value: "123"
preStop:
exec:
command:
@@ -35,7 +35,7 @@ httpGet:
{{- fail "Container - Expected non-empty <value> on <httpHeaders>" -}}
{{- end }}
- name: {{ $name }}
value: {{ tpl $value $rootCtx }}
value: {{ tpl (toString $value) $rootCtx | quote }}
{{- end -}}
{{- end -}}