From 6c8d01add376ea193daeadcd0527a19f7bbbd912 Mon Sep 17 00:00:00 2001 From: Ryan Holt Date: Fri, 14 Feb 2020 15:21:28 -0500 Subject: [PATCH] add deploymentannotations, bump chart version (#20763) Signed-off-by: Ryan Holt --- charts/unifi/Chart.yaml | 2 +- charts/unifi/README.md | 1 + charts/unifi/templates/deployment.yaml | 6 ++++++ charts/unifi/values.yaml | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/unifi/Chart.yaml b/charts/unifi/Chart.yaml index 6f732c06..03418128 100644 --- a/charts/unifi/Chart.yaml +++ b/charts/unifi/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 5.11.50 description: Ubiquiti Network's Unifi Controller name: unifi -version: 0.6.0 +version: 0.6.1 keywords: - ubiquiti - unifi diff --git a/charts/unifi/README.md b/charts/unifi/README.md index e58015c6..87fdecb8 100644 --- a/charts/unifi/README.md +++ b/charts/unifi/README.md @@ -101,6 +101,7 @@ The following tables lists the configurable parameters of the Unifi chart and th | `tolerations` | Toleration labels for pod assignment | `[]` | | `affinity` | Affinity settings for pod assignment | `{}` | | `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | +| `deploymentAnnotations` | Key-value pairs to add as deployment annotations | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, diff --git a/charts/unifi/templates/deployment.yaml b/charts/unifi/templates/deployment.yaml index 890fe5d4..fa66e72b 100644 --- a/charts/unifi/templates/deployment.yaml +++ b/charts/unifi/templates/deployment.yaml @@ -2,6 +2,12 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "unifi.fullname" . }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- range $key, $value := .Values.deploymentAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} labels: app.kubernetes.io/name: {{ include "unifi.name" . }} helm.sh/chart: {{ include "unifi.chart" . }} diff --git a/charts/unifi/values.yaml b/charts/unifi/values.yaml index 88f64985..910b28df 100644 --- a/charts/unifi/values.yaml +++ b/charts/unifi/values.yaml @@ -222,3 +222,5 @@ tolerations: [] affinity: {} podAnnotations: {} + +deploymentAnnotations: {}