diff --git a/home-assistant/Chart.yaml b/home-assistant/Chart.yaml index c6da16d..1690c92 100644 --- a/home-assistant/Chart.yaml +++ b/home-assistant/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: home-assistant description: Home Assistant with tooling to run on an k3s pi type: application -version: 0.1.1 +version: 0.1.2 # renovate: image=ghcr.io/home-assistant/home-assistant appVersion: "2024.3.3" maintainers: diff --git a/home-assistant/README.adoc b/home-assistant/README.adoc index 07be1e5..c998128 100644 --- a/home-assistant/README.adoc +++ b/home-assistant/README.adoc @@ -2,7 +2,7 @@ = home-assistant -image::https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square[Version: 0.1.1] +image::https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square[Version: 0.1.2] image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application] image::https://img.shields.io/badge/AppVersion-2024.3.3-informational?style=flat-square[AppVersion: 2024.3.3] == Maintainers @@ -387,6 +387,11 @@ helm uninstall home-assistant-release | `"1.36.0"` | +| zigbee2mqtt.ingress.hosts +| string +| `nil` +| + | zigbee2mqtt.securityContext.privileged | bool | `true` @@ -396,7 +401,7 @@ helm uninstall home-assistant-release Autogenerated from chart metadata using https://github.com/norwoodj/helm-docs[helm-docs] = home-assistant -image::https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square[Version: 0.1.1] +image::https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square[Version: 0.1.2] image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application] image::https://img.shields.io/badge/AppVersion-2024.3.3-informational?style=flat-square[AppVersion: 2024.3.3] @@ -759,6 +764,11 @@ Home Assistant with tooling to run on an k3s pi | `"1.36.0"` | +| zigbee2mqtt.ingress.hosts +| string +| `nil` +| + | zigbee2mqtt.securityContext.privileged | bool | `true` diff --git a/home-assistant/templates/ingress.yaml b/home-assistant/templates/ingress.yaml index 91f2354..1ee1473 100644 --- a/home-assistant/templates/ingress.yaml +++ b/home-assistant/templates/ingress.yaml @@ -29,7 +29,7 @@ spec: name: {{ include "home-assistant.fullname" $ }} port: name: http - {{- if $.Values.zigbee2mqtt }} + {{- if and $.Values.zigbee2mqtt.enabled (not $.Values.zigbee2mqtt.ingress.hosts) }} - path: /zigbee2mqtt pathType: Prefix backend: @@ -39,4 +39,18 @@ spec: name: http {{- end }} {{- end }} + {{- if $.Values.zigbee2mqtt.enabled }} + {{- range .Values.zigbee2mqtt.ingress.hosts }} + - host: {{ . | quote }} + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: {{ include "home-assistant.fullname" $ }}-zigbee2mqtt + port: + name: http + {{- end }} + {{- end }} {{- end }} diff --git a/home-assistant/values.yaml b/home-assistant/values.yaml index c5bda80..78e46f0 100644 --- a/home-assistant/values.yaml +++ b/home-assistant/values.yaml @@ -54,6 +54,8 @@ zigbee2mqtt: device: /dev/ttyACM0 securityContext: privileged: true + ingress: + hosts: [] config: homeassistant: true serial: