From cdcc873dfe1d4fc3f58dd78a90cd2ab6929bc7e0 Mon Sep 17 00:00:00 2001 From: jklein Date: Tue, 3 Mar 2026 22:50:38 +0100 Subject: [PATCH] feat(homeassistant): moved config to secret --- homeassistant/Chart.yaml | 2 +- .../templates/homeassistant-core-config.configmap.yaml | 9 --------- .../templates/homeassistant-core-config.secret.yaml | 6 ++++++ homeassistant/values.yaml | 8 +++++--- 4 files changed, 12 insertions(+), 13 deletions(-) delete mode 100644 homeassistant/templates/homeassistant-core-config.configmap.yaml create mode 100644 homeassistant/templates/homeassistant-core-config.secret.yaml diff --git a/homeassistant/Chart.yaml b/homeassistant/Chart.yaml index 88d97a7..02a2ec7 100644 --- a/homeassistant/Chart.yaml +++ b/homeassistant/Chart.yaml @@ -3,7 +3,7 @@ name: homeassistant description: A Helm chart to deploy Home Assistant on Kubernetes type: application -version: 1.1.4-release-2026-2-3 +version: 1.2.0-release-2026-2-3 appVersion: "2026.2.3" diff --git a/homeassistant/templates/homeassistant-core-config.configmap.yaml b/homeassistant/templates/homeassistant-core-config.configmap.yaml deleted file mode 100644 index acb571f..0000000 --- a/homeassistant/templates/homeassistant-core-config.configmap.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ .Release.Name }}-{{ .Chart.Name }}-core-config -data: - config: |- - http: !include http-config.yaml - - http-config: {{ toYaml .Values.homeassistant.config.httpConfig | indent 2 }} diff --git a/homeassistant/templates/homeassistant-core-config.secret.yaml b/homeassistant/templates/homeassistant-core-config.secret.yaml new file mode 100644 index 0000000..9b0a5d4 --- /dev/null +++ b/homeassistant/templates/homeassistant-core-config.secret.yaml @@ -0,0 +1,6 @@ +apiVersion: onepassword.com/v1 +kind: OnePasswordItem +metadata: + name: {{ .Chart.Name }}-{{ .Release.Name }}-config-secret +spec: + itemPath: {{ required "A Secret-Reference for the config must be provided" .Values.secrets.configSecretRef }} diff --git a/homeassistant/values.yaml b/homeassistant/values.yaml index f2d7707..b2efa9a 100644 --- a/homeassistant/values.yaml +++ b/homeassistant/values.yaml @@ -59,6 +59,8 @@ tolerations: [] affinity: {} -homeassistant: - config: - httpConfig: null \ No newline at end of file +# Must include the following keys: +# - config +# - http-config +secrets: + configSecretRef: null \ No newline at end of file