From fa28b550b2355a5c097a06ae2d562fa072414da4 Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Fri, 8 Oct 2021 14:56:30 +0200 Subject: [PATCH] feat: add reboot-sentinel-command to helm-chart Signed-off-by: Christian Kotzbauer --- charts/kured/README.md | 1 + charts/kured/templates/daemonset.yaml | 3 +++ charts/kured/values.minikube.yaml | 1 + charts/kured/values.yaml | 1 + 4 files changed, 6 insertions(+) diff --git a/charts/kured/README.md b/charts/kured/README.md index d660930..954e3b2 100644 --- a/charts/kured/README.md +++ b/charts/kured/README.md @@ -59,6 +59,7 @@ The following changes have been made compared to the stable chart: | `configuration.prometheusUrl` | cli-parameter `--prometheus-url` | `""` | | `configuration.rebootDays` | Array of days for multiple cli-parameters `--reboot-days` | `[]` | | `configuration.rebootSentinel` | cli-parameter `--reboot-sentinel` | `""` | +| `configuration.rebootSentinelCommand` | cli-parameter `--reboot-sentinel-command` | `""` | | `configuration.rebootCommand` | cli-parameter `--reboot-command` | `""` | | `configuration.rebootDelay` | cli-parameter `--reboot-delay` | `""` | | `configuration.slackChannel` | cli-parameter `--slack-channel` | `""` | diff --git a/charts/kured/templates/daemonset.yaml b/charts/kured/templates/daemonset.yaml index 9abe7f4..7554464 100644 --- a/charts/kured/templates/daemonset.yaml +++ b/charts/kured/templates/daemonset.yaml @@ -97,6 +97,9 @@ spec: {{- if .Values.configuration.rebootSentinel }} - --reboot-sentinel={{ .Values.configuration.rebootSentinel }} {{- end }} + {{- if .Values.configuration.rebootSentinelCommand }} + - --reboot-sentinel-command={{ .Values.configuration.rebootSentinelCommand }} + {{- end }} {{- if .Values.configuration.rebootCommand }} - --reboot-command={{ .Values.configuration.rebootCommand }} {{- end }} diff --git a/charts/kured/values.minikube.yaml b/charts/kured/values.minikube.yaml index ce676b1..b06d9f7 100644 --- a/charts/kured/values.minikube.yaml +++ b/charts/kured/values.minikube.yaml @@ -17,6 +17,7 @@ configuration: # prometheusUrl: "" # Prometheus instance to probe for active alerts # rebootDays: [] # only reboot on these days (default [su,mo,tu,we,th,fr,sa]) # rebootSentinel: "" # path to file whose existence signals need to reboot (default "/var/run/reboot-required") + # rebootSentinelCommand: "" # command for which a successful run signals need to reboot (default ""). If non-empty, sentinel file will be ignored. # slackChannel: "" # slack channel for reboot notfications # slackHookUrl: "" # slack hook URL for reboot notfications # slackUsername: "" # slack username for reboot notfications (default "kured") diff --git a/charts/kured/values.yaml b/charts/kured/values.yaml index f402137..10ed5cb 100644 --- a/charts/kured/values.yaml +++ b/charts/kured/values.yaml @@ -36,6 +36,7 @@ configuration: prometheusUrl: "" # Prometheus instance to probe for active alerts rebootDays: [] # only reboot on these days (default [su,mo,tu,we,th,fr,sa]) rebootSentinel: "" # path to file whose existence signals need to reboot (default "/var/run/reboot-required") + rebootSentinelCommand: "" # command for which a successful run signals need to reboot (default ""). If non-empty, sentinel file will be ignored. rebootCommand: "/bin/systemctl reboot" # command to run when a reboot is required by the sentinel rebootDelay: "" # add a delay after drain finishes but before the reboot command is issued slackChannel: "" # slack channel for reboot notfications