From e73b9697e3acd79d05aefda921c6dced6decae37 Mon Sep 17 00:00:00 2001 From: Ryan Holt Date: Thu, 13 Feb 2020 09:32:18 -0500 Subject: [PATCH] added deployment annotations and bumped chart (#146) Signed-off-by: Ryan Holt --- charts/radarr/Chart.yaml | 2 +- charts/radarr/README.md | 1 + charts/radarr/templates/deployment.yaml | 6 ++++++ charts/radarr/values.yaml | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/radarr/Chart.yaml b/charts/radarr/Chart.yaml index 81cb00f7..15b99d89 100644 --- a/charts/radarr/Chart.yaml +++ b/charts/radarr/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: amd64-v0.2.0.1344-ls17 description: Radarr is a movie downloading client name: radarr -version: 3.0.0 +version: 3.0.1 keywords: - radarr - usenet diff --git a/charts/radarr/README.md b/charts/radarr/README.md index 2c8811e6..12897fcd 100644 --- a/charts/radarr/README.md +++ b/charts/radarr/README.md @@ -79,6 +79,7 @@ The following tables lists the configurable parameters of the Sentry chart and t | `tolerations` | Toleration labels for pod assignment | `[]` | | `affinity` | Affinity settings for pod assignment | `{}` | | `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, diff --git a/charts/radarr/templates/deployment.yaml b/charts/radarr/templates/deployment.yaml index 50aa34e7..0380e959 100644 --- a/charts/radarr/templates/deployment.yaml +++ b/charts/radarr/templates/deployment.yaml @@ -2,6 +2,12 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "radarr.fullname" . }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- range $key, $value := .Values.deploymentAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} labels: app.kubernetes.io/name: {{ include "radarr.name" . }} helm.sh/chart: {{ include "radarr.chart" . }} diff --git a/charts/radarr/values.yaml b/charts/radarr/values.yaml index 0ad2a2a9..38ad4826 100644 --- a/charts/radarr/values.yaml +++ b/charts/radarr/values.yaml @@ -140,3 +140,5 @@ tolerations: [] affinity: {} podAnnotations: {} + +deploymentAnnotations: {}