From 7c985b189665d2c5fd2ec48fb1b649834046e89e Mon Sep 17 00:00:00 2001 From: Peter Motzko Date: Mon, 14 Aug 2023 11:32:51 +0200 Subject: [PATCH] fix(helm): add missing "quote" function and adjust tests --- .../templates/deployment.yaml | 2 +- .../tests/custom-values/deployment_test.yaml | 12 ++++++------ .../tests/default/deployment_test.yaml | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/charts/managed-identity-wallet/templates/deployment.yaml b/charts/managed-identity-wallet/templates/deployment.yaml index c596522c5..dddcc4234 100644 --- a/charts/managed-identity-wallet/templates/deployment.yaml +++ b/charts/managed-identity-wallet/templates/deployment.yaml @@ -89,7 +89,7 @@ spec: {{- range $key, $val := .Values.envs }} {{- if $val }} - name: {{ $key }} - value: {{ $val }} + value: {{ $val | quote }} {{- end }} {{- end }} {{- range $key, $val := .Values.secrets }} diff --git a/charts/managed-identity-wallet/tests/custom-values/deployment_test.yaml b/charts/managed-identity-wallet/tests/custom-values/deployment_test.yaml index b2428554b..49442cef7 100644 --- a/charts/managed-identity-wallet/tests/custom-values/deployment_test.yaml +++ b/charts/managed-identity-wallet/tests/custom-values/deployment_test.yaml @@ -47,22 +47,22 @@ tests: - name: APPLICATION_PORT value: "8080" - name: DB_HOST - value: RELEASE-NAME-postgresql + value: "RELEASE-NAME-postgresql" - name: DB_USER_NAME - value: miw + value: "miw" - name: DB_NAME - value: miw + value: "miw" - name: DB_PASSWORD valueFrom: secretKeyRef: key: password name: RELEASE-NAME-postgresql - name: APPLICATION_ENVIRONMENT - value: dev + value: "dev" - name: MIW_HOST_NAME - value: localhost + value: "localhost" - name: USE_SSL - value: false + value: "false" - name: ENCRYPTION_KEY valueFrom: secretKeyRef: diff --git a/charts/managed-identity-wallet/tests/default/deployment_test.yaml b/charts/managed-identity-wallet/tests/default/deployment_test.yaml index af0a29548..54570cd54 100644 --- a/charts/managed-identity-wallet/tests/default/deployment_test.yaml +++ b/charts/managed-identity-wallet/tests/default/deployment_test.yaml @@ -106,22 +106,22 @@ tests: - name: APPLICATION_PORT value: "8080" - name: DB_HOST - value: RELEASE-NAME-postgresql + value: "RELEASE-NAME-postgresql" - name: DB_USER_NAME - value: miw + value: "miw" - name: DB_NAME - value: miw + value: "miw" - name: DB_PASSWORD valueFrom: secretKeyRef: key: password name: RELEASE-NAME-postgresql - name: APPLICATION_ENVIRONMENT - value: dev + value: "dev" - name: MIW_HOST_NAME - value: localhost + value: "localhost" - name: USE_SSL - value: false + value: "false" - name: ENCRYPTION_KEY valueFrom: secretKeyRef: