From f7e6feba765506475345ea1b5a579576aedb6d2e Mon Sep 17 00:00:00 2001 From: Jeff Billimek Date: Wed, 17 Jul 2019 02:00:34 -0400 Subject: [PATCH] [stable/home-assistant] add podannotations support (#15473) * add podannotations support Signed-off-by: Jeff Billimek * bumping image version to 0.95.4 Signed-off-by: Jeff Billimek --- stable/home-assistant/Chart.yaml | 4 ++-- stable/home-assistant/README.md | 4 +++- stable/home-assistant/templates/deployment.yaml | 6 ++++++ stable/home-assistant/values.yaml | 4 +++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/stable/home-assistant/Chart.yaml b/stable/home-assistant/Chart.yaml index 7c7fd03660..471804eb03 100644 --- a/stable/home-assistant/Chart.yaml +++ b/stable/home-assistant/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: 0.93.2 +appVersion: 0.95.4 description: Home Assistant name: home-assistant -version: 0.9.3 +version: 0.9.4 keywords: - home-assistant - hass diff --git a/stable/home-assistant/README.md b/stable/home-assistant/README.md index 7a21776497..aa416bb974 100644 --- a/stable/home-assistant/README.md +++ b/stable/home-assistant/README.md @@ -36,7 +36,7 @@ The following tables lists the configurable parameters of the Home Assistant cha | 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.90.2`| +| `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/homeassistant/home-assistant/tags/).| `0.95.4`| | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullSecrets` | Secrets to use when pulling the image | `[]` | | `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` | @@ -125,6 +125,8 @@ The following tables lists the configurable parameters of the Home Assistant cha | `nodeSelector` | Node labels for pod assignment or the home-assistant GUI | `{}` | | `tolerations` | Toleration labels for pod assignment or the home-assistant GUI | `[]` | | `affinity` | Affinity settings for pod assignment or the home-assistant GUI | `{}` | +| `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | + Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/stable/home-assistant/templates/deployment.yaml b/stable/home-assistant/templates/deployment.yaml index 1a4d4f6a34..e0c30dc8aa 100644 --- a/stable/home-assistant/templates/deployment.yaml +++ b/stable/home-assistant/templates/deployment.yaml @@ -20,6 +20,12 @@ spec: labels: app.kubernetes.io/name: {{ include "home-assistant.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + {{- if .Values.podAnnotations }} + annotations: + {{- range $key, $value := .Values.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: {{- with .Values.image.pullSecrets }} imagePullSecrets: diff --git a/stable/home-assistant/values.yaml b/stable/home-assistant/values.yaml index 7081133bf9..2061bbbf97 100644 --- a/stable/home-assistant/values.yaml +++ b/stable/home-assistant/values.yaml @@ -4,7 +4,7 @@ image: repository: homeassistant/home-assistant - tag: 0.93.2 + tag: 0.95.4 pullPolicy: IfNotPresent pullSecrets: [] @@ -240,3 +240,5 @@ nodeSelector: {} tolerations: [] affinity: {} + +podAnnotations: {}