Add configurable podAnnotations to unifi chart (#9833)

Use case is using `ark` + `restic` to take backups which requires pods
with persistent data to be annotated like:
```
kubectl annotate pod unifi-55f6dcc44c-khbrk backup.ark.heptio.com/backup-volumes=unifi-data
```

Signed-off-by: Lyle Franklin <lylejfranklin@gmail.com>
This commit is contained in:
Lyle Franklin 2018-12-10 15:54:40 -08:00 committed by Kubernetes Prow Robot
parent a4cbdc6177
commit 7a99a1e322
4 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 5.9.29
description: Ubiquiti Network's Unifi Controller
name: unifi
version: 0.2.1
version: 0.2.2
keywords:
- ubiquiti
- unifi

View File

@ -88,6 +88,7 @@ The following tables lists the configurable parameters of the Sentry chart and t
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Toleration labels for pod assignment | `[]` |
| `affinity` | Affinity settings for pod assignment | `{}` |
| `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,

View File

@ -18,6 +18,12 @@ spec:
labels:
app: {{ template "unifi.name" . }}
release: {{ .Release.Name }}
{{- if .Values.podAnnotations }}
annotations:
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
containers:
- name: {{ .Chart.Name }}

View File

@ -151,3 +151,5 @@ nodeSelector: {}
tolerations: []
affinity: {}
podAnnotations: {}