From 87e610c25fa113d6080b2f4eebcfabea906581ab Mon Sep 17 00:00:00 2001 From: Jack Francis Date: Fri, 15 Jan 2021 10:28:11 -0800 Subject: [PATCH] update chart definition to include --annotate-nodes --- charts/kured/Chart.yaml | 2 +- charts/kured/README.md | 1 + charts/kured/templates/daemonset.yaml | 3 +++ charts/kured/values.minikube.yaml | 1 + charts/kured/values.yaml | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/kured/Chart.yaml b/charts/kured/Chart.yaml index 8e32b3e..905bc21 100644 --- a/charts/kured/Chart.yaml +++ b/charts/kured/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.6.1" description: A Helm chart for kured name: kured -version: 2.3.2 +version: 2.4.0 home: https://github.com/weaveworks/kured maintainers: - name: ckotzbauer diff --git a/charts/kured/README.md b/charts/kured/README.md index c8f62fa..3b4b7b8 100644 --- a/charts/kured/README.md +++ b/charts/kured/README.md @@ -60,6 +60,7 @@ The following changes have been made compared to the stable chart: | `configuration.messageTemplateReboot` | cli-parameter `--message-template-reboot` | `""` | | `configuration.startTime` | cli-parameter `--start-time` | `""` | | `configuration.timeZone` | cli-parameter `--time-zone` | `""` | +| `configuration.annotateNodes` | cli-parameter `--annotate-nodes` | `false` | | `rbac.create` | Create RBAC roles | `true` | | `serviceAccount.create` | Create a service account | `true` | | `serviceAccount.name` | Service account name to create (or use if `serviceAccount.create` is false) | (chart fullname) | diff --git a/charts/kured/templates/daemonset.yaml b/charts/kured/templates/daemonset.yaml index 4731e24..3fa8845 100644 --- a/charts/kured/templates/daemonset.yaml +++ b/charts/kured/templates/daemonset.yaml @@ -100,6 +100,9 @@ spec: {{- if .Values.configuration.timeZone }} - --time-zone={{ .Values.configuration.timeZone }} {{- end }} + {{- if .Values.configuration.annotateNodes }} + - --annotate-nodes={{ .Values.configuration.annotateNodes }} + {{- end }} {{- range $key, $value := .Values.extraArgs }} {{- if $value }} - --{{ $key }}={{ $value }} diff --git a/charts/kured/values.minikube.yaml b/charts/kured/values.minikube.yaml index 9b27635..cf4a554 100644 --- a/charts/kured/values.minikube.yaml +++ b/charts/kured/values.minikube.yaml @@ -19,3 +19,4 @@ configuration: # messageTemplateReboot: "" # slack message template when notifying about a node being rebooted (default "Rebooted node %s") # startTime: "" # only reboot after this time of day (default "0:00") # timeZone: "" # time-zone to use (valid zones from "time" golang package) + # annotateNodes: false # enable 'weave.works/kured-reboot-in-progress' and 'weave.works/kured-most-recent-reboot-needed' node annotations to signify kured reboot operations diff --git a/charts/kured/values.yaml b/charts/kured/values.yaml index cd250fb..86e5868 100644 --- a/charts/kured/values.yaml +++ b/charts/kured/values.yaml @@ -38,6 +38,7 @@ configuration: messageTemplateReboot: "" # slack message template when notifying about a node being rebooted (default "Rebooted node %s") startTime: "" # only reboot after this time of day (default "0:00") timeZone: "" # time-zone to use (valid zones from "time" golang package) + annotateNodes: false # enable 'weave.works/kured-reboot-in-progress' and 'weave.works/kured-most-recent-reboot-needed' node annotations to signify kured reboot operations rbac: create: true