Skip to content

Surface next scheduled time in CronJob status #6281

Description

@vishals-3

Enhancement Description

  • One-line enhancement description (can be used as a release note): Surface the next time a CronJob is scheduled to create a Job via a new alpha CronJobStatus.nextScheduleTime field, gated by the CronJobsNextScheduleTime feature gate.
  • Kubernetes Enhancement Proposal: KEP PR to be linked (draft in progress)
  • Discussion Link: add the next run jobs time to CronJobStatus kubernetes#78564 (original feature request, open since 2019)
  • Primary contact (assignee): @vishals-3
  • Responsible SIGs: sig-apps
  • PRs by stage and milestone:

Summary

CronJob status exposes lastScheduleTime but not the next scheduled time. Users
must reimplement cron parsing and time-zone handling to answer "when does this run
next?". The CronJob controller already computes this value internally to schedule
its requeue; this enhancement surfaces it as a read-only status field behind an
alpha feature gate. Fixes the long-standing request in kubernetes/kubernetes#78564.

Please keep this description up to date. This will help the Enhancement Team to track the evolution of the enhancement efficiently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-sigIndicates an issue or PR lacks a `sig/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions