From bd9323e412c8effa2b417a7eb9027d28aa20fb51 Mon Sep 17 00:00:00 2001 From: Lenin Mehedy Date: Thu, 16 Nov 2023 12:38:06 +1100 Subject: [PATCH] fix: use quote for test labels Signed-off-by: Lenin Mehedy --- .../fullstack-deployment/templates/_helpers.tpl | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/charts/fullstack-deployment/templates/_helpers.tpl b/charts/fullstack-deployment/templates/_helpers.tpl index 6b039d8f0..f142bcc2a 100644 --- a/charts/fullstack-deployment/templates/_helpers.tpl +++ b/charts/fullstack-deployment/templates/_helpers.tpl @@ -1,11 +1,13 @@ {{- define "fullstack.testLabels" -}} -{{- if .Values.deployment.testMetadata.enabled }} -fullstack.hedera.com/testSuiteName: {{ .Values.deployment.testMetadata.testSuiteName }} -fullstack.hedera.com/testName: {{ .Values.deployment.testMetadata.testName }} -fullstack.hedera.com/testRunUID: {{ .Values.deployment.testMetadata.testRunUID }} -fullstack.hedera.com/testCreationTimestamp: {{ .Values.deployment.testMetadata.testCreationTimestamp }} -fullstack.hedera.com/testExpirationTimestamp: {{ .Values.deployment.testMetadata.testExpirationTimestamp }} -fullstack.hedera.com/testRequester: {{ .Values.deployment.testMetadata.testRequester }} +{{- if .Values.deployment.testMetadata.enabled -}} +{{- with .Values.deployment.testMetadata -}} +fullstack.hedera.com/testSuiteName: "{{ .testSuiteName }}" +fullstack.hedera.com/testName: "{{ .testName }}" +fullstack.hedera.com/testRunUID: "{{ .testRunUID }}" +fullstack.hedera.com/testCreationTimestamp: "{{ .testCreationTimestamp }}" +fullstack.hedera.com/testExpirationTimestamp: "{{ .testExpirationTimestamp }}" +fullstack.hedera.com/testRequester: "{{ .testRequester }}" +{{- end }} {{- end }} {{- end }}