diff --git a/stable/home-assistant/8.0.8/CHANGELOG.md b/stable/home-assistant/8.0.8/CHANGELOG.md deleted file mode 100644 index 5a10eb343c7..00000000000 --- a/stable/home-assistant/8.0.8/CHANGELOG.md +++ /dev/null @@ -1,8 +0,0 @@ - - -### [home-assistant-8.0.8](https://github.com/truecharts/apps/compare/home-assistant-8.0.7...home-assistant-8.0.8) (2021-10-12) - -#### Chore - -* update non-major deps helm releases ([#1126](https://github.com/truecharts/apps/issues/1126)) - diff --git a/stable/home-assistant/8.0.8/Chart.lock b/stable/home-assistant/8.0.8/Chart.lock deleted file mode 100644 index 9f3924fea0c..00000000000 --- a/stable/home-assistant/8.0.8/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: https://truecharts.org - version: 8.3.5 -digest: sha256:4c67c6646702374ce99ec9b264db27ef5ad5025d300d5f16d5f0799551bedbd3 -generated: "2021-10-12T17:29:42.228127898Z" diff --git a/stable/home-assistant/8.0.8/ix_values.yaml b/stable/home-assistant/8.0.8/ix_values.yaml deleted file mode 100644 index 39f02fadb7e..00000000000 --- a/stable/home-assistant/8.0.8/ix_values.yaml +++ /dev/null @@ -1,15 +0,0 @@ -## -# This file contains Values.yaml content that gets added to the output of questions.yaml -# It's ONLY meant for content that the user is NOT expected to change. -# Example: Everything under "image" is not included in questions.yaml but is included here. -## - -image: - repository: ghcr.io/truecharts/home-assistant - pullPolicy: IfNotPresent - tag: v2021.10.4@sha256:6f5892e307edd0b135f4ccab1ecee70518e0418b26e6264c23c67d1982eece86 - -## -# Most other defaults are set in questions.yaml -# For other options please refer to the wiki, default_values.yaml or the common library chart -## diff --git a/stable/home-assistant/8.0.8/templates/common.yaml b/stable/home-assistant/8.0.8/templates/common.yaml deleted file mode 100644 index a6613c2ce21..00000000000 --- a/stable/home-assistant/8.0.8/templates/common.yaml +++ /dev/null @@ -1 +0,0 @@ -{{ include "common.all" . }} diff --git a/stable/home-assistant/8.1.0/CHANGELOG.md b/stable/home-assistant/8.1.0/CHANGELOG.md new file mode 100644 index 00000000000..68c8be7bb09 --- /dev/null +++ b/stable/home-assistant/8.1.0/CHANGELOG.md @@ -0,0 +1,4 @@ + + +### [home-assistant-8.1.0](https://github.com/truecharts/apps/compare/home-assistant-8.0.8...home-assistant-8.1.0) (2021-10-13) + diff --git a/stable/home-assistant/8.0.8/CONFIG.md b/stable/home-assistant/8.1.0/CONFIG.md similarity index 100% rename from stable/home-assistant/8.0.8/CONFIG.md rename to stable/home-assistant/8.1.0/CONFIG.md diff --git a/stable/home-assistant/8.1.0/Chart.lock b/stable/home-assistant/8.1.0/Chart.lock new file mode 100644 index 00000000000..24474e474c7 --- /dev/null +++ b/stable/home-assistant/8.1.0/Chart.lock @@ -0,0 +1,9 @@ +dependencies: +- name: common + repository: https://truecharts.org + version: 8.3.5 +- name: postgresql + repository: https://truecharts.org/ + version: 3.0.14 +digest: sha256:0c1ecfaee7e9cdd1d1971984ab8e22f3a74fb994b546e555904277f24bdf01f7 +generated: "2021-10-13T10:04:03.410190975Z" diff --git a/stable/home-assistant/8.0.8/Chart.yaml b/stable/home-assistant/8.1.0/Chart.yaml similarity index 86% rename from stable/home-assistant/8.0.8/Chart.yaml rename to stable/home-assistant/8.1.0/Chart.yaml index 2f1ab0b5444..1ddbbe8ed22 100644 --- a/stable/home-assistant/8.0.8/Chart.yaml +++ b/stable/home-assistant/8.1.0/Chart.yaml @@ -4,6 +4,10 @@ dependencies: - name: common repository: https://truecharts.org version: 8.3.5 +- condition: postgresql.enabled + name: postgresql + repository: https://truecharts.org/ + version: 3.0.14 deprecated: false description: home-assistant App for TrueNAS SCALE home: https://github.com/truecharts/apps/tree/master/charts/stable/home-assistant @@ -25,4 +29,4 @@ sources: - https://github.com/home-assistant/home-assistant - https://github.com/cdr/code-server type: application -version: 8.0.8 +version: 8.1.0 diff --git a/stable/home-assistant/8.0.8/README.md b/stable/home-assistant/8.1.0/README.md similarity index 96% rename from stable/home-assistant/8.0.8/README.md rename to stable/home-assistant/8.1.0/README.md index 4b31ec0a08e..1ec7f9399a8 100644 --- a/stable/home-assistant/8.0.8/README.md +++ b/stable/home-assistant/8.1.0/README.md @@ -18,6 +18,7 @@ Kubernetes: `>=1.16.0-0` | Repository | Name | Version | |------------|------|---------| +| https://truecharts.org/ | postgresql | 3.0.14 | | https://truecharts.org | common | 8.3.5 | ## Installing the Chart diff --git a/stable/home-assistant/8.0.8/app-readme.md b/stable/home-assistant/8.1.0/app-readme.md similarity index 100% rename from stable/home-assistant/8.0.8/app-readme.md rename to stable/home-assistant/8.1.0/app-readme.md diff --git a/stable/home-assistant/8.0.8/charts/common-8.3.5.tgz b/stable/home-assistant/8.1.0/charts/common-8.3.5.tgz similarity index 100% rename from stable/home-assistant/8.0.8/charts/common-8.3.5.tgz rename to stable/home-assistant/8.1.0/charts/common-8.3.5.tgz diff --git a/stable/home-assistant/8.1.0/charts/postgresql-3.0.14.tgz b/stable/home-assistant/8.1.0/charts/postgresql-3.0.14.tgz new file mode 100644 index 00000000000..81c37a069f2 Binary files /dev/null and b/stable/home-assistant/8.1.0/charts/postgresql-3.0.14.tgz differ diff --git a/stable/home-assistant/8.0.8/helm-values.md b/stable/home-assistant/8.1.0/helm-values.md similarity index 70% rename from stable/home-assistant/8.0.8/helm-values.md rename to stable/home-assistant/8.1.0/helm-values.md index 9b4812eaf64..ea4c1541aa7 100644 --- a/stable/home-assistant/8.0.8/helm-values.md +++ b/stable/home-assistant/8.1.0/helm-values.md @@ -22,17 +22,19 @@ You will, however, be able to use all values referenced in the common chart here | influxdb.database | string | `"home_assistant"` | | | influxdb.enabled | bool | `false` | | | influxdb.persistence.enabled | bool | `false` | | +| initContainers.init-db.command[0] | string | `"/config/init/init.sh"` | | +| initContainers.init-db.image | string | `"{{ .Values.image.repository }}:{{ .Values.image.tag }}"` | | +| initContainers.init-db.volumeMounts[0].mountPath | string | `"/config/init"` | | +| initContainers.init-db.volumeMounts[0].name | string | `"init"` | | +| initContainers.init-db.volumeMounts[1].mountPath | string | `"/config"` | | +| initContainers.init-db.volumeMounts[1].name | string | `"config"` | | | persistence.config.accessMode | string | `"ReadWriteOnce"` | | | persistence.config.enabled | bool | `true` | | | persistence.config.mountPath | string | `"/config"` | | | persistence.config.size | string | `"100Gi"` | | | persistence.config.type | string | `"pvc"` | | | persistence.varrun.enabled | bool | `true` | | -| postgresql.enabled | bool | `false` | | -| postgresql.persistence.enabled | bool | `false` | | -| postgresql.postgresqlDatabase | string | `"home-assistant"` | | -| postgresql.postgresqlPassword | string | `"home-assistant-pass"` | | -| postgresql.postgresqlUsername | string | `"home-assistant"` | | +| postgresql | object | See values.yaml | Enable and configure postgresql database subchart under this key. For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql) | | prometheus.serviceMonitor.enabled | bool | `false` | | | service.main.ports.main.port | int | `8123` | | diff --git a/stable/home-assistant/8.1.0/ix_values.yaml b/stable/home-assistant/8.1.0/ix_values.yaml new file mode 100644 index 00000000000..ce1404f5e8a --- /dev/null +++ b/stable/home-assistant/8.1.0/ix_values.yaml @@ -0,0 +1,33 @@ +## +# This file contains Values.yaml content that gets added to the output of questions.yaml +# It's ONLY meant for content that the user is NOT expected to change. +# Example: Everything under "image" is not included in questions.yaml but is included here. +## + +image: + repository: ghcr.io/truecharts/home-assistant + pullPolicy: IfNotPresent + tag: v2021.10.4@sha256:6f5892e307edd0b135f4ccab1ecee70518e0418b26e6264c23c67d1982eece86 + +initContainers: + init-db: + image: "{{ .Values.alpineImage.repository }}:{{ .Values.alpineImage.tag }}" + command: ["/usr/sbin/init.sh"] + volumeMounts: + - name: init + mountPath: /usr/sbin + - name: config + mountPath: /config + +# -- Enable and configure postgresql database subchart under this key. +# For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql) +# @default -- See values.yaml +postgresql: + enabled: true + postgresqlUsername: home-assistant + postgresqlDatabase: home-assistant + +## +# Most other defaults are set in questions.yaml +# For other options please refer to the wiki, default_values.yaml or the common library chart +## diff --git a/stable/home-assistant/8.0.8/questions.yaml b/stable/home-assistant/8.1.0/questions.yaml similarity index 100% rename from stable/home-assistant/8.0.8/questions.yaml rename to stable/home-assistant/8.1.0/questions.yaml diff --git a/stable/home-assistant/8.1.0/templates/_configmap.tpl b/stable/home-assistant/8.1.0/templates/_configmap.tpl new file mode 100644 index 00000000000..9ac47c9b2bc --- /dev/null +++ b/stable/home-assistant/8.1.0/templates/_configmap.tpl @@ -0,0 +1,38 @@ +{{/* Define the configmap */}} +{{- define "hass.configmap" -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "common.names.fullname" . }}-init +data: + init.sh: |- + #!/bin/sh + echo "postgresql password: {{ ( printf "%v%v:%v@%v-%v:%v/%v?client_encoding=utf8" "postgresql://" .Values.postgresql.postgresqlUsername .Values.postgresql.Password .Release.Name "postgresql" "5432" .Values.postgresql.postgresqlDatabase ) | quote }}" + if test -f "/config/configuration.yaml"; then + echo "configuration.yaml exists." + if grep -q recorder: "/config/configuration.yaml"; then + echo "configuration.yaml already contains recorder" + fi + else + echo "configuration.yaml does NOT exist." + cp /config/init/configuration.yaml.default /config/configuration.yaml + fi + configuration.yaml.default: |- + # Configure a default setup of Home Assistant (frontend, api, etc) + default_config: + + # Text to speech + tts: + - platform: google_translate + + # Example Includes + # group: !include groups.yaml + # automation: !include automations.yaml + # script: !include scripts.yaml + # scene: !include scenes.yaml + + recorder: + db_url: {{ ( printf "%s?client_encoding=utf8" ( .Values.postgresql.url.complete | trimAll "\"" ) ) | quote }} + +{{- end -}} diff --git a/stable/home-assistant/8.1.0/templates/common.yaml b/stable/home-assistant/8.1.0/templates/common.yaml new file mode 100644 index 00000000000..0cc42ff47ee --- /dev/null +++ b/stable/home-assistant/8.1.0/templates/common.yaml @@ -0,0 +1,22 @@ +{{/* Make sure all variables are set properly */}} +{{- include "common.setup" . }} + +{{/* Render configmap for hass */}} +{{- include "hass.configmap" . }} + +{{/* Append the general secret volumes to the volumes */}} +{{- define "hass.initvolume" -}} +enabled: "true" +mountPath: "/config/init" +readOnly: true +type: "custom" +volumeSpec: + configMap: + name: {{ include "common.names.fullname" . }}-init + defaultMode: 0777 +{{- end -}} + +{{- $_ := set .Values.persistence "init" (include "hass.initvolume" . | fromYaml) -}} + +{{/* Render the templates */}} +{{ include "common.postSetup" . }} diff --git a/stable/home-assistant/8.0.8/templates/secret.yaml b/stable/home-assistant/8.1.0/templates/secret.yaml similarity index 100% rename from stable/home-assistant/8.0.8/templates/secret.yaml rename to stable/home-assistant/8.1.0/templates/secret.yaml diff --git a/stable/home-assistant/8.0.8/test_values.yaml b/stable/home-assistant/8.1.0/test_values.yaml similarity index 71% rename from stable/home-assistant/8.0.8/test_values.yaml rename to stable/home-assistant/8.1.0/test_values.yaml index c1be9f87a7c..ea5b5c61ad3 100644 --- a/stable/home-assistant/8.0.8/test_values.yaml +++ b/stable/home-assistant/8.1.0/test_values.yaml @@ -14,6 +14,16 @@ service: main: port: 8123 +initContainers: + init-db: + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + command: ["/config/init/init.sh"] + volumeMounts: + - name: init + mountPath: /config/init + - name: config + mountPath: /config + # # Enable devices to be discoverable # hostNetwork: true @@ -44,27 +54,14 @@ persistence: varrun: enabled: true -# # Path to your Z-Wave / Zigbee device in the container -# additionalVolumeMounts: -# - name: zwave-usb -# mountPath: /dev/serial/by-id/usb-0658_0200-if00 - -# # Path to your Z-Wave / Zigbee device on the host -# additionalVolumes: -# - name: zwave-usb -# hostPath: -# path: /dev/serial/by-id/usb-0658_0200-if00 - -# Enabled postgres -# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql +# -- Enable and configure postgresql database subchart under this key. +# For more options see [postgresql chart documentation](https://github.com/bitnami/charts/tree/master/bitnami/postgresql) +# @default -- See values.yaml postgresql: - enabled: false + enabled: true postgresqlUsername: home-assistant - postgresqlPassword: home-assistant-pass postgresqlDatabase: home-assistant - persistence: - enabled: false - # storageClass: "" + existingSecret: "dbcreds" # Enable influxdb # ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/influxdb diff --git a/stable/home-assistant/8.0.8/values.yaml b/stable/home-assistant/8.1.0/values.yaml similarity index 100% rename from stable/home-assistant/8.0.8/values.yaml rename to stable/home-assistant/8.1.0/values.yaml