[sonarr] enable support for deployment annotations (#145)

* enable deployment annotations

Signed-off-by: Ryan Holt <ryan@ryanholt.net>

* include readme updates

Signed-off-by: Ryan Holt <ryan@ryanholt.net>
This commit is contained in:
Ryan Holt 2020-02-10 18:55:55 -05:00 committed by GitHub
parent aa4d60d783
commit a4a7e17788
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: amd64-2.0.0.5321-ls62 appVersion: amd64-2.0.0.5321-ls62
description: Sonarr is a television show downloading client description: Sonarr is a television show downloading client
name: sonarr name: sonarr
version: 3.0.0 version: 3.0.1
keywords: keywords:
- sonarr - sonarr
- usenet - usenet

View File

@ -79,6 +79,7 @@ The following tables lists the configurable parameters of the Sentry chart and t
| `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: {{ include "sonarr.fullname" . }} name: {{ include "sonarr.fullname" . }}
{{- if .Values.deploymentAnnotations }}
annotations:
{{- range $key, $value := .Values.deploymentAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels: labels:
app.kubernetes.io/name: {{ include "sonarr.name" . }} app.kubernetes.io/name: {{ include "sonarr.name" . }}
helm.sh/chart: {{ include "sonarr.chart" . }} helm.sh/chart: {{ include "sonarr.chart" . }}

View File

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