Compare commits

..

No commits in common. "fe724d11d7aec2397f8cb9b8b2a5266d37498c7e" and "4f092eaa2ac73c1b923facd3da49abdc0442f3a5" have entirely different histories.

5 changed files with 7 additions and 96 deletions

View File

@ -4,7 +4,7 @@ name: home-assistant
description: Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. description: Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts.
type: application type: application
version: 1.0.0 version: 1.0.0
appVersion: 2024.11.1 appVersion: v2024.11.1
kubeVersion: ">=1.27.0" kubeVersion: ">=1.27.0"
home: https://www.home-assistant.io/ home: https://www.home-assistant.io/
sources: sources:
@ -16,4 +16,4 @@ maintainers:
dependencies: dependencies:
- name: lib - name: lib
repository: https://git.rre.nu/api/packages/jonas/helm repository: https://git.rre.nu/api/packages/jonas/helm
version: 1.0.4 version: 1.0.3

View File

@ -25,18 +25,11 @@ The following table lists the configurable parameters of the Home-assistant char
| `ingress.hosts` | | `[{"host": "example.local", "paths": [{"path": "/", "pathType": "Prefix"}]}]` | | `ingress.hosts` | | `[{"host": "example.local", "paths": [{"path": "/", "pathType": "Prefix"}]}]` |
| `ingress.annotations` | | `{}` | | `ingress.annotations` | | `{}` |
| `ingress.tls` | | `[]` | | `ingress.tls` | | `[]` |
| `volumeClaimTemplates` | | `[{"name": "config", "mountPath": "/config", "accessMode": "ReadWriteOnce", "storageClassName": "longhorn", "size": "1Gi"}]` | | `volumeClaimTemplates` | | `[{"name": "config", "mountPath": "/config", "accessMode": "ReadWriteOnce", "storageClassName": "default", "size": "1Gi"}]` |
| `livenessProbe.httpGet.path` | | `"/"` | | `livenessProbe.httpGet.path` | | `"/"` |
| `livenessProbe.httpGet.port` | | `8123` | | `livenessProbe.httpGet.port` | | `8123` |
| `livenessProbe.initialDelaySeconds` | | `5` | | `livenessProbe.initialDelaySeconds` | | `5` |
| `livenessProbe.periodSeconds` | | `3` | | `livenessProbe.periodSeconds` | | `3` |
| `volumes` | | `[{"name": "configs", "configMap": {"name": "hass-configs", "items": [{"key": "configuration.yaml", "path": "configuration.yaml"}, {"key": "automations.yaml", "path": "automations.yaml"}, {"key": "scenes.yaml", "path": "scenes.yaml"}, {"key": "scripts.yaml", "path": "scripts.yaml"}]}}, {"name": "secrets", "secret": {"secretName": "hass-secrets", "items": [{"key": "secrets.yaml", "path": "secrets.yaml"}]}}]` |
| `volumeMounts` | | `[{"name": "configs", "mountPath": "/config/configuration.yaml", "subPath": "configuration.yaml", "readOnly": true}, {"name": "configs", "mountPath": "/config/automations.yaml", "subPath": "automations.yaml", "readOnly": true}, {"name": "configs", "mountPath": "/config/scenes.yaml", "subPath": "scenes.yaml", "readOnly": true}, {"name": "configs", "mountPath": "/config/scripts.yaml", "subPath": "scripts.yaml", "readOnly": true}, {"name": "secrets", "mountPath": "/config/secrets.yaml", "subPath": "secrets.yaml", "readOnly": true}]` |
| `hass_configs.configuration.yaml` | | `"# Loads default set of integrations. Do not remove.\ndefault_config:\n\n# Load frontend themes from the themes folder\nfrontend:\n themes: !include_dir_merge_named themes\n\nautomation: !include automations.yaml\nscript: !include scripts.yaml\nscene: !include scenes.yaml\n"` |
| `hass_configs.automations.yaml` | | `"[]\n"` |
| `hass_configs.scenes.yaml` | | `"# scenes\n"` |
| `hass_configs.scripts.yaml` | | `"# scripts\n"` |
| `hass_secrets.secrets.yaml` | | `"# Use this file to store secrets like usernames and passwords.\n# Learn more at https://www.home-assistant.io/docs/configuration/secrets/\nsome_password: welcome\n"` |

View File

@ -1,7 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: hass-configs
namespace: {{ .Values.namespace | default "default" }}
labels: {{ include "lib.labels" . | nindent 4 }}
data: {{ .Values.hass_configs | toYaml | nindent 2 }}

View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: hass-secrets
namespace: {{ .Values.namespace | default "default" }}
labels: {{ include "lib.labels" . | nindent 4 }}
type: Opauge
data:
{{- range $n, $v := .Values.hass_secrets -}}
{{ $n | nindent 2 }}: {{ $v | b64enc }}
{{- end }}

View File

@ -1,3 +1,4 @@
image: image:
repository: ghcr.io/home-assistant/home-assistant repository: ghcr.io/home-assistant/home-assistant
tag: tag:
@ -31,83 +32,18 @@ ingress:
# hosts: # hosts:
# - chart-example.local # - chart-example.local
volumeClaimTemplates: volumeClaimTemplates:
- name: config - name: config
mountPath: /config mountPath: /config
accessMode: "ReadWriteOnce" accessMode: "ReadWriteOnce"
storageClassName: "longhorn" storageClassName: "default"
size: 1Gi size: 1Gi
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
port: 8123 port: 8123
initialDelaySeconds: 5 initialDelaySeconds: 5
periodSeconds: 3 periodSeconds: 3
volumes:
- name: configs
configMap:
name: hass-configs
items:
- key: configuration.yaml
path: configuration.yaml
- key: automations.yaml
path: automations.yaml
- key: scenes.yaml
path: scenes.yaml
- key: scripts.yaml
path: scripts.yaml
- name: secrets
secret:
secretName: hass-secrets
items:
- key: secrets.yaml
path: secrets.yaml
volumeMounts:
- name: configs
mountPath: /config/configuration.yaml
subPath: configuration.yaml
readOnly: true
- name: configs
mountPath: /config/automations.yaml
subPath: automations.yaml
readOnly: true
- name: configs
mountPath: /config/scenes.yaml
subPath: scenes.yaml
readOnly: true
- name: configs
mountPath: /config/scripts.yaml
subPath: scripts.yaml
readOnly: true
- name: secrets
mountPath: /config/secrets.yaml
subPath: secrets.yaml
readOnly: true
hass_configs:
configuration.yaml: |
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
automations.yaml: |
[]
scenes.yaml: |
# scenes
scripts.yaml: |
# scripts
hass_secrets:
secrets.yaml: |
# Use this file to store secrets like usernames and passwords.
# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
some_password: welcome