Commit new App releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2021-10-13 10:05:29 +00:00
parent 8a4c6d80c0
commit 4abed09508
20 changed files with 134 additions and 54 deletions

View File

@ -1,8 +0,0 @@
<a name="home-assistant-8.0.8"></a>
### [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))

View File

@ -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"

View File

@ -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
##

View File

@ -1 +0,0 @@
{{ include "common.all" . }}

View File

@ -0,0 +1,4 @@
<a name="home-assistant-8.1.0"></a>
### [home-assistant-8.1.0](https://github.com/truecharts/apps/compare/home-assistant-8.0.8...home-assistant-8.1.0) (2021-10-13)

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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` | |

View File

@ -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
##

View File

@ -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 -}}

View File

@ -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" . }}

View File

@ -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