[home-assistant] Fix env for appdaemon (#305)

This commit is contained in:
Aleksey Sviridkin 2020-12-07 18:54:56 +03:00 committed by GitHub
parent 601341ca9b
commit 351d46296f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 12 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 0.118.3
description: Home Assistant
name: home-assistant
version: 3.2.0
version: 3.2.1
keywords:
- home-assistant
- hass

View File

@ -42,7 +42,7 @@ The command removes all the Kubernetes components associated with the chart and
The following tables lists the configurable parameters of the Home Assistant chart and their default values.
| Parameter | Description | Default |
|-------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| `image.repository` | Image repository | `homeassistant/home-assistant` |
| `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/homeassistant/home-assistant/tags/). | `0.118.3` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
@ -163,7 +163,8 @@ The following tables lists the configurable parameters of the Home Assistant cha
| `appdaemon.image.tag` | Image tag | `3.0.5` |
| `appdaemon.image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `appdaemon.haToken` | Home Assistant API token - you need to generate it in your Home Assistant profile and then copy here | `` |
| `appdaemon.extraEnv` | Extra ENV vars to pass to the AppDaemon container | `{}` |
| `appdaemon.env` | Extra ENV vars to pass to the AppDaemon container | `{}` |
| `appdaemon.envFrom` | Extra ENV vars from configMap or secret to pass to the AppDaemon container | `{}` |
| `appdaemon.configSubPath` | An optional subPath for the AppDaemon container's config volume mount | `appdaemon` |
| `appdaemon.ingress.enabled` | Enables Ingress for the AppDaemon UI | `false` |
| `appdaemon.ingress.annotations` | Ingress annotations for the AppDaemon UI | `{}` |

View File

@ -338,7 +338,14 @@ spec:
- name: appdaemon
containerPort: {{ .Values.appdaemon.service.port }}
protocol: TCP
{{- with .Values.appdaemon.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.appdaemon.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
- name: HA_URL
value: "http://localhost:{{ .Values.service.port }}"
{{- if .Values.appdaemon.ingress.enabled }}
@ -365,10 +372,6 @@ spec:
- name: GIT_COMMITTER_EMAIL
value: {{ .Values.git.user.email }}
{{ end }}
{{- range $key, $value := .Values.vscode.extraEnv }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
volumeMounts:
- mountPath: /ha-conf
name: config

View File

@ -313,10 +313,26 @@ appdaemon:
## Home Assistant API token
# haToken:
## Additional hass-vscode container environment variable
## For instance to add a http_proxy
##
extraEnv: {}
# Environment variables to be passed to appdaemon comtainer
env: []
# - name: SOME_VAR
# value: some-var-value
# - name: SOME_VAR_FROM_CONFIG_MAP
# valueFrom:
# configMapRef:
# name: configmap-name
# key: config-key
# - name: SOME_SECRET
# valueFrom:
# secretKeyRef:
# name: secret-name
# key: secret-key
envFrom: []
# - configMapRef:
# name: config-map-name
# - secretRef:
# name: secret-name
# If you use an existingClaim for the config volume then it is sometimes useful to specify a subPath
# within the volume to mount instead of mounting the root.