Skip to content

Commit

Permalink
Merge pull request #62 from MerlinDMC/feat/drain-delay
Browse files Browse the repository at this point in the history
feat: add drainDelay configuration property
  • Loading branch information
jackfrancis authored Dec 11, 2023
2 parents 8588c76 + 07b9d84 commit 8549776
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
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.lockAnnotation` | cli-parameter `--lock-annotation` | `""` |
| `configuration.period` | cli-parameter `--period` | `""` |
| `configuration.forceReboot` | cli-parameter `--force-reboot` | `false` |
| `configuration.drainDelay` | cli-parameter `--drain-delay` | `0` |
| `configuration.drainGracePeriod` | cli-parameter `--drain-grace-period` | `""` |
| `configuration.drainTimeout` | cli-parameter `--drain-timeout` | `""` |
| `configuration.drainPodSelector` | cli-parameter `--drain-pod-selector` | `""` |
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 @@ -108,6 +108,9 @@ spec:
{{- if .Values.configuration.drainPodSelector }}
- --drain-pod-selector={{ .Values.configuration.drainPodSelector }}
{{- end }}
{{- if .Values.configuration.drainDelay }}
- --drain-delay={{ .Values.configuration.drainDelay }}
{{- end }}
{{- if .Values.configuration.drainTimeout }}
- --drain-timeout={{ .Values.configuration.drainTimeout }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/kured/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ configuration:
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)
drainDelay: 0 # delay drain for this duration (default: 0, disabled)
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 8549776

Please sign in to comment.