ScheduledJob api leftovers

This commit is contained in:
Maciej Szulik 2016-05-12 12:32:41 +02:00
parent 9c9bdb2494
commit 70e5456118
3 changed files with 15 additions and 7 deletions

View File

@ -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 }

View File

@ -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 }

View File

@ -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.