kontena / pharos-host-upgrades

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

Cron --schedule misinterprets standard five-field syntax #29

Closed SpComb closed 6 years ago

SpComb commented 6 years ago

The --schedule=... parameter accepts a standard cron schedule with five fields but misinterprets it:

2018/06/19 10:31:14 Using --schedule="30 6 * * *", first upgrade at: 2018-06-19 11:06:30 +0300 EEST (in 35m15.977726481s)

This should run daily at 06:30, but with the six-field https://github.com/robfig/cron, this will run every hour at xx:06:30 instead.