added zwave capabilities to kubernetes (#14837)

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
This commit is contained in:
Ryan Holt
2019-06-17 02:38:26 -07:00
committed by Kubernetes Prow Robot
parent 7f9ad7a2b1
commit 912307e855
4 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -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
+2
View File
@@ -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` |
@@ -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:
+4
View File
@@ -95,6 +95,10 @@ git:
syncPath: /config
keyPath: /root/.ssh
zwave:
enabled: false
device: ttyACM0
configurator:
enabled: false