Skip to content

Commit

Permalink
expose --drain-pod-selector (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Pruessmann <[email protected]>
Signed-off-by: Christian Kotzbauer <[email protected]>
Co-authored-by: Christian Kotzbauer <[email protected]>
  • Loading branch information
docbobo and ckotzbauer authored Aug 19, 2023
1 parent eeda986 commit 544f822
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kured/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.13.2"
description: A Helm chart for kured
name: kured
version: 5.1.0
version: 5.2.0
home: https://github.com/kubereboot/kured
maintainers:
- name: ckotzbauer
Expand Down
1 change: 1 addition & 0 deletions charts/kured/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ The following changes have been made compared to the stable chart:
| `configuration.forceReboot` | cli-parameter `--force-reboot` | `false` |
| `configuration.drainGracePeriod` | cli-parameter `--drain-grace-period` | `""` |
| `configuration.drainTimeout` | cli-parameter `--drain-timeout` | `""` |
| `configuration.drainPodSelector` | cli-parameter `--drain-pod-selector` | `""` |
| `configuration.skipWaitForDeleteTimeout` | cli-parameter `--skip-wait-for-delete-timeout` | `""` |
| `configuration.prometheusUrl` | cli-parameter `--prometheus-url` | `""` |
| `configuration.rebootDays` | Array of days for multiple cli-parameters `--reboot-days` | `[]` |
Expand Down
3 changes: 3 additions & 0 deletions charts/kured/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ spec:
{{- if .Values.configuration.drainGracePeriod }}
- --drain-grace-period={{ .Values.configuration.drainGracePeriod }}
{{- end }}
{{- if .Values.configuration.drainPodSelector }}
- --drain-pod-selector={{ .Values.configuration.drainPodSelector }}
{{- end }}
{{- if .Values.configuration.drainTimeout }}
- --drain-timeout={{ .Values.configuration.drainTimeout }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/kured/values.minikube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ configuration:
period: "1m" # reboot check period (default 1h0m0s)
# forceReboot: false # force a reboot even if the drain fails or times out (default: false)
# drainGracePeriod: "" # time in seconds given to each pod to terminate gracefully, if negative, the default value specified in the pod will be used (default: -1)
# drainPodSelector: "" # only drain pods with labels matching the selector (default: '', all pods)
# drainTimeout: "" # timeout after which the drain is aborted (default: 0, infinite time)
# skipWaitForDeleteTimeout: "" # when time is greater than zero, skip waiting for the pods whose deletion timestamp is older than N seconds while draining a node (default: 0)
# prometheusUrl: "" # Prometheus instance to probe for active alerts
Expand Down
1 change: 1 addition & 0 deletions charts/kured/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ configuration:
period: "" # reboot check period (default 1h0m0s)
forceReboot: false # force a reboot even if the drain fails or times out (default: false)
drainGracePeriod: "" # time in seconds given to each pod to terminate gracefully, if negative, the default value specified in the pod will be used (default: -1)
drainPodSelector: "" # only drain pods with labels matching the selector (default: '', all pods)
drainTimeout: "" # timeout after which the drain is aborted (default: 0, infinite time)
skipWaitForDeleteTimeout: "" # when time is greater than zero, skip waiting for the pods whose deletion timestamp is older than N seconds while draining a node (default: 0)
prometheusUrl: "" # Prometheus instance to probe for active alerts
Expand Down

0 comments on commit 544f822

Please sign in to comment.