-
Notifications
You must be signed in to change notification settings - Fork 39.3k
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
Rename ScheduledJob to CronJob #32150
Comments
@janetkuo I've noticed you're taking care of the rename in #35534, I'd like to rename SJ to CronJobs, for 1.5. The only bugging thing for me is whether we just rename everything breaking backwards compatibility. SJ, similarly to PS are just and alpha feature so that's ok, but I want to be sure before coding. |
I think if the schema name changes, it should stay in alpha for another release. So if it is renamed to CronJobs in 1.5, it should not go to beta until 1.6 at the earliest. |
Not quite convinced, first off SJ are alpha, so no guarantees about backwards compatibility. Secondly, we're doing exactly similar thing to PetSets (see #35534). |
@justinsb can you elaborate on your reasoning? |
To give one more argument for, the sooner we do it the better for the users to safe the effort needed to switch from SJ to CJ. |
Some of my thoughts:
But what I don't have visibility into, is what is the upside here? It may still be worth it. Also, and most importantly, it should be "ChronJob". Because it's χρον-, not κρον- |
Justin: does it address your concerns if we do the following. for at least 2 versions, the apiserver serves both This means you could convert your manifests 1 at a time and also you could chose when to do it, not concurrent with an upgrade. I've talked to @caesarxuchao and he says the APIserver side of this is do-able. It will require some trickery in kubectl. One idea is to use a ThirdParty client in kubectl for scheduledJob/CronJob. Once we figure out this pattern, we can use it again pretty easily. |
I think that would be great @erictune - thank you for considering & suggesting it! It feels very much like the kubernetes way to evolving our schemas. It leaves the human issues (communication of renames, spelling of cron) which feels right, and with a "gradual" migration we could even put warnings into kubectl. |
A few mentioned that Scheduled might be mistakenly taken with the Scheduler. There were some naming doubts at the proposal time but were dropped at the time.
Actually I didn't plan to move SJ/CJ to beta anytime soon due to the missing parts, see kubernetes/enhancements#19 'Before beta' section and that will definitely won't happen for 1.5. But I wanted to do the rename asap to save users from migration pain.
Cron it will be, since it has a connotation from plain old linux cron.
@erictune we already did, see extensions/v1beta1 and batch/v1 Jobs, that's not that hard ;) |
Upon a discussion with @erictune and @justinsb we've had on Slack we're going to leave SJ as is and we'll introduce yet another object in batch/v2alpha1 called CronJob. Both of them should use cohabitating resource mechanism and we'll drop SJ support when we move to beta. All user facing docs should use the new name. |
SGTM On Thu, Oct 27, 2016 at 5:56 PM, Maciej Szulik notifications@github.com
|
Renaming stuff creates a mountain of work. For example back porting StatefulSet bug fixes back to PetSet... So I am against this. |
The reason things are alpha is for getting experience and feedback. The It may mean it won't get completed before a particular release freeze, but On Oct 29, 2016, at 5:02 PM, Chris Love notifications@github.com wrote: Renaming stuff creates a mountain of work. For example back porting — |
@smarterclayton I understand what you are saying, and maybe we need to figure out how to rename stuff better. For instance, there is a PetSet issue that will not get backported to 1.4 because of the rename and the way we are using alpha -> beta -> don't know the next name. Renaming is probably inevitable, but to me, we have better use of our time. Totally personal opinion. Where is that issue about renaming stuff :) I am still against this, because of the work generated, the fact it actually is NOT a cron job, in the manner that I learned about cron 15 years ago, and the business risk and cost that a rename creates. Cron daemon has a specific Linux admin meaning, and having a name like cron means that we have a cron like daemon. @smarterclayton just read your comment after @erictune comment, after I wrote this comment. Pretty much wrote the exact same reasoning that you used, without reading your comment. |
The intent of the resource is for cluster wide cron, and has been designed Business risk isn't enough of a justification, simply because the process On Oct 30, 2016, at 12:57 PM, Chris Love notifications@github.com wrote: @smarterclayton https://github.com/smarterclayton I understand what you I am still against this, because of the work generated, the fact it Cron daemon has a specific Linux admin meaning, and having a name like cron — |
Automatic merge from submit-queue Rename ScheduledJobs to CronJobs I went with @smarterclayton idea of registering named types in schema. This way we can support both the new (CronJobs) and old (ScheduledJobs) resource name. Fixes #32150. fyi @erictune @caesarxuchao @janetkuo Not ready yet, but getting close there... **Release note**: ```release-note Rename ScheduledJobs to CronJobs. ```
As proposed by @erictune in #32115 (comment) ScheduledJob should be renamed to CronJob before moving this to beta.
The text was updated successfully, but these errors were encountered: