From 3755eb96fccb4cbda0d8d880f02b12022280c7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Mi=C4=99dzybrodzki?= Date: Thu, 23 Jan 2025 09:51:43 +0100 Subject: [PATCH] fix: env quote --- README.md | 2 +- charts/app/Chart.yaml | 2 +- charts/app/templates/_container.tpl | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7436fe7..179baa9 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ appVersion: 1.0.0 dependencies: - name: app - version: 0.7.1 + version: 0.7.2 repository: oci://ghcr.io/wojciechem/platformex ``` diff --git a/charts/app/Chart.yaml b/charts/app/Chart.yaml index db326ec..498593c 100644 --- a/charts/app/Chart.yaml +++ b/charts/app/Chart.yaml @@ -5,7 +5,7 @@ description: Flexible helm chart to deploy your apps to kubernetes cluster. type: application # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.7.1 +version: 0.7.2 appVersion: 1.0.0 diff --git a/charts/app/templates/_container.tpl b/charts/app/templates/_container.tpl index 9228c3d..cd6b81a 100644 --- a/charts/app/templates/_container.tpl +++ b/charts/app/templates/_container.tpl @@ -38,7 +38,7 @@ env: {{- range $name, $env := .container.env }} - name: {{ $name }} {{- if typeIs "string" $env }} - value: {{ $env }} + value: {{ $env | quote }} {{- else if hasKey $env "valueFrom" }} valueFrom: {{- toYaml $env.valueFrom | nindent 4 }} @@ -50,7 +50,7 @@ env: {{- range $name, $env := $ref }} - name: {{ $name }} {{- if typeIs "string" $env }} - value: {{ $env }} + value: {{ $env | quote }} {{- else if hasKey $env "valueFrom" }} valueFrom: {{- toYaml $env.valueFrom | nindent 4 }} {{- end }}