Schedules: treat 1st cron field as minutes

Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
This commit is contained in:
Andy Goldstein
2017-08-10 12:44:00 -04:00
parent 35b865dfcf
commit 680e17815b
2 changed files with 50 additions and 1 deletions

View File

@@ -300,7 +300,7 @@ func parseCronSchedule(itm *api.Schedule) (cron.Schedule, []string) {
}
}()
if res, err := cron.Parse(itm.Spec.Schedule); err != nil {
if res, err := cron.ParseStandard(itm.Spec.Schedule); err != nil {
glog.V(4).Infof("error parsing schedule %v/%v, cron schedule=%v: %v", itm.Namespace, itm.Name, itm.Spec.Schedule, err)
validationErrors = append(validationErrors, fmt.Sprintf("invalid schedule: %v", err))
} else {