From c78466c5988cc553e3a515515c297f169a666824 Mon Sep 17 00:00:00 2001 From: Ian Duffy <1243435+imduffy15@users.noreply.github.com> Date: Wed, 29 Jul 2020 05:16:31 +0100 Subject: [PATCH] [home-assistant] Update deployment.yaml (#299) * Update deployment.yaml Add git support on configurator and ensure extraEnvs are quoted * Update Chart.yaml * Update deployment.yaml * Update deployment.yaml --- charts/home-assistant/Chart.yaml | 2 +- charts/home-assistant/templates/deployment.yaml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/charts/home-assistant/Chart.yaml b/charts/home-assistant/Chart.yaml index 9d70cc97..21dd68a2 100644 --- a/charts/home-assistant/Chart.yaml +++ b/charts/home-assistant/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 0.112.4 description: Home Assistant name: home-assistant -version: 1.0.2 +version: 1.0.3 keywords: - home-assistant - hass diff --git a/charts/home-assistant/templates/deployment.yaml b/charts/home-assistant/templates/deployment.yaml index 75da07db..2ea3cd26 100644 --- a/charts/home-assistant/templates/deployment.yaml +++ b/charts/home-assistant/templates/deployment.yaml @@ -110,7 +110,7 @@ spec: env: {{- range $key, $value := .Values.extraEnv }} - name: {{ $key }} - value: {{ $value }} + value: {{ $value | quote }} {{- end }} {{- range $name, $opts := .Values.extraEnvSecrets }} - name: {{ $name }} @@ -202,6 +202,10 @@ spec: - name: HC_ENFORCE_BASEPATH value: "{{ .Values.configurator.enforceBasepath }}" {{- end }} + {{- if .Values.git.enabled }} + - name: HC_GIT + value: "true" + {{ end }} {{- if and (.Values.git.enabled) (.Values.git.user.name) }} - name: GIT_AUTHOR_NAME value: {{ .Values.git.user.name }} @@ -216,7 +220,7 @@ spec: {{ end }} {{- range $key, $value := .Values.configurator.extraEnv }} - name: {{ $key }} - value: {{ $value }} + value: {{ $value | quote }} {{- end }} volumeMounts: - mountPath: /config @@ -279,7 +283,7 @@ spec: {{ end }} {{- range $key, $value := .Values.vscode.extraEnv }} - name: {{ $key }} - value: {{ $value }} + value: {{ $value | quote }} {{- end }} volumeMounts: - mountPath: /config @@ -338,7 +342,7 @@ spec: {{ end }} {{- range $key, $value := .Values.vscode.extraEnv }} - name: {{ $key }} - value: {{ $value }} + value: {{ $value | quote }} {{- end }} volumeMounts: - mountPath: /ha-conf