From 3bf3e6d66b1f32b6da41e4172b5e8d290d1fd557 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Thu, 12 Mar 2020 09:52:03 -0400 Subject: [PATCH] [jackett] add deployment annotations (#174) --- charts/jackett/Chart.yaml | 4 ++-- charts/jackett/README.md | 1 + charts/jackett/templates/deployment.yaml | 6 ++++++ charts/jackett/values.yaml | 4 +++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/charts/jackett/Chart.yaml b/charts/jackett/Chart.yaml index 3261dcfb..e75b0a88 100644 --- a/charts/jackett/Chart.yaml +++ b/charts/jackett/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: v0.12.1582-ls39 +appVersion: v0.13.446-ls55 description: API Support for your favorite torrent trackers name: jackett -version: 2.1.1 +version: 2.2.0 keywords: - jackett - torrent diff --git a/charts/jackett/README.md b/charts/jackett/README.md index 7b0b883b..4bb128b5 100644 --- a/charts/jackett/README.md +++ b/charts/jackett/README.md @@ -77,6 +77,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/jackett/templates/deployment.yaml b/charts/jackett/templates/deployment.yaml index 1afc82cf..4c1c0702 100644 --- a/charts/jackett/templates/deployment.yaml +++ b/charts/jackett/templates/deployment.yaml @@ -2,6 +2,12 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "jackett.fullname" . }} + {{- if .Values.deploymentAnnotations }} + annotations: + {{- range $key, $value := .Values.deploymentAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} labels: app.kubernetes.io/name: {{ include "jackett.name" . }} helm.sh/chart: {{ include "jackett.chart" . }} diff --git a/charts/jackett/values.yaml b/charts/jackett/values.yaml index b38f9f1f..2ab68548 100644 --- a/charts/jackett/values.yaml +++ b/charts/jackett/values.yaml @@ -4,7 +4,7 @@ image: repository: linuxserver/jackett - tag: v0.12.1582-ls39 + tag: v0.13.446-ls55 pullPolicy: IfNotPresent # upgrade strategy type (e.g. Recreate or RollingUpdate) @@ -123,3 +123,5 @@ tolerations: [] affinity: {} podAnnotations: {} + +deploymentAnnotations: {}