vmware-tanzu / velero

Backup and migrate Kubernetes applications and their persistent volumes
https://velero.io
Apache License 2.0
8.74k stars 1.41k forks source link

Upgrade robfig/cron Library to Support Time Zones #7792

Closed yuanqijing closed 2 months ago

yuanqijing commented 6 months ago

Describe the problem/challenge you have

Currently, Velero uses robfig/cron library version v1.1.0 which does not support time zone specification for scheduled tasks. Upgrading to robfig/cron version v3.0.0 or higher will allow us to leverage time zone features, providing more flexibility in scheduling backups and other tasks based on different time zones.

Describe the solution you'd like

To implement this feature, the robfig/cron library should be upgraded to v3.0.0 or higher.

Anything else you would like to add:

Here's an example of how the updated cron scheduling might look with time zone support: velero schedule create NAME --schedule="CRON_TZ=Asia/Tokyo 30 04 * * *"

References: robfig/cron v3 documentation

Environment:

Vote on this issue!

This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. If a Velero team member has requested log or more information, please provide the output of the shared commands.

blackpiglet commented 4 months ago

unstale