weekdays to use a bitmap, add (minimal) tests

This commit is contained in:
JJ Jordan
2019-04-04 01:02:27 -07:00
parent 3f6713fa65
commit 7d85e85db0
5 changed files with 141 additions and 23 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ func main() {
rootCmd.PersistentFlags().StringArrayVar(&podSelectors, "blocking-pod-selector", nil,
"label selector identifying pods whose presence should prevent reboots")
rootCmd.PersistentFlags().StringSliceVar(&rebootDays, "reboot-on-days", []string{"sun", "mon", "tue", "wed", "thu", "fri", "sat"},
rootCmd.PersistentFlags().StringSliceVar(&rebootDays, "reboot-on-days", timewindow.EveryDay,
"only reboot on these days")
rootCmd.PersistentFlags().StringVar(&rebootStart, "start-time", "0:00",
"only reboot after this time of day")