Compare commits
No commits in common. "ebc89f2b486e76459382bc84e3210df544cb53e8" and "a6d2b4a86aeed91267d435009f410ea88c70afab" have entirely different histories.
ebc89f2b48
...
a6d2b4a86a
4 changed files with 2 additions and 24 deletions
|
@ -8,11 +8,7 @@ data:
|
||||||
init.py: |
|
init.py: |
|
||||||
import pathlib
|
import pathlib
|
||||||
# Symlink some paths to move them outside the config volume.
|
# Symlink some paths to move them outside the config volume.
|
||||||
paths = {
|
paths = {"/config/.storage": "/media/storage", "/config/configuration.yaml": "/media/configuration/configuration.yaml"}
|
||||||
"/config/.storage": "/media/storage",
|
|
||||||
"/config/configuration.yaml": "/media/configuration/configuration.yaml",
|
|
||||||
"/config/custom-sentences": "/media/custom-sentences",
|
|
||||||
}
|
|
||||||
for from_p, to in paths.items():
|
for from_p, to in paths.items():
|
||||||
try:
|
try:
|
||||||
from_path = pathlib.Path(from_p)
|
from_path = pathlib.Path(from_p)
|
||||||
|
|
|
@ -8,7 +8,7 @@ data:
|
||||||
configuration.yaml: |
|
configuration.yaml: |
|
||||||
homeassistant:
|
homeassistant:
|
||||||
{{- range $key, $value := .Values.config.homeassistant }}
|
{{- range $key, $value := .Values.config.homeassistant }}
|
||||||
{{ printf "%s: %s" $key ($value | toJson) }}
|
{{ printf "%s: %s" $key ($value | quote) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
packages: !include_dir_named /media/packages
|
packages: !include_dir_named /media/packages
|
||||||
default_config:
|
default_config:
|
||||||
|
@ -28,15 +28,3 @@ data:
|
||||||
"{{ $key }}": |
|
"{{ $key }}": |
|
||||||
{{- $value | toYaml | nindent 4 }}
|
{{- $value | toYaml | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: {{ include "homeassistant.fullname" . }}-custom-sentences
|
|
||||||
labels:
|
|
||||||
{{- include "homeassistant.labels" . | nindent 4 }}
|
|
||||||
data:
|
|
||||||
{{- range $key, $value := fromYaml .Values.config.customSentences }}
|
|
||||||
"{{ $key }}": |
|
|
||||||
{{- $value | toYaml | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
|
@ -76,8 +76,6 @@ spec:
|
||||||
mountPath: /media/configuration
|
mountPath: /media/configuration
|
||||||
- name: packages-configmap
|
- name: packages-configmap
|
||||||
mountPath: /media/packages
|
mountPath: /media/packages
|
||||||
- name: custom-sentences-configmap
|
|
||||||
mountPath: /media/custom-sentences/en
|
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
initContainers:
|
initContainers:
|
||||||
|
@ -140,6 +138,3 @@ spec:
|
||||||
- name: packages-configmap
|
- name: packages-configmap
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "homeassistant.fullname" . }}-packages
|
name: {{ include "homeassistant.fullname" . }}-packages
|
||||||
- name: custom-sentences-configmap
|
|
||||||
configMap:
|
|
||||||
name: {{ include "homeassistant.fullname" . }}-custom-sentences
|
|
||||||
|
|
|
@ -72,7 +72,6 @@ mainConfig:
|
||||||
db_url: sqlite:////media/database/hass-db.sqlite
|
db_url: sqlite:////media/database/hass-db.sqlite
|
||||||
config:
|
config:
|
||||||
packages: ""
|
packages: ""
|
||||||
customSentences: ""
|
|
||||||
|
|
||||||
cert:
|
cert:
|
||||||
dnsNames: []
|
dnsNames: []
|
||||||
|
|
Loading…
Reference in a new issue