mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
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:
parent
a4cbdc6177
commit
7a99a1e322
@ -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
|
||||
|
@ -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,
|
||||
|
||||
|
@ -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 }}
|
||||
|
@ -151,3 +151,5 @@ nodeSelector: {}
|
||||
tolerations: []
|
||||
|
||||
affinity: {}
|
||||
|
||||
podAnnotations: {}
|
||||
|
Loading…
Reference in New Issue
Block a user