diff --git a/sonarr/Chart.yaml b/sonarr/Chart.yaml index d700d48a..f6739667 100644 --- a/sonarr/Chart.yaml +++ b/sonarr/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: amd64-2.0.0.5321-ls62 description: Sonarr is a television show downloading client name: sonarr -version: 2.0.6 +version: 2.0.7 keywords: - sonarr - usenet diff --git a/sonarr/README.md b/sonarr/README.md index 769f958e..a4cdfeed 100644 --- a/sonarr/README.md +++ b/sonarr/README.md @@ -72,6 +72,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, diff --git a/sonarr/templates/deployment.yaml b/sonarr/templates/deployment.yaml index eb4e1527..122d0a79 100644 --- a/sonarr/templates/deployment.yaml +++ b/sonarr/templates/deployment.yaml @@ -20,6 +20,12 @@ spec: labels: app.kubernetes.io/name: {{ include "sonarr.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + {{- if .Values.podAnnotations }} + annotations: + {{- range $key, $value := .Values.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: containers: - name: {{ .Chart.Name }} diff --git a/sonarr/values.yaml b/sonarr/values.yaml index 7e05bbe8..acb97423 100644 --- a/sonarr/values.yaml +++ b/sonarr/values.yaml @@ -127,3 +127,5 @@ nodeSelector: {} tolerations: [] affinity: {} + +podAnnotations: {}