mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Generated types for ScheduledJob
This commit is contained in:
		@@ -35,6 +35,10 @@ func init() {
 | 
				
			|||||||
		DeepCopy_batch_JobStatus,
 | 
							DeepCopy_batch_JobStatus,
 | 
				
			||||||
		DeepCopy_batch_JobTemplate,
 | 
							DeepCopy_batch_JobTemplate,
 | 
				
			||||||
		DeepCopy_batch_JobTemplateSpec,
 | 
							DeepCopy_batch_JobTemplateSpec,
 | 
				
			||||||
 | 
							DeepCopy_batch_ScheduledJob,
 | 
				
			||||||
 | 
							DeepCopy_batch_ScheduledJobList,
 | 
				
			||||||
 | 
							DeepCopy_batch_ScheduledJobSpec,
 | 
				
			||||||
 | 
							DeepCopy_batch_ScheduledJobStatus,
 | 
				
			||||||
	); err != nil {
 | 
						); err != nil {
 | 
				
			||||||
		// if one of the deep copy functions is malformed, detect it immediately.
 | 
							// if one of the deep copy functions is malformed, detect it immediately.
 | 
				
			||||||
		panic(err)
 | 
							panic(err)
 | 
				
			||||||
@@ -194,3 +198,81 @@ func DeepCopy_batch_JobTemplateSpec(in JobTemplateSpec, out *JobTemplateSpec, c
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_batch_ScheduledJob(in ScheduledJob, out *ScheduledJob, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := DeepCopy_batch_ScheduledJobSpec(in.Spec, &out.Spec, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := DeepCopy_batch_ScheduledJobStatus(in.Status, &out.Status, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_batch_ScheduledJobList(in ScheduledJobList, out *ScheduledJobList, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := unversioned.DeepCopy_unversioned_ListMeta(in.ListMeta, &out.ListMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.Items != nil {
 | 
				
			||||||
 | 
							in, out := in.Items, &out.Items
 | 
				
			||||||
 | 
							*out = make([]ScheduledJob, len(in))
 | 
				
			||||||
 | 
							for i := range in {
 | 
				
			||||||
 | 
								if err := DeepCopy_batch_ScheduledJob(in[i], &(*out)[i], c); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Items = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_batch_ScheduledJobSpec(in ScheduledJobSpec, out *ScheduledJobSpec, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						out.Schedule = in.Schedule
 | 
				
			||||||
 | 
						if in.StartingDeadlineSeconds != nil {
 | 
				
			||||||
 | 
							in, out := in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds
 | 
				
			||||||
 | 
							*out = new(int64)
 | 
				
			||||||
 | 
							**out = *in
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.StartingDeadlineSeconds = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						out.ConcurrencyPolicy = in.ConcurrencyPolicy
 | 
				
			||||||
 | 
						out.Suspend = in.Suspend
 | 
				
			||||||
 | 
						if err := DeepCopy_batch_JobTemplateSpec(in.JobTemplate, &out.JobTemplate, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_batch_ScheduledJobStatus(in ScheduledJobStatus, out *ScheduledJobStatus, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if in.Active != nil {
 | 
				
			||||||
 | 
							in, out := in.Active, &out.Active
 | 
				
			||||||
 | 
							*out = make([]api.ObjectReference, len(in))
 | 
				
			||||||
 | 
							for i := range in {
 | 
				
			||||||
 | 
								if err := api.DeepCopy_api_ObjectReference(in[i], &(*out)[i], c); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Active = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.LastScheduleTime != nil {
 | 
				
			||||||
 | 
							in, out := in.LastScheduleTime, &out.LastScheduleTime
 | 
				
			||||||
 | 
							*out = new(unversioned.Time)
 | 
				
			||||||
 | 
							if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.LastScheduleTime = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -48,6 +48,8 @@ func init() {
 | 
				
			|||||||
		Convert_unversioned_LabelSelector_To_v2alpha1_LabelSelector,
 | 
							Convert_unversioned_LabelSelector_To_v2alpha1_LabelSelector,
 | 
				
			||||||
		Convert_v2alpha1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement,
 | 
							Convert_v2alpha1_LabelSelectorRequirement_To_unversioned_LabelSelectorRequirement,
 | 
				
			||||||
		Convert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement,
 | 
							Convert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement,
 | 
				
			||||||
 | 
							Convert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus,
 | 
				
			||||||
 | 
							Convert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus,
 | 
				
			||||||
	); err != nil {
 | 
						); err != nil {
 | 
				
			||||||
		// if one of the conversion functions is malformed, detect it immediately.
 | 
							// if one of the conversion functions is malformed, detect it immediately.
 | 
				
			||||||
		panic(err)
 | 
							panic(err)
 | 
				
			||||||
@@ -508,3 +510,61 @@ func autoConvert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorR
 | 
				
			|||||||
func Convert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error {
 | 
					func Convert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement(in *unversioned.LabelSelectorRequirement, out *LabelSelectorRequirement, s conversion.Scope) error {
 | 
				
			||||||
	return autoConvert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement(in, out, s)
 | 
						return autoConvert_unversioned_LabelSelectorRequirement_To_v2alpha1_LabelSelectorRequirement(in, out, s)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func autoConvert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus(in *ScheduledJobStatus, out *batch.ScheduledJobStatus, s conversion.Scope) error {
 | 
				
			||||||
 | 
						if in.Active != nil {
 | 
				
			||||||
 | 
							in, out := &in.Active, &out.Active
 | 
				
			||||||
 | 
							*out = make([]api.ObjectReference, len(*in))
 | 
				
			||||||
 | 
							for i := range *in {
 | 
				
			||||||
 | 
								// TODO: Inefficient conversion - can we improve it?
 | 
				
			||||||
 | 
								if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Active = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.LastScheduleTime != nil {
 | 
				
			||||||
 | 
							in, out := &in.LastScheduleTime, &out.LastScheduleTime
 | 
				
			||||||
 | 
							*out = new(unversioned.Time)
 | 
				
			||||||
 | 
							if err := api.Convert_unversioned_Time_To_unversioned_Time(*in, *out, s); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.LastScheduleTime = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func Convert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus(in *ScheduledJobStatus, out *batch.ScheduledJobStatus, s conversion.Scope) error {
 | 
				
			||||||
 | 
						return autoConvert_v2alpha1_ScheduledJobStatus_To_batch_ScheduledJobStatus(in, out, s)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func autoConvert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus(in *batch.ScheduledJobStatus, out *ScheduledJobStatus, s conversion.Scope) error {
 | 
				
			||||||
 | 
						if in.Active != nil {
 | 
				
			||||||
 | 
							in, out := &in.Active, &out.Active
 | 
				
			||||||
 | 
							*out = make([]v1.ObjectReference, len(*in))
 | 
				
			||||||
 | 
							for i := range *in {
 | 
				
			||||||
 | 
								// TODO: Inefficient conversion - can we improve it?
 | 
				
			||||||
 | 
								if err := s.Convert(&(*in)[i], &(*out)[i], 0); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Active = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.LastScheduleTime != nil {
 | 
				
			||||||
 | 
							in, out := &in.LastScheduleTime, &out.LastScheduleTime
 | 
				
			||||||
 | 
							*out = new(unversioned.Time)
 | 
				
			||||||
 | 
							if err := api.Convert_unversioned_Time_To_unversioned_Time(*in, *out, s); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.LastScheduleTime = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func Convert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus(in *batch.ScheduledJobStatus, out *ScheduledJobStatus, s conversion.Scope) error {
 | 
				
			||||||
 | 
						return autoConvert_batch_ScheduledJobStatus_To_v2alpha1_ScheduledJobStatus(in, out, s)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -38,6 +38,10 @@ func init() {
 | 
				
			|||||||
		DeepCopy_v2alpha1_JobTemplateSpec,
 | 
							DeepCopy_v2alpha1_JobTemplateSpec,
 | 
				
			||||||
		DeepCopy_v2alpha1_LabelSelector,
 | 
							DeepCopy_v2alpha1_LabelSelector,
 | 
				
			||||||
		DeepCopy_v2alpha1_LabelSelectorRequirement,
 | 
							DeepCopy_v2alpha1_LabelSelectorRequirement,
 | 
				
			||||||
 | 
							DeepCopy_v2alpha1_ScheduledJob,
 | 
				
			||||||
 | 
							DeepCopy_v2alpha1_ScheduledJobList,
 | 
				
			||||||
 | 
							DeepCopy_v2alpha1_ScheduledJobSpec,
 | 
				
			||||||
 | 
							DeepCopy_v2alpha1_ScheduledJobStatus,
 | 
				
			||||||
	); err != nil {
 | 
						); err != nil {
 | 
				
			||||||
		// if one of the deep copy functions is malformed, detect it immediately.
 | 
							// if one of the deep copy functions is malformed, detect it immediately.
 | 
				
			||||||
		panic(err)
 | 
							panic(err)
 | 
				
			||||||
@@ -234,3 +238,87 @@ func DeepCopy_v2alpha1_LabelSelectorRequirement(in LabelSelectorRequirement, out
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_v2alpha1_ScheduledJob(in ScheduledJob, out *ScheduledJob, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := DeepCopy_v2alpha1_ScheduledJobSpec(in.Spec, &out.Spec, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := DeepCopy_v2alpha1_ScheduledJobStatus(in.Status, &out.Status, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_v2alpha1_ScheduledJobList(in ScheduledJobList, out *ScheduledJobList, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := unversioned.DeepCopy_unversioned_ListMeta(in.ListMeta, &out.ListMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.Items != nil {
 | 
				
			||||||
 | 
							in, out := in.Items, &out.Items
 | 
				
			||||||
 | 
							*out = make([]ScheduledJob, len(in))
 | 
				
			||||||
 | 
							for i := range in {
 | 
				
			||||||
 | 
								if err := DeepCopy_v2alpha1_ScheduledJob(in[i], &(*out)[i], c); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Items = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_v2alpha1_ScheduledJobSpec(in ScheduledJobSpec, out *ScheduledJobSpec, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						out.Schedule = in.Schedule
 | 
				
			||||||
 | 
						if in.StartingDeadlineSeconds != nil {
 | 
				
			||||||
 | 
							in, out := in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds
 | 
				
			||||||
 | 
							*out = new(int64)
 | 
				
			||||||
 | 
							**out = *in
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.StartingDeadlineSeconds = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						out.ConcurrencyPolicy = in.ConcurrencyPolicy
 | 
				
			||||||
 | 
						out.Suspend = in.Suspend
 | 
				
			||||||
 | 
						if in.JobTemplate != nil {
 | 
				
			||||||
 | 
							in, out := in.JobTemplate, &out.JobTemplate
 | 
				
			||||||
 | 
							*out = new(JobTemplateSpec)
 | 
				
			||||||
 | 
							if err := DeepCopy_v2alpha1_JobTemplateSpec(*in, *out, c); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.JobTemplate = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_v2alpha1_ScheduledJobStatus(in ScheduledJobStatus, out *ScheduledJobStatus, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if in.Active != nil {
 | 
				
			||||||
 | 
							in, out := in.Active, &out.Active
 | 
				
			||||||
 | 
							*out = make([]v1.ObjectReference, len(in))
 | 
				
			||||||
 | 
							for i := range in {
 | 
				
			||||||
 | 
								if err := v1.DeepCopy_v1_ObjectReference(in[i], &(*out)[i], c); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Active = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.LastScheduleTime != nil {
 | 
				
			||||||
 | 
							in, out := in.LastScheduleTime, &out.LastScheduleTime
 | 
				
			||||||
 | 
							*out = new(unversioned.Time)
 | 
				
			||||||
 | 
							if err := unversioned.DeepCopy_unversioned_Time(*in, *out, c); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.LastScheduleTime = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,6 +34,10 @@ limitations under the License.
 | 
				
			|||||||
		JobTemplateSpec
 | 
							JobTemplateSpec
 | 
				
			||||||
		LabelSelector
 | 
							LabelSelector
 | 
				
			||||||
		LabelSelectorRequirement
 | 
							LabelSelectorRequirement
 | 
				
			||||||
 | 
							ScheduledJob
 | 
				
			||||||
 | 
							ScheduledJobList
 | 
				
			||||||
 | 
							ScheduledJobSpec
 | 
				
			||||||
 | 
							ScheduledJobStatus
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
package v2alpha1
 | 
					package v2alpha1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -87,6 +91,22 @@ func (m *LabelSelectorRequirement) Reset()         { *m = LabelSelectorRequireme
 | 
				
			|||||||
func (m *LabelSelectorRequirement) String() string { return proto.CompactTextString(m) }
 | 
					func (m *LabelSelectorRequirement) String() string { return proto.CompactTextString(m) }
 | 
				
			||||||
func (*LabelSelectorRequirement) ProtoMessage()    {}
 | 
					func (*LabelSelectorRequirement) ProtoMessage()    {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJob) Reset()         { *m = ScheduledJob{} }
 | 
				
			||||||
 | 
					func (m *ScheduledJob) String() string { return proto.CompactTextString(m) }
 | 
				
			||||||
 | 
					func (*ScheduledJob) ProtoMessage()    {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobList) Reset()         { *m = ScheduledJobList{} }
 | 
				
			||||||
 | 
					func (m *ScheduledJobList) String() string { return proto.CompactTextString(m) }
 | 
				
			||||||
 | 
					func (*ScheduledJobList) ProtoMessage()    {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobSpec) Reset()         { *m = ScheduledJobSpec{} }
 | 
				
			||||||
 | 
					func (m *ScheduledJobSpec) String() string { return proto.CompactTextString(m) }
 | 
				
			||||||
 | 
					func (*ScheduledJobSpec) ProtoMessage()    {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobStatus) Reset()         { *m = ScheduledJobStatus{} }
 | 
				
			||||||
 | 
					func (m *ScheduledJobStatus) String() string { return proto.CompactTextString(m) }
 | 
				
			||||||
 | 
					func (*ScheduledJobStatus) ProtoMessage()    {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	proto.RegisterType((*Job)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.Job")
 | 
						proto.RegisterType((*Job)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.Job")
 | 
				
			||||||
	proto.RegisterType((*JobCondition)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobCondition")
 | 
						proto.RegisterType((*JobCondition)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobCondition")
 | 
				
			||||||
@@ -97,6 +117,10 @@ func init() {
 | 
				
			|||||||
	proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobTemplateSpec")
 | 
						proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.JobTemplateSpec")
 | 
				
			||||||
	proto.RegisterType((*LabelSelector)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.LabelSelector")
 | 
						proto.RegisterType((*LabelSelector)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.LabelSelector")
 | 
				
			||||||
	proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.LabelSelectorRequirement")
 | 
						proto.RegisterType((*LabelSelectorRequirement)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.LabelSelectorRequirement")
 | 
				
			||||||
 | 
						proto.RegisterType((*ScheduledJob)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.ScheduledJob")
 | 
				
			||||||
 | 
						proto.RegisterType((*ScheduledJobList)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.ScheduledJobList")
 | 
				
			||||||
 | 
						proto.RegisterType((*ScheduledJobSpec)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.ScheduledJobSpec")
 | 
				
			||||||
 | 
						proto.RegisterType((*ScheduledJobStatus)(nil), "k8s.io.kubernetes.pkg.apis.batch.v2alpha1.ScheduledJobStatus")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
func (m *Job) Marshal() (data []byte, err error) {
 | 
					func (m *Job) Marshal() (data []byte, err error) {
 | 
				
			||||||
	size := m.Size()
 | 
						size := m.Size()
 | 
				
			||||||
@@ -504,6 +528,175 @@ func (m *LabelSelectorRequirement) MarshalTo(data []byte) (int, error) {
 | 
				
			|||||||
	return i, nil
 | 
						return i, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJob) Marshal() (data []byte, err error) {
 | 
				
			||||||
 | 
						size := m.Size()
 | 
				
			||||||
 | 
						data = make([]byte, size)
 | 
				
			||||||
 | 
						n, err := m.MarshalTo(data)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return data[:n], nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJob) MarshalTo(data []byte) (int, error) {
 | 
				
			||||||
 | 
						var i int
 | 
				
			||||||
 | 
						_ = i
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						data[i] = 0xa
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
 | 
				
			||||||
 | 
						n15, err := m.ObjectMeta.MarshalTo(data[i:])
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return 0, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i += n15
 | 
				
			||||||
 | 
						data[i] = 0x12
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
 | 
				
			||||||
 | 
						n16, err := m.Spec.MarshalTo(data[i:])
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return 0, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i += n16
 | 
				
			||||||
 | 
						data[i] = 0x1a
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
 | 
				
			||||||
 | 
						n17, err := m.Status.MarshalTo(data[i:])
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return 0, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i += n17
 | 
				
			||||||
 | 
						return i, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobList) Marshal() (data []byte, err error) {
 | 
				
			||||||
 | 
						size := m.Size()
 | 
				
			||||||
 | 
						data = make([]byte, size)
 | 
				
			||||||
 | 
						n, err := m.MarshalTo(data)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return data[:n], nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobList) MarshalTo(data []byte) (int, error) {
 | 
				
			||||||
 | 
						var i int
 | 
				
			||||||
 | 
						_ = i
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						data[i] = 0xa
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size()))
 | 
				
			||||||
 | 
						n18, err := m.ListMeta.MarshalTo(data[i:])
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return 0, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i += n18
 | 
				
			||||||
 | 
						if len(m.Items) > 0 {
 | 
				
			||||||
 | 
							for _, msg := range m.Items {
 | 
				
			||||||
 | 
								data[i] = 0x12
 | 
				
			||||||
 | 
								i++
 | 
				
			||||||
 | 
								i = encodeVarintGenerated(data, i, uint64(msg.Size()))
 | 
				
			||||||
 | 
								n, err := msg.MarshalTo(data[i:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return 0, err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								i += n
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return i, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobSpec) Marshal() (data []byte, err error) {
 | 
				
			||||||
 | 
						size := m.Size()
 | 
				
			||||||
 | 
						data = make([]byte, size)
 | 
				
			||||||
 | 
						n, err := m.MarshalTo(data)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return data[:n], nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobSpec) MarshalTo(data []byte) (int, error) {
 | 
				
			||||||
 | 
						var i int
 | 
				
			||||||
 | 
						_ = i
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						data[i] = 0xa
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(len(m.Schedule)))
 | 
				
			||||||
 | 
						i += copy(data[i:], m.Schedule)
 | 
				
			||||||
 | 
						if m.StartingDeadlineSeconds != nil {
 | 
				
			||||||
 | 
							data[i] = 0x10
 | 
				
			||||||
 | 
							i++
 | 
				
			||||||
 | 
							i = encodeVarintGenerated(data, i, uint64(*m.StartingDeadlineSeconds))
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						data[i] = 0x1a
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(len(m.ConcurrencyPolicy)))
 | 
				
			||||||
 | 
						i += copy(data[i:], m.ConcurrencyPolicy)
 | 
				
			||||||
 | 
						data[i] = 0x20
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						if m.Suspend {
 | 
				
			||||||
 | 
							data[i] = 1
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							data[i] = 0
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						if m.JobTemplate != nil {
 | 
				
			||||||
 | 
							data[i] = 0x2a
 | 
				
			||||||
 | 
							i++
 | 
				
			||||||
 | 
							i = encodeVarintGenerated(data, i, uint64(m.JobTemplate.Size()))
 | 
				
			||||||
 | 
							n19, err := m.JobTemplate.MarshalTo(data[i:])
 | 
				
			||||||
 | 
							if err != nil {
 | 
				
			||||||
 | 
								return 0, err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							i += n19
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return i, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobStatus) Marshal() (data []byte, err error) {
 | 
				
			||||||
 | 
						size := m.Size()
 | 
				
			||||||
 | 
						data = make([]byte, size)
 | 
				
			||||||
 | 
						n, err := m.MarshalTo(data)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return data[:n], nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobStatus) MarshalTo(data []byte) (int, error) {
 | 
				
			||||||
 | 
						var i int
 | 
				
			||||||
 | 
						_ = i
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						if len(m.Active) > 0 {
 | 
				
			||||||
 | 
							for _, msg := range m.Active {
 | 
				
			||||||
 | 
								data[i] = 0xa
 | 
				
			||||||
 | 
								i++
 | 
				
			||||||
 | 
								i = encodeVarintGenerated(data, i, uint64(msg.Size()))
 | 
				
			||||||
 | 
								n, err := msg.MarshalTo(data[i:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return 0, err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								i += n
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if m.LastScheduleTime != nil {
 | 
				
			||||||
 | 
							data[i] = 0x22
 | 
				
			||||||
 | 
							i++
 | 
				
			||||||
 | 
							i = encodeVarintGenerated(data, i, uint64(m.LastScheduleTime.Size()))
 | 
				
			||||||
 | 
							n20, err := m.LastScheduleTime.MarshalTo(data[i:])
 | 
				
			||||||
 | 
							if err != nil {
 | 
				
			||||||
 | 
								return 0, err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							i += n20
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return i, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func encodeFixed64Generated(data []byte, offset int, v uint64) int {
 | 
					func encodeFixed64Generated(data []byte, offset int, v uint64) int {
 | 
				
			||||||
	data[offset] = uint8(v)
 | 
						data[offset] = uint8(v)
 | 
				
			||||||
	data[offset+1] = uint8(v >> 8)
 | 
						data[offset+1] = uint8(v >> 8)
 | 
				
			||||||
@@ -678,6 +871,66 @@ func (m *LabelSelectorRequirement) Size() (n int) {
 | 
				
			|||||||
	return n
 | 
						return n
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJob) Size() (n int) {
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						l = m.ObjectMeta.Size()
 | 
				
			||||||
 | 
						n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
						l = m.Spec.Size()
 | 
				
			||||||
 | 
						n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
						l = m.Status.Size()
 | 
				
			||||||
 | 
						n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
						return n
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobList) Size() (n int) {
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						l = m.ListMeta.Size()
 | 
				
			||||||
 | 
						n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
						if len(m.Items) > 0 {
 | 
				
			||||||
 | 
							for _, e := range m.Items {
 | 
				
			||||||
 | 
								l = e.Size()
 | 
				
			||||||
 | 
								n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return n
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobSpec) Size() (n int) {
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						l = len(m.Schedule)
 | 
				
			||||||
 | 
						n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
						if m.StartingDeadlineSeconds != nil {
 | 
				
			||||||
 | 
							n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds))
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						l = len(m.ConcurrencyPolicy)
 | 
				
			||||||
 | 
						n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
						n += 2
 | 
				
			||||||
 | 
						if m.JobTemplate != nil {
 | 
				
			||||||
 | 
							l = m.JobTemplate.Size()
 | 
				
			||||||
 | 
							n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return n
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *ScheduledJobStatus) Size() (n int) {
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						if len(m.Active) > 0 {
 | 
				
			||||||
 | 
							for _, e := range m.Active {
 | 
				
			||||||
 | 
								l = e.Size()
 | 
				
			||||||
 | 
								n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if m.LastScheduleTime != nil {
 | 
				
			||||||
 | 
							l = m.LastScheduleTime.Size()
 | 
				
			||||||
 | 
							n += 1 + l + sovGenerated(uint64(l))
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return n
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func sovGenerated(x uint64) (n int) {
 | 
					func sovGenerated(x uint64) (n int) {
 | 
				
			||||||
	for {
 | 
						for {
 | 
				
			||||||
		n++
 | 
							n++
 | 
				
			||||||
@@ -2115,6 +2368,552 @@ func (m *LabelSelectorRequirement) Unmarshal(data []byte) error {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					func (m *ScheduledJob) Unmarshal(data []byte) error {
 | 
				
			||||||
 | 
						l := len(data)
 | 
				
			||||||
 | 
						iNdEx := 0
 | 
				
			||||||
 | 
						for iNdEx < l {
 | 
				
			||||||
 | 
							preIndex := iNdEx
 | 
				
			||||||
 | 
							var wire uint64
 | 
				
			||||||
 | 
							for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
								if shift >= 64 {
 | 
				
			||||||
 | 
									return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if iNdEx >= l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								b := data[iNdEx]
 | 
				
			||||||
 | 
								iNdEx++
 | 
				
			||||||
 | 
								wire |= (uint64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
								if b < 0x80 {
 | 
				
			||||||
 | 
									break
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							fieldNum := int32(wire >> 3)
 | 
				
			||||||
 | 
							wireType := int(wire & 0x7)
 | 
				
			||||||
 | 
							if wireType == 4 {
 | 
				
			||||||
 | 
								return fmt.Errorf("proto: ScheduledJob: wiretype end group for non-group")
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							if fieldNum <= 0 {
 | 
				
			||||||
 | 
								return fmt.Errorf("proto: ScheduledJob: illegal tag %d (wire type %d)", fieldNum, wire)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							switch fieldNum {
 | 
				
			||||||
 | 
							case 1:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var msglen int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									msglen |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if msglen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + msglen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							case 2:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var msglen int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									msglen |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if msglen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + msglen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							case 3:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var msglen int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									msglen |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if msglen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + msglen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								iNdEx = preIndex
 | 
				
			||||||
 | 
								skippy, err := skipGenerated(data[iNdEx:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if skippy < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if (iNdEx + skippy) > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx += skippy
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if iNdEx > l {
 | 
				
			||||||
 | 
							return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func (m *ScheduledJobList) Unmarshal(data []byte) error {
 | 
				
			||||||
 | 
						l := len(data)
 | 
				
			||||||
 | 
						iNdEx := 0
 | 
				
			||||||
 | 
						for iNdEx < l {
 | 
				
			||||||
 | 
							preIndex := iNdEx
 | 
				
			||||||
 | 
							var wire uint64
 | 
				
			||||||
 | 
							for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
								if shift >= 64 {
 | 
				
			||||||
 | 
									return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if iNdEx >= l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								b := data[iNdEx]
 | 
				
			||||||
 | 
								iNdEx++
 | 
				
			||||||
 | 
								wire |= (uint64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
								if b < 0x80 {
 | 
				
			||||||
 | 
									break
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							fieldNum := int32(wire >> 3)
 | 
				
			||||||
 | 
							wireType := int(wire & 0x7)
 | 
				
			||||||
 | 
							if wireType == 4 {
 | 
				
			||||||
 | 
								return fmt.Errorf("proto: ScheduledJobList: wiretype end group for non-group")
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							if fieldNum <= 0 {
 | 
				
			||||||
 | 
								return fmt.Errorf("proto: ScheduledJobList: illegal tag %d (wire type %d)", fieldNum, wire)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							switch fieldNum {
 | 
				
			||||||
 | 
							case 1:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var msglen int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									msglen |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if msglen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + msglen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if err := m.ListMeta.Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							case 2:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var msglen int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									msglen |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if msglen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + msglen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								m.Items = append(m.Items, ScheduledJob{})
 | 
				
			||||||
 | 
								if err := m.Items[len(m.Items)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								iNdEx = preIndex
 | 
				
			||||||
 | 
								skippy, err := skipGenerated(data[iNdEx:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if skippy < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if (iNdEx + skippy) > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx += skippy
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if iNdEx > l {
 | 
				
			||||||
 | 
							return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func (m *ScheduledJobSpec) Unmarshal(data []byte) error {
 | 
				
			||||||
 | 
						l := len(data)
 | 
				
			||||||
 | 
						iNdEx := 0
 | 
				
			||||||
 | 
						for iNdEx < l {
 | 
				
			||||||
 | 
							preIndex := iNdEx
 | 
				
			||||||
 | 
							var wire uint64
 | 
				
			||||||
 | 
							for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
								if shift >= 64 {
 | 
				
			||||||
 | 
									return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if iNdEx >= l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								b := data[iNdEx]
 | 
				
			||||||
 | 
								iNdEx++
 | 
				
			||||||
 | 
								wire |= (uint64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
								if b < 0x80 {
 | 
				
			||||||
 | 
									break
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							fieldNum := int32(wire >> 3)
 | 
				
			||||||
 | 
							wireType := int(wire & 0x7)
 | 
				
			||||||
 | 
							if wireType == 4 {
 | 
				
			||||||
 | 
								return fmt.Errorf("proto: ScheduledJobSpec: wiretype end group for non-group")
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							if fieldNum <= 0 {
 | 
				
			||||||
 | 
								return fmt.Errorf("proto: ScheduledJobSpec: illegal tag %d (wire type %d)", fieldNum, wire)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							switch fieldNum {
 | 
				
			||||||
 | 
							case 1:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var stringLen uint64
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									stringLen |= (uint64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								intStringLen := int(stringLen)
 | 
				
			||||||
 | 
								if intStringLen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + intStringLen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								m.Schedule = string(data[iNdEx:postIndex])
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							case 2:
 | 
				
			||||||
 | 
								if wireType != 0 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var v int64
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									v |= (int64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								m.StartingDeadlineSeconds = &v
 | 
				
			||||||
 | 
							case 3:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var stringLen uint64
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									stringLen |= (uint64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								intStringLen := int(stringLen)
 | 
				
			||||||
 | 
								if intStringLen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + intStringLen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								m.ConcurrencyPolicy = ConcurrencyPolicy(data[iNdEx:postIndex])
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							case 4:
 | 
				
			||||||
 | 
								if wireType != 0 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var v int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									v |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								m.Suspend = bool(v != 0)
 | 
				
			||||||
 | 
							case 5:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var msglen int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									msglen |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if msglen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + msglen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if m.JobTemplate == nil {
 | 
				
			||||||
 | 
									m.JobTemplate = &JobTemplateSpec{}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if err := m.JobTemplate.Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								iNdEx = preIndex
 | 
				
			||||||
 | 
								skippy, err := skipGenerated(data[iNdEx:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if skippy < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if (iNdEx + skippy) > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx += skippy
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if iNdEx > l {
 | 
				
			||||||
 | 
							return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func (m *ScheduledJobStatus) Unmarshal(data []byte) error {
 | 
				
			||||||
 | 
						l := len(data)
 | 
				
			||||||
 | 
						iNdEx := 0
 | 
				
			||||||
 | 
						for iNdEx < l {
 | 
				
			||||||
 | 
							preIndex := iNdEx
 | 
				
			||||||
 | 
							var wire uint64
 | 
				
			||||||
 | 
							for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
								if shift >= 64 {
 | 
				
			||||||
 | 
									return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if iNdEx >= l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								b := data[iNdEx]
 | 
				
			||||||
 | 
								iNdEx++
 | 
				
			||||||
 | 
								wire |= (uint64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
								if b < 0x80 {
 | 
				
			||||||
 | 
									break
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							fieldNum := int32(wire >> 3)
 | 
				
			||||||
 | 
							wireType := int(wire & 0x7)
 | 
				
			||||||
 | 
							if wireType == 4 {
 | 
				
			||||||
 | 
								return fmt.Errorf("proto: ScheduledJobStatus: wiretype end group for non-group")
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							if fieldNum <= 0 {
 | 
				
			||||||
 | 
								return fmt.Errorf("proto: ScheduledJobStatus: illegal tag %d (wire type %d)", fieldNum, wire)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							switch fieldNum {
 | 
				
			||||||
 | 
							case 1:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field Active", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var msglen int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									msglen |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if msglen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + msglen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								m.Active = append(m.Active, k8s_io_kubernetes_pkg_api_v1.ObjectReference{})
 | 
				
			||||||
 | 
								if err := m.Active[len(m.Active)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							case 4:
 | 
				
			||||||
 | 
								if wireType != 2 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var msglen int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									msglen |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if msglen < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								postIndex := iNdEx + msglen
 | 
				
			||||||
 | 
								if postIndex > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if m.LastScheduleTime == nil {
 | 
				
			||||||
 | 
									m.LastScheduleTime = &k8s_io_kubernetes_pkg_api_unversioned.Time{}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if err := m.LastScheduleTime.Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								iNdEx = preIndex
 | 
				
			||||||
 | 
								skippy, err := skipGenerated(data[iNdEx:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if skippy < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if (iNdEx + skippy) > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx += skippy
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if iNdEx > l {
 | 
				
			||||||
 | 
							return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
func skipGenerated(data []byte) (n int, err error) {
 | 
					func skipGenerated(data []byte) (n int, err error) {
 | 
				
			||||||
	l := len(data)
 | 
						l := len(data)
 | 
				
			||||||
	iNdEx := 0
 | 
						iNdEx := 0
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,6 +24,7 @@ package k8s.io.kubernetes.pkg.apis.batch.v2alpha1;
 | 
				
			|||||||
import "k8s.io/kubernetes/pkg/api/resource/generated.proto";
 | 
					import "k8s.io/kubernetes/pkg/api/resource/generated.proto";
 | 
				
			||||||
import "k8s.io/kubernetes/pkg/api/unversioned/generated.proto";
 | 
					import "k8s.io/kubernetes/pkg/api/unversioned/generated.proto";
 | 
				
			||||||
import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
 | 
					import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
 | 
				
			||||||
 | 
					import "k8s.io/kubernetes/pkg/runtime/generated.proto";
 | 
				
			||||||
import "k8s.io/kubernetes/pkg/util/intstr/generated.proto";
 | 
					import "k8s.io/kubernetes/pkg/util/intstr/generated.proto";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Package-wide variables from generator "generated".
 | 
					// Package-wide variables from generator "generated".
 | 
				
			||||||
@@ -197,3 +198,58 @@ message LabelSelectorRequirement {
 | 
				
			|||||||
  repeated string values = 3;
 | 
					  repeated string values = 3;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ScheduledJob represents the configuration of a single scheduled job.
 | 
				
			||||||
 | 
					message ScheduledJob {
 | 
				
			||||||
 | 
					  // Standard object's metadata.
 | 
				
			||||||
 | 
					  // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
 | 
				
			||||||
 | 
					  optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Spec is a structure defining the expected behavior of a job, including the schedule.
 | 
				
			||||||
 | 
					  // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
 | 
				
			||||||
 | 
					  optional ScheduledJobSpec spec = 2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Status is a structure describing current status of a job.
 | 
				
			||||||
 | 
					  // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
 | 
				
			||||||
 | 
					  optional ScheduledJobStatus status = 3;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ScheduledJobList is a collection of scheduled jobs.
 | 
				
			||||||
 | 
					message ScheduledJobList {
 | 
				
			||||||
 | 
					  // Standard list metadata
 | 
				
			||||||
 | 
					  // More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
 | 
				
			||||||
 | 
					  optional k8s.io.kubernetes.pkg.api.unversioned.ListMeta metadata = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Items is the list of ScheduledJob.
 | 
				
			||||||
 | 
					  repeated ScheduledJob items = 2;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ScheduledJobSpec describes how the job execution will look like and when it will actually run.
 | 
				
			||||||
 | 
					message ScheduledJobSpec {
 | 
				
			||||||
 | 
					  // Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
 | 
				
			||||||
 | 
					  optional string schedule = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Optional deadline in seconds for starting the job if it misses scheduled
 | 
				
			||||||
 | 
					  // time for any reason.  Missed jobs executions will be counted as failed ones.
 | 
				
			||||||
 | 
					  optional int64 startingDeadlineSeconds = 2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // ConcurrencyPolicy specifies how to treat concurrent executions of a Job.
 | 
				
			||||||
 | 
					  optional string concurrencyPolicy = 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Suspend flag tells the controller to suspend subsequent executions, it does
 | 
				
			||||||
 | 
					  // not apply to already started executions.  Defaults to false.
 | 
				
			||||||
 | 
					  optional bool suspend = 4;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // JobTemplate is the object that describes the job that will be created when
 | 
				
			||||||
 | 
					  // executing a ScheduledJob.
 | 
				
			||||||
 | 
					  optional JobTemplateSpec jobTemplate = 5;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// ScheduledJobStatus represents the current state of a Job.
 | 
				
			||||||
 | 
					message ScheduledJobStatus {
 | 
				
			||||||
 | 
					  // Active holds pointers to currently running jobs.
 | 
				
			||||||
 | 
					  repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference active = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // LastScheduleTime keeps information of when was the last time the job was successfully scheduled.
 | 
				
			||||||
 | 
					  optional k8s.io.kubernetes.pkg.api.unversioned.Time lastScheduleTime = 4;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -131,4 +131,48 @@ func (LabelSelectorRequirement) SwaggerDoc() map[string]string {
 | 
				
			|||||||
	return map_LabelSelectorRequirement
 | 
						return map_LabelSelectorRequirement
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var map_ScheduledJob = map[string]string{
 | 
				
			||||||
 | 
						"":         "ScheduledJob represents the configuration of a single scheduled job.",
 | 
				
			||||||
 | 
						"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
 | 
				
			||||||
 | 
						"spec":     "Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
 | 
				
			||||||
 | 
						"status":   "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (ScheduledJob) SwaggerDoc() map[string]string {
 | 
				
			||||||
 | 
						return map_ScheduledJob
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var map_ScheduledJobList = map[string]string{
 | 
				
			||||||
 | 
						"":         "ScheduledJobList is a collection of scheduled jobs.",
 | 
				
			||||||
 | 
						"metadata": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
 | 
				
			||||||
 | 
						"items":    "Items is the list of ScheduledJob.",
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (ScheduledJobList) SwaggerDoc() map[string]string {
 | 
				
			||||||
 | 
						return map_ScheduledJobList
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var map_ScheduledJobSpec = map[string]string{
 | 
				
			||||||
 | 
						"":                        "ScheduledJobSpec describes how the job execution will look like and when it will actually run.",
 | 
				
			||||||
 | 
						"schedule":                "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.",
 | 
				
			||||||
 | 
						"startingDeadlineSeconds": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason.  Missed jobs executions will be counted as failed ones.",
 | 
				
			||||||
 | 
						"concurrencyPolicy":       "ConcurrencyPolicy specifies how to treat concurrent executions of a Job.",
 | 
				
			||||||
 | 
						"suspend":                 "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions.  Defaults to false.",
 | 
				
			||||||
 | 
						"jobTemplate":             "JobTemplate is the object that describes the job that will be created when executing a ScheduledJob.",
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (ScheduledJobSpec) SwaggerDoc() map[string]string {
 | 
				
			||||||
 | 
						return map_ScheduledJobSpec
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var map_ScheduledJobStatus = map[string]string{
 | 
				
			||||||
 | 
						"":                 "ScheduledJobStatus represents the current state of a Job.",
 | 
				
			||||||
 | 
						"active":           "Active holds pointers to currently running jobs.",
 | 
				
			||||||
 | 
						"lastScheduleTime": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.",
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (ScheduledJobStatus) SwaggerDoc() map[string]string {
 | 
				
			||||||
 | 
						return map_ScheduledJobStatus
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// AUTO-GENERATED FUNCTIONS END HERE
 | 
					// AUTO-GENERATED FUNCTIONS END HERE
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user