diff --git a/api/jobs.go b/api/jobs.go index 903f23a17..d5b692f6e 100644 --- a/api/jobs.go +++ b/api/jobs.go @@ -234,6 +234,9 @@ func (p *PeriodicConfig) Canonicalize() { if p.Enabled == nil { p.Enabled = helper.BoolToPtr(true) } + if p.Spec == nil { + p.Spec = helper.StringToPtr("") + } if p.SpecType == nil { p.SpecType = helper.StringToPtr(PeriodicSpecCron) }