From 178ba93b5a0a42310b7e87821d6495bbf094c56d Mon Sep 17 00:00:00 2001 From: Daniel Simionato Date: Tue, 11 Jan 2022 14:46:18 +0100 Subject: [PATCH] Add ability to define ds annotations in helm chart --- charts/kured/Chart.yaml | 2 +- charts/kured/README.md | 1 + charts/kured/templates/daemonset.yaml | 6 ++++++ charts/kured/values.yaml | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/kured/Chart.yaml b/charts/kured/Chart.yaml index 1936869..702aed3 100644 --- a/charts/kured/Chart.yaml +++ b/charts/kured/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.9.1" description: A Helm chart for kured name: kured -version: 2.11.1 +version: 2.11.2 home: https://github.com/weaveworks/kured maintainers: - name: ckotzbauer diff --git a/charts/kured/README.md b/charts/kured/README.md index cffb0d7..55e7627 100644 --- a/charts/kured/README.md +++ b/charts/kured/README.md @@ -42,6 +42,7 @@ The following changes have been made compared to the stable chart: | `updateStrategy` | Daemonset update strategy | `RollingUpdate` | | `maxUnavailable` | The max pods unavailable during a rolling update | `1` | | `podAnnotations` | Annotations to apply to pods (eg to add Prometheus annotations) | `{}` | +| `dsAnnotations` | Annotations to apply to the kured DaemonSet | `{}` | | `extraArgs` | Extra arguments to pass to `/usr/bin/kured`. See below. | `{}` | | `extraEnvVars` | Array of environment variables to pass to the daemonset. | `{}` | | `configuration.lockTtl` | cli-parameter `--lock-ttl` | `0` | diff --git a/charts/kured/templates/daemonset.yaml b/charts/kured/templates/daemonset.yaml index bb978d4..b8250f9 100644 --- a/charts/kured/templates/daemonset.yaml +++ b/charts/kured/templates/daemonset.yaml @@ -5,6 +5,12 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "kured.labels" . | nindent 4 }} + {{- if .Values.dsAnnotations }} + annotations: + {{- range $key, $value := .Values.dsAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: updateStrategy: type: {{ .Values.updateStrategy }} diff --git a/charts/kured/values.yaml b/charts/kured/values.yaml index ac4e4d6..20001fb 100644 --- a/charts/kured/values.yaml +++ b/charts/kured/values.yaml @@ -9,6 +9,7 @@ updateStrategy: RollingUpdate maxUnavailable: 1 podAnnotations: {} +dsAnnotations: {} extraArgs: {}