diff --git a/homeassistant/Chart.yaml b/homeassistant/Chart.yaml index a2b0c08..b2993ce 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.0.4-release-2026-2-3 +version: 1.1.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 new file mode 100644 index 0000000..c12c893 --- /dev/null +++ b/homeassistant/templates/homeassistant-core-config.configmap.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ .Release.Name }}-{{ .Chart.Name }}-core-config +data: + config.yaml: |- + http: !include http-config.yaml + + http-config.yaml: "{{ .Values.homeassistant.config.httpConfig }}" diff --git a/homeassistant/templates/homeassistant.sfs.yaml b/homeassistant/templates/homeassistant.sfs.yaml index 378724c..ef3bb1c 100644 --- a/homeassistant/templates/homeassistant.sfs.yaml +++ b/homeassistant/templates/homeassistant.sfs.yaml @@ -34,5 +34,25 @@ spec: cpu: {{ .Values.resources.requests.cpu }} memory: {{ .Values.resources.requests.memory }} # TODO: volume mounts + volumeMounts: + - mountPath: /config.yaml + subPath: config.yaml + name: core-config + - mountPath: /http-config.yaml + subPath: http-config.yaml + name: http-config # TODO: volumes + volumes: + - name: core-config + configMap: + name: {{ .Release.Name }}-{{ .Chart.Name }}-core-config + items: + - key: config.yaml + path: config.yaml + - name: http-config + configMap: + name: {{ .Release.Name }}-{{ .Chart.Name }}-core-config + items: + - key: http-config.yaml + path: http-config.yaml # TODO: bind to local nodes \ No newline at end of file diff --git a/homeassistant/values.yaml b/homeassistant/values.yaml index 556f376..5808358 100644 --- a/homeassistant/values.yaml +++ b/homeassistant/values.yaml @@ -58,3 +58,7 @@ nodeSelector: {} tolerations: [] affinity: {} + +homeassistant: + config: + httpConfig: null \ No newline at end of file