mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
ScheduledJob api leftovers
This commit is contained in:
parent
9c9bdb2494
commit
70e5456118
@ -49,10 +49,14 @@ func addKnownTypes(scheme *runtime.Scheme) {
|
|||||||
&Job{},
|
&Job{},
|
||||||
&JobList{},
|
&JobList{},
|
||||||
&JobTemplate{},
|
&JobTemplate{},
|
||||||
|
&ScheduledJob{},
|
||||||
|
&ScheduledJobList{},
|
||||||
&api.ListOptions{},
|
&api.ListOptions{},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (obj *Job) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
func (obj *Job) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
func (obj *JobList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
func (obj *JobList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
func (obj *JobTemplate) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
func (obj *JobTemplate) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
|
func (obj *ScheduledJob) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
|
func (obj *ScheduledJobList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
|
@ -41,11 +41,15 @@ func addKnownTypes(scheme *runtime.Scheme) {
|
|||||||
&Job{},
|
&Job{},
|
||||||
&JobList{},
|
&JobList{},
|
||||||
&JobTemplate{},
|
&JobTemplate{},
|
||||||
|
&ScheduledJob{},
|
||||||
|
&ScheduledJobList{},
|
||||||
&v1.ListOptions{},
|
&v1.ListOptions{},
|
||||||
)
|
)
|
||||||
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
versionedwatch.AddToGroupVersion(scheme, SchemeGroupVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (obj *JobTemplate) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
func (obj *Job) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
func (obj *Job) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
func (obj *JobList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
func (obj *JobList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
func (obj *JobTemplate) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
|
func (obj *ScheduledJob) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
|
func (obj *ScheduledJobList) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }
|
||||||
|
@ -215,7 +215,7 @@ type ScheduledJobSpec struct {
|
|||||||
|
|
||||||
// JobTemplate is the object that describes the job that will be created when
|
// JobTemplate is the object that describes the job that will be created when
|
||||||
// executing a ScheduledJob.
|
// executing a ScheduledJob.
|
||||||
JobTemplate *JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"`
|
JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConcurrencyPolicy describes how the job will be handled.
|
// ConcurrencyPolicy describes how the job will be handled.
|
||||||
|
Loading…
Reference in New Issue
Block a user