From 582df68c7d8f91569d2640ac6bc30536fa5019af Mon Sep 17 00:00:00 2001 From: Bryton Hall Date: Tue, 11 Aug 2020 13:14:33 +0000 Subject: [PATCH] [home-assistant] add esphome dependency (#271) * add esphome dependency to home-assistant * bump chart apiVersion to v2 * We need to upgrade the Chart apiVersion to v2 Co-authored-by: Jeff Billimek --- charts/home-assistant/Chart.yaml | 9 +++++++-- charts/home-assistant/README.md | 4 +--- charts/home-assistant/values.yaml | 12 ++++++++++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/charts/home-assistant/Chart.yaml b/charts/home-assistant/Chart.yaml index 53e5728d..04eca137 100644 --- a/charts/home-assistant/Chart.yaml +++ b/charts/home-assistant/Chart.yaml @@ -1,8 +1,8 @@ -apiVersion: v1 +apiVersion: v2 appVersion: 0.113.3 description: Home Assistant name: home-assistant -version: 1.0.5 +version: 1.1.0 keywords: - home-assistant - hass @@ -19,3 +19,8 @@ maintainers: email: jeff@billimek.com - name: runningman84 email: phil@hellmi.de +dependencies: +- name: esphome + repository: https://billimek.com/billimek-charts + version: ~1.0.0 + condition: esphome.enabled diff --git a/charts/home-assistant/README.md b/charts/home-assistant/README.md index c6242659..d2bc5183 100644 --- a/charts/home-assistant/README.md +++ b/charts/home-assistant/README.md @@ -169,6 +169,7 @@ The following tables lists the configurable parameters of the Home Assistant cha | `appdaemon.service.externalIPs` | External IPs for the AppDaemon UI | `[]` | | `appdaemon.service.loadBalancerIP` | Loadbalancer IP for the AppDaemon UI | `` | | `appdaemon.service.loadBalancerSourceRanges` | Loadbalancer client IP restriction range for the VS Code UI | `[]` | +| `esphome.enabled` | Enable the optional [ESPHome](https://esphome.io) deployment | `false` | | `resources` | CPU/Memory resource requests/limits or the home-assistant GUI | `{}` | | `nodeSelector` | Node labels for pod assignment or the home-assistant GUI | `{}` | | `tolerations` | Toleration labels for pod assignment or the home-assistant GUI | `[]` | @@ -184,9 +185,6 @@ The following tables lists the configurable parameters of the Home Assistant cha | `monitoring.serviceMonitor.bearerTokenFile` | Set bearerTokenFile for home-assistant auth (use long lived access tokens) | `nil` | | `monitoring.serviceMonitor.bearerTokenSecret` | Set bearerTokenSecret for home-assistant auth (use long lived access tokens) | `nil` | - - - Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, ```shell diff --git a/charts/home-assistant/values.yaml b/charts/home-assistant/values.yaml index cb2b48eb..34a2fe0b 100644 --- a/charts/home-assistant/values.yaml +++ b/charts/home-assistant/values.yaml @@ -322,6 +322,18 @@ appdaemon: loadBalancerSourceRanges: [] # nodePort: 30000 +esphome: + enabled: false + # Mount home-assistant's secrets.yaml into the esphome container. + extraVolumes: + - name: ha-config + persistentVolumeClaim: + claimName: home-assistant + extraVolumeMounts: + - name: ha-config + mountPath: /config/secrets.yaml + subPath: secrets.yaml + resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little