From b2974376762ff3aa94158019c6621d5e1eed3e50 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Fri, 10 Feb 2023 16:08:34 +0200 Subject: [PATCH] int value from tpl --- library/common-test/tests/container/lifecycle_test.yaml | 4 ++-- .../common/1.0.0/templates/lib/container/actions/_httpGet.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/common-test/tests/container/lifecycle_test.yaml b/library/common-test/tests/container/lifecycle_test.yaml index 35bf215796..dce725f990 100644 --- a/library/common-test/tests/container/lifecycle_test.yaml +++ b/library/common-test/tests/container/lifecycle_test.yaml @@ -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: diff --git a/library/common/1.0.0/templates/lib/container/actions/_httpGet.tpl b/library/common/1.0.0/templates/lib/container/actions/_httpGet.tpl index 72446f4220..eb9eb1b35f 100644 --- a/library/common/1.0.0/templates/lib/container/actions/_httpGet.tpl +++ b/library/common/1.0.0/templates/lib/container/actions/_httpGet.tpl @@ -35,7 +35,7 @@ httpGet: {{- fail "Container - Expected non-empty on " -}} {{- end }} - name: {{ $name }} - value: {{ tpl $value $rootCtx }} + value: {{ tpl (toString $value) $rootCtx | quote }} {{- end -}} {{- end -}}