[BUG] - CronJob withSeconds
documentation and implementation inconsistency
#738
Labels
bug
Something isn't working
Describe the bug
The method
CronJob
documentation says that the 6th field is optional but it is actually mandatory (validation fails).The likely correction to this would be to change the following code block:
job.go:126
with:
To Reproduce
Steps to reproduce the behavior:
Attempt to create a
CronJob
with the following expression* * * * *
using thewithSeconds
parametertrue
.Version
v2.5.0
(latest)
Expected behavior
When invoking
CronJob
withwithSeconds
set to true, we should accept both seconds and non-seconds cron-expressions (as the documentation claims).Additional context
The text was updated successfully, but these errors were encountered: