[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 appVersion: 0.118.3
description: Home Assistant description: Home Assistant
name: home-assistant name: home-assistant
version: 3.2.0 version: 3.2.1
keywords: keywords:
- home-assistant - home-assistant
- hass - 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. The following tables lists the configurable parameters of the Home Assistant chart and their default values.
| Parameter | Description | Default | | Parameter | Description | Default |
|-------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------| | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| `image.repository` | Image repository | `homeassistant/home-assistant` | | `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.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` | | `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.tag` | Image tag | `3.0.5` |
| `appdaemon.image.pullPolicy` | Image pull policy | `IfNotPresent` | | `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.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.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.enabled` | Enables Ingress for the AppDaemon UI | `false` |
| `appdaemon.ingress.annotations` | Ingress annotations for the AppDaemon UI | `{}` | | `appdaemon.ingress.annotations` | Ingress annotations for the AppDaemon UI | `{}` |

View File

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

View File

@ -313,10 +313,26 @@ appdaemon:
## Home Assistant API token ## Home Assistant API token
# haToken: # haToken:
## Additional hass-vscode container environment variable # Environment variables to be passed to appdaemon comtainer
## For instance to add a http_proxy env: []
## # - name: SOME_VAR
extraEnv: {} # 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 # 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. # within the volume to mount instead of mounting the root.