kontena / pharos-host-upgrades

Kube DaemonSet for host OS upgrades
Apache License 2.0
41 stars 1 forks source link

Upgrades should be skipped if they are delayed beyond the end of the maintenance window #1

Closed SpComb closed 6 years ago

SpComb commented 6 years ago

If acquiring the kube lock takes a long time, the upgrade should be skipped if it goes beyond the given maintenance window (starting from the --schedule time).

Example: with --schedule='0 15 5 * * *' --schedule-window=2h upgrades should only run from 05:15 to 07:15.

This limit only applies to starting the upgrade... a running upgrade will not be aborted if it goes beyond the window.