mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
update batch apis
This commit is contained in:
parent
2da3e839b0
commit
cb9334ebb2
@ -49,7 +49,6 @@ func addKnownTypes(scheme *runtime.Scheme) error {
|
|||||||
scheme.AddKnownTypes(SchemeGroupVersion,
|
scheme.AddKnownTypes(SchemeGroupVersion,
|
||||||
&Job{},
|
&Job{},
|
||||||
&JobList{},
|
&JobList{},
|
||||||
&JobTemplate{},
|
|
||||||
&CronJob{},
|
&CronJob{},
|
||||||
&CronJobList{},
|
&CronJobList{},
|
||||||
)
|
)
|
||||||
|
@ -68,22 +68,6 @@ type JobList struct {
|
|||||||
Items []Job
|
Items []Job
|
||||||
}
|
}
|
||||||
|
|
||||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
|
||||||
|
|
||||||
// JobTemplate describes a template for creating copies of a predefined pod.
|
|
||||||
type JobTemplate struct {
|
|
||||||
metav1.TypeMeta
|
|
||||||
// Standard object's metadata.
|
|
||||||
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
||||||
// +optional
|
|
||||||
metav1.ObjectMeta
|
|
||||||
|
|
||||||
// Defines jobs that will be created from this template.
|
|
||||||
// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
||||||
// +optional
|
|
||||||
Template JobTemplateSpec
|
|
||||||
}
|
|
||||||
|
|
||||||
// JobTemplateSpec describes the data a Job should have when created from a template
|
// JobTemplateSpec describes the data a Job should have when created from a template
|
||||||
type JobTemplateSpec struct {
|
type JobTemplateSpec struct {
|
||||||
// Standard object's metadata of the jobs created from this template.
|
// Standard object's metadata of the jobs created from this template.
|
||||||
|
27
pkg/apis/batch/zz_generated.deepcopy.go
generated
27
pkg/apis/batch/zz_generated.deepcopy.go
generated
@ -347,33 +347,6 @@ func (in *JobStatus) DeepCopy() *JobStatus {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
||||||
func (in *JobTemplate) DeepCopyInto(out *JobTemplate) {
|
|
||||||
*out = *in
|
|
||||||
out.TypeMeta = in.TypeMeta
|
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
||||||
in.Template.DeepCopyInto(&out.Template)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplate.
|
|
||||||
func (in *JobTemplate) DeepCopy() *JobTemplate {
|
|
||||||
if in == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
out := new(JobTemplate)
|
|
||||||
in.DeepCopyInto(out)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
||||||
func (in *JobTemplate) DeepCopyObject() runtime.Object {
|
|
||||||
if c := in.DeepCopy(); c != nil {
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec) {
|
func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
Loading…
Reference in New Issue
Block a user