From d5070012e95405938bf57b492bfb33922f3d8fe7 Mon Sep 17 00:00:00 2001 From: Arie Peterson <arie@greenhost.nl> Date: Wed, 26 Oct 2022 16:15:32 +0200 Subject: [PATCH] Use yaml literal style for some env variables, to allow '" quotes --- templates/tests/cypress-test-nc-oo.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/tests/cypress-test-nc-oo.yaml b/templates/tests/cypress-test-nc-oo.yaml index b74d25ab..4fb3463c 100644 --- a/templates/tests/cypress-test-nc-oo.yaml +++ b/templates/tests/cypress-test-nc-oo.yaml @@ -62,11 +62,17 @@ spec: {{- end }} {{- if .Values.tests.cypress.commitInfo.message }} - name: COMMIT_INFO_MESSAGE - value: "{{ .Values.tests.cypress.commitInfo.message }}" + # Use yaml literal style, so we can have quotes in the string. + # Newlines might not be safe to include, but unlike the name suggests + # in Stackspin we set this value to only the commit title. + value: | + {{ .Values.tests.cypress.commitInfo.message }} {{- end }} {{- if .Values.tests.cypress.commitInfo.author }} - name: COMMIT_INFO_AUTHOR - value: "{{ .Values.tests.cypress.commitInfo.author }}" + # Use yaml literal style, so we can have quotes in the string. + value: | + {{ .Values.tests.cypress.commitInfo.author }} {{- end }} {{- if .Values.tests.cypress.commitInfo.sha }} - name: COMMIT_INFO_SHA -- GitLab