rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
463 stars 261 forks source link

Crontab `@daily` marked as invalid in Rancher Cronjobs #12229

Open mmartin24 opened 1 month ago

mmartin24 commented 1 month ago

Setup

Describe the bug Attemtping to schedule a cronjob with @daily triggers alert symbol with text Invalid cron schedule

To Reproduce

Result It is marked as invalid both in tooltip and with small message under the new crontab

image

Expected Result Should be valid (verifiable here: https://crontab.guru/#@daily) and no error sign should appear

Screenshots

Additional context

richard-cox commented 1 month ago

Those aren't standard syntax... but it looks like kube supports them https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-syntax.

We should bump https://github.com/bradymholt/cronstrue