k8s.io/kubernetes@v1.29.3/pkg/apis/batch/zz_generated.deepcopy.go (about)

     1  //go:build !ignore_autogenerated
     2  // +build !ignore_autogenerated
     3  
     4  /*
     5  Copyright The Kubernetes Authors.
     6  
     7  Licensed under the Apache License, Version 2.0 (the "License");
     8  you may not use this file except in compliance with the License.
     9  You may obtain a copy of the License at
    10  
    11      http://www.apache.org/licenses/LICENSE-2.0
    12  
    13  Unless required by applicable law or agreed to in writing, software
    14  distributed under the License is distributed on an "AS IS" BASIS,
    15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16  See the License for the specific language governing permissions and
    17  limitations under the License.
    18  */
    19  
    20  // Code generated by deepcopy-gen. DO NOT EDIT.
    21  
    22  package batch
    23  
    24  import (
    25  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    26  	runtime "k8s.io/apimachinery/pkg/runtime"
    27  	types "k8s.io/apimachinery/pkg/types"
    28  	core "k8s.io/kubernetes/pkg/apis/core"
    29  )
    30  
    31  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    32  func (in *CronJob) DeepCopyInto(out *CronJob) {
    33  	*out = *in
    34  	out.TypeMeta = in.TypeMeta
    35  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
    36  	in.Spec.DeepCopyInto(&out.Spec)
    37  	in.Status.DeepCopyInto(&out.Status)
    38  	return
    39  }
    40  
    41  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJob.
    42  func (in *CronJob) DeepCopy() *CronJob {
    43  	if in == nil {
    44  		return nil
    45  	}
    46  	out := new(CronJob)
    47  	in.DeepCopyInto(out)
    48  	return out
    49  }
    50  
    51  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    52  func (in *CronJob) DeepCopyObject() runtime.Object {
    53  	if c := in.DeepCopy(); c != nil {
    54  		return c
    55  	}
    56  	return nil
    57  }
    58  
    59  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    60  func (in *CronJobList) DeepCopyInto(out *CronJobList) {
    61  	*out = *in
    62  	out.TypeMeta = in.TypeMeta
    63  	in.ListMeta.DeepCopyInto(&out.ListMeta)
    64  	if in.Items != nil {
    65  		in, out := &in.Items, &out.Items
    66  		*out = make([]CronJob, len(*in))
    67  		for i := range *in {
    68  			(*in)[i].DeepCopyInto(&(*out)[i])
    69  		}
    70  	}
    71  	return
    72  }
    73  
    74  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobList.
    75  func (in *CronJobList) DeepCopy() *CronJobList {
    76  	if in == nil {
    77  		return nil
    78  	}
    79  	out := new(CronJobList)
    80  	in.DeepCopyInto(out)
    81  	return out
    82  }
    83  
    84  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
    85  func (in *CronJobList) DeepCopyObject() runtime.Object {
    86  	if c := in.DeepCopy(); c != nil {
    87  		return c
    88  	}
    89  	return nil
    90  }
    91  
    92  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    93  func (in *CronJobSpec) DeepCopyInto(out *CronJobSpec) {
    94  	*out = *in
    95  	if in.TimeZone != nil {
    96  		in, out := &in.TimeZone, &out.TimeZone
    97  		*out = new(string)
    98  		**out = **in
    99  	}
   100  	if in.StartingDeadlineSeconds != nil {
   101  		in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds
   102  		*out = new(int64)
   103  		**out = **in
   104  	}
   105  	if in.Suspend != nil {
   106  		in, out := &in.Suspend, &out.Suspend
   107  		*out = new(bool)
   108  		**out = **in
   109  	}
   110  	in.JobTemplate.DeepCopyInto(&out.JobTemplate)
   111  	if in.SuccessfulJobsHistoryLimit != nil {
   112  		in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit
   113  		*out = new(int32)
   114  		**out = **in
   115  	}
   116  	if in.FailedJobsHistoryLimit != nil {
   117  		in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit
   118  		*out = new(int32)
   119  		**out = **in
   120  	}
   121  	return
   122  }
   123  
   124  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobSpec.
   125  func (in *CronJobSpec) DeepCopy() *CronJobSpec {
   126  	if in == nil {
   127  		return nil
   128  	}
   129  	out := new(CronJobSpec)
   130  	in.DeepCopyInto(out)
   131  	return out
   132  }
   133  
   134  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   135  func (in *CronJobStatus) DeepCopyInto(out *CronJobStatus) {
   136  	*out = *in
   137  	if in.Active != nil {
   138  		in, out := &in.Active, &out.Active
   139  		*out = make([]core.ObjectReference, len(*in))
   140  		copy(*out, *in)
   141  	}
   142  	if in.LastScheduleTime != nil {
   143  		in, out := &in.LastScheduleTime, &out.LastScheduleTime
   144  		*out = (*in).DeepCopy()
   145  	}
   146  	if in.LastSuccessfulTime != nil {
   147  		in, out := &in.LastSuccessfulTime, &out.LastSuccessfulTime
   148  		*out = (*in).DeepCopy()
   149  	}
   150  	return
   151  }
   152  
   153  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobStatus.
   154  func (in *CronJobStatus) DeepCopy() *CronJobStatus {
   155  	if in == nil {
   156  		return nil
   157  	}
   158  	out := new(CronJobStatus)
   159  	in.DeepCopyInto(out)
   160  	return out
   161  }
   162  
   163  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   164  func (in *Job) DeepCopyInto(out *Job) {
   165  	*out = *in
   166  	out.TypeMeta = in.TypeMeta
   167  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   168  	in.Spec.DeepCopyInto(&out.Spec)
   169  	in.Status.DeepCopyInto(&out.Status)
   170  	return
   171  }
   172  
   173  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.
   174  func (in *Job) DeepCopy() *Job {
   175  	if in == nil {
   176  		return nil
   177  	}
   178  	out := new(Job)
   179  	in.DeepCopyInto(out)
   180  	return out
   181  }
   182  
   183  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   184  func (in *Job) DeepCopyObject() runtime.Object {
   185  	if c := in.DeepCopy(); c != nil {
   186  		return c
   187  	}
   188  	return nil
   189  }
   190  
   191  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   192  func (in *JobCondition) DeepCopyInto(out *JobCondition) {
   193  	*out = *in
   194  	in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
   195  	in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
   196  	return
   197  }
   198  
   199  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobCondition.
   200  func (in *JobCondition) DeepCopy() *JobCondition {
   201  	if in == nil {
   202  		return nil
   203  	}
   204  	out := new(JobCondition)
   205  	in.DeepCopyInto(out)
   206  	return out
   207  }
   208  
   209  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   210  func (in *JobList) DeepCopyInto(out *JobList) {
   211  	*out = *in
   212  	out.TypeMeta = in.TypeMeta
   213  	in.ListMeta.DeepCopyInto(&out.ListMeta)
   214  	if in.Items != nil {
   215  		in, out := &in.Items, &out.Items
   216  		*out = make([]Job, len(*in))
   217  		for i := range *in {
   218  			(*in)[i].DeepCopyInto(&(*out)[i])
   219  		}
   220  	}
   221  	return
   222  }
   223  
   224  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
   225  func (in *JobList) DeepCopy() *JobList {
   226  	if in == nil {
   227  		return nil
   228  	}
   229  	out := new(JobList)
   230  	in.DeepCopyInto(out)
   231  	return out
   232  }
   233  
   234  // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
   235  func (in *JobList) DeepCopyObject() runtime.Object {
   236  	if c := in.DeepCopy(); c != nil {
   237  		return c
   238  	}
   239  	return nil
   240  }
   241  
   242  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   243  func (in *JobSpec) DeepCopyInto(out *JobSpec) {
   244  	*out = *in
   245  	if in.Parallelism != nil {
   246  		in, out := &in.Parallelism, &out.Parallelism
   247  		*out = new(int32)
   248  		**out = **in
   249  	}
   250  	if in.Completions != nil {
   251  		in, out := &in.Completions, &out.Completions
   252  		*out = new(int32)
   253  		**out = **in
   254  	}
   255  	if in.PodFailurePolicy != nil {
   256  		in, out := &in.PodFailurePolicy, &out.PodFailurePolicy
   257  		*out = new(PodFailurePolicy)
   258  		(*in).DeepCopyInto(*out)
   259  	}
   260  	if in.ActiveDeadlineSeconds != nil {
   261  		in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
   262  		*out = new(int64)
   263  		**out = **in
   264  	}
   265  	if in.BackoffLimit != nil {
   266  		in, out := &in.BackoffLimit, &out.BackoffLimit
   267  		*out = new(int32)
   268  		**out = **in
   269  	}
   270  	if in.BackoffLimitPerIndex != nil {
   271  		in, out := &in.BackoffLimitPerIndex, &out.BackoffLimitPerIndex
   272  		*out = new(int32)
   273  		**out = **in
   274  	}
   275  	if in.MaxFailedIndexes != nil {
   276  		in, out := &in.MaxFailedIndexes, &out.MaxFailedIndexes
   277  		*out = new(int32)
   278  		**out = **in
   279  	}
   280  	if in.Selector != nil {
   281  		in, out := &in.Selector, &out.Selector
   282  		*out = new(v1.LabelSelector)
   283  		(*in).DeepCopyInto(*out)
   284  	}
   285  	if in.ManualSelector != nil {
   286  		in, out := &in.ManualSelector, &out.ManualSelector
   287  		*out = new(bool)
   288  		**out = **in
   289  	}
   290  	in.Template.DeepCopyInto(&out.Template)
   291  	if in.TTLSecondsAfterFinished != nil {
   292  		in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished
   293  		*out = new(int32)
   294  		**out = **in
   295  	}
   296  	if in.CompletionMode != nil {
   297  		in, out := &in.CompletionMode, &out.CompletionMode
   298  		*out = new(CompletionMode)
   299  		**out = **in
   300  	}
   301  	if in.Suspend != nil {
   302  		in, out := &in.Suspend, &out.Suspend
   303  		*out = new(bool)
   304  		**out = **in
   305  	}
   306  	if in.PodReplacementPolicy != nil {
   307  		in, out := &in.PodReplacementPolicy, &out.PodReplacementPolicy
   308  		*out = new(PodReplacementPolicy)
   309  		**out = **in
   310  	}
   311  	return
   312  }
   313  
   314  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
   315  func (in *JobSpec) DeepCopy() *JobSpec {
   316  	if in == nil {
   317  		return nil
   318  	}
   319  	out := new(JobSpec)
   320  	in.DeepCopyInto(out)
   321  	return out
   322  }
   323  
   324  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   325  func (in *JobStatus) DeepCopyInto(out *JobStatus) {
   326  	*out = *in
   327  	if in.Conditions != nil {
   328  		in, out := &in.Conditions, &out.Conditions
   329  		*out = make([]JobCondition, len(*in))
   330  		for i := range *in {
   331  			(*in)[i].DeepCopyInto(&(*out)[i])
   332  		}
   333  	}
   334  	if in.StartTime != nil {
   335  		in, out := &in.StartTime, &out.StartTime
   336  		*out = (*in).DeepCopy()
   337  	}
   338  	if in.CompletionTime != nil {
   339  		in, out := &in.CompletionTime, &out.CompletionTime
   340  		*out = (*in).DeepCopy()
   341  	}
   342  	if in.Terminating != nil {
   343  		in, out := &in.Terminating, &out.Terminating
   344  		*out = new(int32)
   345  		**out = **in
   346  	}
   347  	if in.Ready != nil {
   348  		in, out := &in.Ready, &out.Ready
   349  		*out = new(int32)
   350  		**out = **in
   351  	}
   352  	if in.FailedIndexes != nil {
   353  		in, out := &in.FailedIndexes, &out.FailedIndexes
   354  		*out = new(string)
   355  		**out = **in
   356  	}
   357  	if in.UncountedTerminatedPods != nil {
   358  		in, out := &in.UncountedTerminatedPods, &out.UncountedTerminatedPods
   359  		*out = new(UncountedTerminatedPods)
   360  		(*in).DeepCopyInto(*out)
   361  	}
   362  	return
   363  }
   364  
   365  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
   366  func (in *JobStatus) DeepCopy() *JobStatus {
   367  	if in == nil {
   368  		return nil
   369  	}
   370  	out := new(JobStatus)
   371  	in.DeepCopyInto(out)
   372  	return out
   373  }
   374  
   375  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   376  func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec) {
   377  	*out = *in
   378  	in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
   379  	in.Spec.DeepCopyInto(&out.Spec)
   380  	return
   381  }
   382  
   383  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateSpec.
   384  func (in *JobTemplateSpec) DeepCopy() *JobTemplateSpec {
   385  	if in == nil {
   386  		return nil
   387  	}
   388  	out := new(JobTemplateSpec)
   389  	in.DeepCopyInto(out)
   390  	return out
   391  }
   392  
   393  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   394  func (in *PodFailurePolicy) DeepCopyInto(out *PodFailurePolicy) {
   395  	*out = *in
   396  	if in.Rules != nil {
   397  		in, out := &in.Rules, &out.Rules
   398  		*out = make([]PodFailurePolicyRule, len(*in))
   399  		for i := range *in {
   400  			(*in)[i].DeepCopyInto(&(*out)[i])
   401  		}
   402  	}
   403  	return
   404  }
   405  
   406  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodFailurePolicy.
   407  func (in *PodFailurePolicy) DeepCopy() *PodFailurePolicy {
   408  	if in == nil {
   409  		return nil
   410  	}
   411  	out := new(PodFailurePolicy)
   412  	in.DeepCopyInto(out)
   413  	return out
   414  }
   415  
   416  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   417  func (in *PodFailurePolicyOnExitCodesRequirement) DeepCopyInto(out *PodFailurePolicyOnExitCodesRequirement) {
   418  	*out = *in
   419  	if in.ContainerName != nil {
   420  		in, out := &in.ContainerName, &out.ContainerName
   421  		*out = new(string)
   422  		**out = **in
   423  	}
   424  	if in.Values != nil {
   425  		in, out := &in.Values, &out.Values
   426  		*out = make([]int32, len(*in))
   427  		copy(*out, *in)
   428  	}
   429  	return
   430  }
   431  
   432  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodFailurePolicyOnExitCodesRequirement.
   433  func (in *PodFailurePolicyOnExitCodesRequirement) DeepCopy() *PodFailurePolicyOnExitCodesRequirement {
   434  	if in == nil {
   435  		return nil
   436  	}
   437  	out := new(PodFailurePolicyOnExitCodesRequirement)
   438  	in.DeepCopyInto(out)
   439  	return out
   440  }
   441  
   442  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   443  func (in *PodFailurePolicyOnPodConditionsPattern) DeepCopyInto(out *PodFailurePolicyOnPodConditionsPattern) {
   444  	*out = *in
   445  	return
   446  }
   447  
   448  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodFailurePolicyOnPodConditionsPattern.
   449  func (in *PodFailurePolicyOnPodConditionsPattern) DeepCopy() *PodFailurePolicyOnPodConditionsPattern {
   450  	if in == nil {
   451  		return nil
   452  	}
   453  	out := new(PodFailurePolicyOnPodConditionsPattern)
   454  	in.DeepCopyInto(out)
   455  	return out
   456  }
   457  
   458  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   459  func (in *PodFailurePolicyRule) DeepCopyInto(out *PodFailurePolicyRule) {
   460  	*out = *in
   461  	if in.OnExitCodes != nil {
   462  		in, out := &in.OnExitCodes, &out.OnExitCodes
   463  		*out = new(PodFailurePolicyOnExitCodesRequirement)
   464  		(*in).DeepCopyInto(*out)
   465  	}
   466  	if in.OnPodConditions != nil {
   467  		in, out := &in.OnPodConditions, &out.OnPodConditions
   468  		*out = make([]PodFailurePolicyOnPodConditionsPattern, len(*in))
   469  		copy(*out, *in)
   470  	}
   471  	return
   472  }
   473  
   474  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodFailurePolicyRule.
   475  func (in *PodFailurePolicyRule) DeepCopy() *PodFailurePolicyRule {
   476  	if in == nil {
   477  		return nil
   478  	}
   479  	out := new(PodFailurePolicyRule)
   480  	in.DeepCopyInto(out)
   481  	return out
   482  }
   483  
   484  // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
   485  func (in *UncountedTerminatedPods) DeepCopyInto(out *UncountedTerminatedPods) {
   486  	*out = *in
   487  	if in.Succeeded != nil {
   488  		in, out := &in.Succeeded, &out.Succeeded
   489  		*out = make([]types.UID, len(*in))
   490  		copy(*out, *in)
   491  	}
   492  	if in.Failed != nil {
   493  		in, out := &in.Failed, &out.Failed
   494  		*out = make([]types.UID, len(*in))
   495  		copy(*out, *in)
   496  	}
   497  	return
   498  }
   499  
   500  // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UncountedTerminatedPods.
   501  func (in *UncountedTerminatedPods) DeepCopy() *UncountedTerminatedPods {
   502  	if in == nil {
   503  		return nil
   504  	}
   505  	out := new(UncountedTerminatedPods)
   506  	in.DeepCopyInto(out)
   507  	return out
   508  }