-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CronJob concept implies that CronJob can schedule one-shot tasks for a specific future date #27394
Comments
@kubernetes/sig-apps-misc could you confirm this and /triage accepted if you agree? |
I logged this after adding feedback for the v1.21 release announcement: #27233 (comment) |
@sftim yeah, I like your proposed wording, are you going to open a PR? |
This issue is open for an interested contributor to work on. I already have some other PRs / work-in-progress that I'm going to focus on first. |
The wording I suggested was:
|
Lemme add that bit to #28229 where I'm updating CronJob related flag, in that case. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
This was fixed in #28229 |
@soltysh: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is a Bug Report
Problem:
The CronJob concept page mentions:
This sounds like
at
, which can schedule one-shot tasks for a specific future date / datetime; however, that page strongly implies that CronJob does not in fact provide “run exactly once and never repeat” semantics.Technically you could define a CronJob and a ServiceAccount and authnz rules that let the CronJob delete itself after it has successfully run once. I don't think we want to mention that bodge. I'd rather see an addon that gives you a OneShotScheduledJob CRD or similar.
Proposed Solution:
Remove or reword the text “CronJobs can also schedule individual tasks for a specific time, such as scheduling a Job for when your cluster is likely to be idle.”
Page to Update:
https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
Additional Information:
/kind bug
/sig apps
The text was updated successfully, but these errors were encountered: