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
|
||||
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:
|
||||
|
|
|
@ -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`
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -54,6 +54,8 @@ zigbee2mqtt:
|
|||
device: /dev/ttyACM0
|
||||
securityContext:
|
||||
privileged: true
|
||||
ingress:
|
||||
hosts: []
|
||||
config:
|
||||
homeassistant: true
|
||||
serial:
|
||||
|
|
Loading…
Add table
Reference in a new issue