diff --git a/stable/home-assistant/Chart.yaml b/stable/home-assistant/Chart.yaml index 426f9c90a4..7c7fd03660 100644 --- a/stable/home-assistant/Chart.yaml +++ b/stable/home-assistant/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 0.93.2 description: Home Assistant name: home-assistant -version: 0.9.2 +version: 0.9.3 keywords: - home-assistant - hass diff --git a/stable/home-assistant/README.md b/stable/home-assistant/README.md index 0ed2190049..7a21776497 100644 --- a/stable/home-assistant/README.md +++ b/stable/home-assistant/README.md @@ -63,6 +63,8 @@ The following tables lists the configurable parameters of the Home Assistant cha | `git.secret` | Git secret to use for git-sync | `git-creds` | | `git.syncPath` | Git sync path | `/config` | | `git.keyPath` | Git ssh key path | `/root/.ssh` | +| `zwave.enabled` | Enable zwave host device passthrough. Also enables privileged container mode. | `false` | +| `zwave.device` | Device to passthrough to guest | `ttyACM0` | | `extraEnv` | Extra ENV vars to pass to the home-assistant container | `{}` | | `extraEnvSecrets` | Extra env vars to pass to the home-assistant container from k8s secrets - see `values.yaml` for an example | `{}` | | `configurator.enabled` | Enable the optional [configuration UI](https://github.com/danielperna84/hass-configurator) | `false` | diff --git a/stable/home-assistant/templates/deployment.yaml b/stable/home-assistant/templates/deployment.yaml index e73d16da3d..1a4d4f6a34 100644 --- a/stable/home-assistant/templates/deployment.yaml +++ b/stable/home-assistant/templates/deployment.yaml @@ -89,6 +89,10 @@ spec: volumeMounts: - mountPath: /config name: config + {{- if .Values.zwave.enabled }} + - mountPath: /dev/ttyACM0 + name: ttyacm + {{- end }} {{- if .Values.git.enabled }} - mountPath: {{ .Values.git.keyPath }} name: git-secret @@ -104,6 +108,10 @@ spec: {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} + {{- if .Values.zwave.enabled }} + securityContext: + privileged: true + {{- end }} {{- if .Values.configurator.enabled }} - name: configurator image: "{{ .Values.configurator.image.repository }}:{{ .Values.configurator.image.tag }}" @@ -224,6 +232,11 @@ spec: {{- else }} emptyDir: {} {{ end }} + {{- if .Values.zwave.enabled }} + - name: ttyacm + hostPath: + path: /dev/{{.Values.zwave.device}} + {{- end }} {{- if .Values.git.enabled }} - name: git-secret secret: diff --git a/stable/home-assistant/values.yaml b/stable/home-assistant/values.yaml index 60aa782cb8..7081133bf9 100644 --- a/stable/home-assistant/values.yaml +++ b/stable/home-assistant/values.yaml @@ -95,6 +95,10 @@ git: syncPath: /config keyPath: /root/.ssh +zwave: + enabled: false + device: ttyACM0 + configurator: enabled: false