From a76c433682177fad018caf670b6ed93216a69cb7 Mon Sep 17 00:00:00 2001 From: Lukas Malte Monnerjahn <lukasmalte.monnerjahn@dataport.de> Date: Wed, 26 Mar 2025 16:08:06 +0100 Subject: [PATCH] OZG-4880 wrap bools in quotes --- src/main/helm/templates/deployment.yaml | 6 +++--- src/test/helm/deployment_osiv2_test.yaml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml index f74799ec3..e7259dfb1 100644 --- a/src/main/helm/templates/deployment.yaml +++ b/src/main/helm/templates/deployment.yaml @@ -98,7 +98,7 @@ spec: {{- end }} {{- end }} - name: ozgcloud_osiv2_enabled - value: {{ (.Values.ozgcloud.osiv2).enabled }} + value: "{{ (.Values.ozgcloud.osiv2).enabled }}" {{- if (.Values.ozgcloud.osiv2).enabled}} - name: ozgcloud_osiv2_auth_client-id valueFrom: @@ -122,9 +122,9 @@ spec: value: {{ .Values.ozgcloud.osiv2.api.tenant}} - name: ozgcloud_osiv2_api_name-identifier value: {{ .Values.ozgcloud.osiv2.api.nameidentifier}} - - name: ozgcloud_osiv2_http-proxy_enabled - value: {{ (.Values.ozgcloud.osiv2.httpproxy).enabled }} {{- if (.Values.ozgcloud.osiv2.httpproxy).enabled}} + - name: ozgcloud_osiv2_http-proxy_enabled + value: "{{ (.Values.ozgcloud.osiv2.httpproxy).enabled }}" - name: ozgcloud_osiv2_http-proxy_host value: {{ .Values.ozgcloud.osiv2.httpproxy.host }} - name: ozgcloud_osiv2_http-proxy_port diff --git a/src/test/helm/deployment_osiv2_test.yaml b/src/test/helm/deployment_osiv2_test.yaml index 8fc1b6c16..bb752f9a3 100644 --- a/src/test/helm/deployment_osiv2_test.yaml +++ b/src/test/helm/deployment_osiv2_test.yaml @@ -46,7 +46,7 @@ set: tenant: "tenant" nameidentifier: "name-identifier" httpproxy: - enabled: "false" + enabled: false tests: - it: should set osiv2 values set: @@ -58,7 +58,7 @@ tests: path: spec.template.spec.containers[0].env content: name: ozgcloud_osiv2_enabled - value: true + value: "true" - contains: path: spec.template.spec.containers[0].env content: @@ -111,7 +111,7 @@ tests: osiv2: enabled: true httpproxy: - enabled: "true" + enabled: true host: "http://proxy.host" port: "8080" asserts: @@ -119,7 +119,7 @@ tests: path: spec.template.spec.containers[0].env content: name: ozgcloud_osiv2_http-proxy_enabled - value: true + value: "true" - contains: path: spec.template.spec.containers[0].env content: @@ -136,7 +136,7 @@ tests: path: spec.template.spec.containers[0].env content: name: ozgcloud_osiv2_enabled - value: false + value: "false" - notContains: path: spec.template.spec.containers[0].env content: -- GitLab