-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Added JobTemplate, a preliminary step for ScheduledJob and Workflow #21675
Conversation
@soltysh thanks. |
// JobTemplate describes a template for creating copies of a predefined pod. | ||
type JobTemplate struct { | ||
unversioned.TypeMeta `json:",inline"` | ||
v1.ObjectMeta `json:"metadata,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the same hyperlinks as PodTemplate comments
I suggest we wait for after 1.2 to merge this. |
So, this PR seems fine. I'm guessing the next PR is going to add "ScheduledJob". I am not sure where that goes. I think what needs to happen is that we need to create a By the way, it makes it kind of an incentive to get Workflow in at the same time as ScheduledJob, to avoid a |
Yes, that was the point.
Why can't we just use Other silly question, instead of messing |
cfa680e
to
7f6e888
Compare
@erictune added the urls you've asked for. |
@bgrant0607 @lavalamp we need to decide what to do in this case:
Considerations:
|
@erictune If there's nothing here that needs to be decided for 1.2, I'll have to look at this later. |
no 1.2 issues. |
Ping me again after 1.2 and I'll have lots to say. :) On Thu, Feb 25, 2016 at 9:06 AM, Eric Tune notifications@github.com wrote:
|
@soltysh ping :) |
I'm paying attention to PRs again. I will come back to this one once I triage my entire queue. |
Thanks |
@lavalamp yeah, that will be needed for the scheduled jobs I'm hoping to start next week. |
type JobTemplateSpec struct { | ||
// Standard object's metadata. | ||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | ||
v1.ObjectMeta `json:"metadata,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not need this except in top-level objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is similar to PodTemplateSpec
to allow us define created Job's metadata fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update the comment to give my reasoning.
@lavalamp removed from v1beta1 and updated the comments, ptal |
Sorry, forgot to run |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit a31ca0d. |
Automatic merge from submit-queue |
🎉 |
👍 |
Automatic merge from submit-queue Scheduledjob api @erictune ScheduledJob api types, based on #21675, so only last two commits counts. @sdminonne fyi ```release-note Introducing ScheduledJobs as described in [the proposal](https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/scheduledjob.md) as part of `batch/v2alpha1` version (experimental feature). ``` [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel)]()
UPSTREAM: 71074: fix device path being empty Origin-commit: f129e1f66f6da7a33f66d8382ab6b3341eccdf48
@sdminonne as promised, sorry it took this long 😊
@erictune fyi though it does not have to be in for 1.2
This change is