fix(home-assistant): allow zigbee2mqtt on different ingress hosts
This commit is contained in:
parent
5e2dbf6b21
commit
a520fcae73
4 changed files with 30 additions and 4 deletions
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: home-assistant
|
name: home-assistant
|
||||||
description: Home Assistant with tooling to run on an k3s pi
|
description: Home Assistant with tooling to run on an k3s pi
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.1
|
version: 0.1.2
|
||||||
# renovate: image=ghcr.io/home-assistant/home-assistant
|
# renovate: image=ghcr.io/home-assistant/home-assistant
|
||||||
appVersion: "2024.3.3"
|
appVersion: "2024.3.3"
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
= home-assistant
|
= 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/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]
|
image::https://img.shields.io/badge/AppVersion-2024.3.3-informational?style=flat-square[AppVersion: 2024.3.3]
|
||||||
== Maintainers
|
== Maintainers
|
||||||
|
@ -387,6 +387,11 @@ helm uninstall home-assistant-release
|
||||||
| `"1.36.0"`
|
| `"1.36.0"`
|
||||||
|
|
|
|
||||||
|
|
||||||
|
| zigbee2mqtt.ingress.hosts
|
||||||
|
| string
|
||||||
|
| `nil`
|
||||||
|
|
|
||||||
|
|
||||||
| zigbee2mqtt.securityContext.privileged
|
| zigbee2mqtt.securityContext.privileged
|
||||||
| bool
|
| bool
|
||||||
| `true`
|
| `true`
|
||||||
|
@ -396,7 +401,7 @@ helm uninstall home-assistant-release
|
||||||
Autogenerated from chart metadata using https://github.com/norwoodj/helm-docs[helm-docs]
|
Autogenerated from chart metadata using https://github.com/norwoodj/helm-docs[helm-docs]
|
||||||
= home-assistant
|
= 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/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]
|
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"`
|
| `"1.36.0"`
|
||||||
|
|
|
|
||||||
|
|
||||||
|
| zigbee2mqtt.ingress.hosts
|
||||||
|
| string
|
||||||
|
| `nil`
|
||||||
|
|
|
||||||
|
|
||||||
| zigbee2mqtt.securityContext.privileged
|
| zigbee2mqtt.securityContext.privileged
|
||||||
| bool
|
| bool
|
||||||
| `true`
|
| `true`
|
||||||
|
|
|
@ -29,7 +29,7 @@ spec:
|
||||||
name: {{ include "home-assistant.fullname" $ }}
|
name: {{ include "home-assistant.fullname" $ }}
|
||||||
port:
|
port:
|
||||||
name: http
|
name: http
|
||||||
{{- if $.Values.zigbee2mqtt }}
|
{{- if and $.Values.zigbee2mqtt.enabled (not $.Values.zigbee2mqtt.ingress.hosts) }}
|
||||||
- path: /zigbee2mqtt
|
- path: /zigbee2mqtt
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
@ -39,4 +39,18 @@ spec:
|
||||||
name: http
|
name: http
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- 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 }}
|
{{- end }}
|
||||||
|
|
|
@ -54,6 +54,8 @@ zigbee2mqtt:
|
||||||
device: /dev/ttyACM0
|
device: /dev/ttyACM0
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
ingress:
|
||||||
|
hosts: []
|
||||||
config:
|
config:
|
||||||
homeassistant: true
|
homeassistant: true
|
||||||
serial:
|
serial:
|
||||||
|
|
Loading…
Add table
Reference in a new issue