#10594·velero

改进了对无效 Schedule cron 表达式的验证错误消息

作者: PrasadJoshi12创建于 2026年9月28日更新于 2026年9月28日

What steps did you take and what happened:

When a Velero Schedule contains an invalid cron expression, status.validationErrors exposes low-level Go parsing errors without explaining the accepted syntax or how to correct the input. For example, this schedule: apiVersion: velero.io/v1 kind: Schedule metadata: name: invalid-schedule namespace: velero spec: schedule: "a 0 * * *" template: includedNamespaces: - default produces: invalid schedule: failed to parse int from "a": strconv.Atoi: parsing "a": invalid syntax The schedule is correctly rejected, but the message repeats the parsing failure and exposes implementation details that are not useful to most users.

内容来源: velero-io/velero