add deploymentannotations, bump chart version (#20763)

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
This commit is contained in:
Ryan Holt 2020-02-14 15:21:28 -05:00 committed by Jeff Billimek
parent 9798bb82cc
commit 6c8d01add3
No known key found for this signature in database
GPG Key ID: 214B3EF39B4956B7
4 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 5.11.50 appVersion: 5.11.50
description: Ubiquiti Network's Unifi Controller description: Ubiquiti Network's Unifi Controller
name: unifi name: unifi
version: 0.6.0 version: 0.6.1
keywords: keywords:
- ubiquiti - ubiquiti
- unifi - unifi

View File

@ -101,6 +101,7 @@ The following tables lists the configurable parameters of the Unifi chart and th
| `tolerations` | Toleration labels for pod assignment | `[]` | | `tolerations` | Toleration labels for pod assignment | `[]` |
| `affinity` | Affinity settings for pod assignment | `{}` | | `affinity` | Affinity settings for pod assignment | `{}` |
| `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | | `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, Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

View File

@ -2,6 +2,12 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ template "unifi.fullname" . }} name: {{ template "unifi.fullname" . }}
{{- if .Values.deploymentAnnotations }}
annotations:
{{- range $key, $value := .Values.deploymentAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels: labels:
app.kubernetes.io/name: {{ include "unifi.name" . }} app.kubernetes.io/name: {{ include "unifi.name" . }}
helm.sh/chart: {{ include "unifi.chart" . }} helm.sh/chart: {{ include "unifi.chart" . }}

View File

@ -222,3 +222,5 @@ tolerations: []
affinity: {} affinity: {}
podAnnotations: {} podAnnotations: {}
deploymentAnnotations: {}