adding pod annotations to nzbget (#73)

* adding pod annotations to nzbget

Signed-off-by: Jeff Billimek <jeff@billimek.com>

* adding missing if check

Signed-off-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
Jeff Billimek 2019-10-07 13:18:18 -04:00 committed by GitHub
parent 88744888e7
commit ba96aa3efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: v21.0-ls14 appVersion: v21.0-ls14
description: NZBGet is a Usenet downloader client description: NZBGet is a Usenet downloader client
name: nzbget name: nzbget
version: 2.0.7 version: 2.0.8
keywords: keywords:
- nzbget - nzbget
- usenet - usenet

View File

@ -71,6 +71,7 @@ The following tables lists the configurable parameters of the Sentry chart and t
| `nodeSelector` | Node labels for pod assignment | `{}` | | `nodeSelector` | Node labels for pod assignment | `{}` |
| `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 | `{}` |
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

@ -7,6 +7,12 @@ metadata:
helm.sh/chart: {{ include "nzbget.chart" . }} helm.sh/chart: {{ include "nzbget.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.podAnnotations }}
annotations:
{{- range $key, $value := .Values.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:

View File

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