Source file
src/k8s.io/api/batch/v1/zz_generated.deepcopy.go
1
2
3
4
19
20
21
22 package v1
23
24 import (
25 corev1 "k8s.io/api/core/v1"
26 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
27 runtime "k8s.io/apimachinery/pkg/runtime"
28 types "k8s.io/apimachinery/pkg/types"
29 )
30
31
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
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
52 func (in *CronJob) DeepCopyObject() runtime.Object {
53 if c := in.DeepCopy(); c != nil {
54 return c
55 }
56 return nil
57 }
58
59
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
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
85 func (in *CronJobList) DeepCopyObject() runtime.Object {
86 if c := in.DeepCopy(); c != nil {
87 return c
88 }
89 return nil
90 }
91
92
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
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
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([]corev1.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
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
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
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
184 func (in *Job) DeepCopyObject() runtime.Object {
185 if c := in.DeepCopy(); c != nil {
186 return c
187 }
188 return nil
189 }
190
191
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
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
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
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
235 func (in *JobList) DeepCopyObject() runtime.Object {
236 if c := in.DeepCopy(); c != nil {
237 return c
238 }
239 return nil
240 }
241
242
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.ActiveDeadlineSeconds != nil {
256 in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
257 *out = new(int64)
258 **out = **in
259 }
260 if in.PodFailurePolicy != nil {
261 in, out := &in.PodFailurePolicy, &out.PodFailurePolicy
262 *out = new(PodFailurePolicy)
263 (*in).DeepCopyInto(*out)
264 }
265 if in.SuccessPolicy != nil {
266 in, out := &in.SuccessPolicy, &out.SuccessPolicy
267 *out = new(SuccessPolicy)
268 (*in).DeepCopyInto(*out)
269 }
270 if in.BackoffLimit != nil {
271 in, out := &in.BackoffLimit, &out.BackoffLimit
272 *out = new(int32)
273 **out = **in
274 }
275 if in.BackoffLimitPerIndex != nil {
276 in, out := &in.BackoffLimitPerIndex, &out.BackoffLimitPerIndex
277 *out = new(int32)
278 **out = **in
279 }
280 if in.MaxFailedIndexes != nil {
281 in, out := &in.MaxFailedIndexes, &out.MaxFailedIndexes
282 *out = new(int32)
283 **out = **in
284 }
285 if in.Selector != nil {
286 in, out := &in.Selector, &out.Selector
287 *out = new(metav1.LabelSelector)
288 (*in).DeepCopyInto(*out)
289 }
290 if in.ManualSelector != nil {
291 in, out := &in.ManualSelector, &out.ManualSelector
292 *out = new(bool)
293 **out = **in
294 }
295 in.Template.DeepCopyInto(&out.Template)
296 if in.TTLSecondsAfterFinished != nil {
297 in, out := &in.TTLSecondsAfterFinished, &out.TTLSecondsAfterFinished
298 *out = new(int32)
299 **out = **in
300 }
301 if in.CompletionMode != nil {
302 in, out := &in.CompletionMode, &out.CompletionMode
303 *out = new(CompletionMode)
304 **out = **in
305 }
306 if in.Suspend != nil {
307 in, out := &in.Suspend, &out.Suspend
308 *out = new(bool)
309 **out = **in
310 }
311 if in.PodReplacementPolicy != nil {
312 in, out := &in.PodReplacementPolicy, &out.PodReplacementPolicy
313 *out = new(PodReplacementPolicy)
314 **out = **in
315 }
316 if in.ManagedBy != nil {
317 in, out := &in.ManagedBy, &out.ManagedBy
318 *out = new(string)
319 **out = **in
320 }
321 return
322 }
323
324
325 func (in *JobSpec) DeepCopy() *JobSpec {
326 if in == nil {
327 return nil
328 }
329 out := new(JobSpec)
330 in.DeepCopyInto(out)
331 return out
332 }
333
334
335 func (in *JobStatus) DeepCopyInto(out *JobStatus) {
336 *out = *in
337 if in.Conditions != nil {
338 in, out := &in.Conditions, &out.Conditions
339 *out = make([]JobCondition, len(*in))
340 for i := range *in {
341 (*in)[i].DeepCopyInto(&(*out)[i])
342 }
343 }
344 if in.StartTime != nil {
345 in, out := &in.StartTime, &out.StartTime
346 *out = (*in).DeepCopy()
347 }
348 if in.CompletionTime != nil {
349 in, out := &in.CompletionTime, &out.CompletionTime
350 *out = (*in).DeepCopy()
351 }
352 if in.Terminating != nil {
353 in, out := &in.Terminating, &out.Terminating
354 *out = new(int32)
355 **out = **in
356 }
357 if in.FailedIndexes != nil {
358 in, out := &in.FailedIndexes, &out.FailedIndexes
359 *out = new(string)
360 **out = **in
361 }
362 if in.UncountedTerminatedPods != nil {
363 in, out := &in.UncountedTerminatedPods, &out.UncountedTerminatedPods
364 *out = new(UncountedTerminatedPods)
365 (*in).DeepCopyInto(*out)
366 }
367 if in.Ready != nil {
368 in, out := &in.Ready, &out.Ready
369 *out = new(int32)
370 **out = **in
371 }
372 return
373 }
374
375
376 func (in *JobStatus) DeepCopy() *JobStatus {
377 if in == nil {
378 return nil
379 }
380 out := new(JobStatus)
381 in.DeepCopyInto(out)
382 return out
383 }
384
385
386 func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec) {
387 *out = *in
388 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
389 in.Spec.DeepCopyInto(&out.Spec)
390 return
391 }
392
393
394 func (in *JobTemplateSpec) DeepCopy() *JobTemplateSpec {
395 if in == nil {
396 return nil
397 }
398 out := new(JobTemplateSpec)
399 in.DeepCopyInto(out)
400 return out
401 }
402
403
404 func (in *PodFailurePolicy) DeepCopyInto(out *PodFailurePolicy) {
405 *out = *in
406 if in.Rules != nil {
407 in, out := &in.Rules, &out.Rules
408 *out = make([]PodFailurePolicyRule, len(*in))
409 for i := range *in {
410 (*in)[i].DeepCopyInto(&(*out)[i])
411 }
412 }
413 return
414 }
415
416
417 func (in *PodFailurePolicy) DeepCopy() *PodFailurePolicy {
418 if in == nil {
419 return nil
420 }
421 out := new(PodFailurePolicy)
422 in.DeepCopyInto(out)
423 return out
424 }
425
426
427 func (in *PodFailurePolicyOnExitCodesRequirement) DeepCopyInto(out *PodFailurePolicyOnExitCodesRequirement) {
428 *out = *in
429 if in.ContainerName != nil {
430 in, out := &in.ContainerName, &out.ContainerName
431 *out = new(string)
432 **out = **in
433 }
434 if in.Values != nil {
435 in, out := &in.Values, &out.Values
436 *out = make([]int32, len(*in))
437 copy(*out, *in)
438 }
439 return
440 }
441
442
443 func (in *PodFailurePolicyOnExitCodesRequirement) DeepCopy() *PodFailurePolicyOnExitCodesRequirement {
444 if in == nil {
445 return nil
446 }
447 out := new(PodFailurePolicyOnExitCodesRequirement)
448 in.DeepCopyInto(out)
449 return out
450 }
451
452
453 func (in *PodFailurePolicyOnPodConditionsPattern) DeepCopyInto(out *PodFailurePolicyOnPodConditionsPattern) {
454 *out = *in
455 return
456 }
457
458
459 func (in *PodFailurePolicyOnPodConditionsPattern) DeepCopy() *PodFailurePolicyOnPodConditionsPattern {
460 if in == nil {
461 return nil
462 }
463 out := new(PodFailurePolicyOnPodConditionsPattern)
464 in.DeepCopyInto(out)
465 return out
466 }
467
468
469 func (in *PodFailurePolicyRule) DeepCopyInto(out *PodFailurePolicyRule) {
470 *out = *in
471 if in.OnExitCodes != nil {
472 in, out := &in.OnExitCodes, &out.OnExitCodes
473 *out = new(PodFailurePolicyOnExitCodesRequirement)
474 (*in).DeepCopyInto(*out)
475 }
476 if in.OnPodConditions != nil {
477 in, out := &in.OnPodConditions, &out.OnPodConditions
478 *out = make([]PodFailurePolicyOnPodConditionsPattern, len(*in))
479 copy(*out, *in)
480 }
481 return
482 }
483
484
485 func (in *PodFailurePolicyRule) DeepCopy() *PodFailurePolicyRule {
486 if in == nil {
487 return nil
488 }
489 out := new(PodFailurePolicyRule)
490 in.DeepCopyInto(out)
491 return out
492 }
493
494
495 func (in *SuccessPolicy) DeepCopyInto(out *SuccessPolicy) {
496 *out = *in
497 if in.Rules != nil {
498 in, out := &in.Rules, &out.Rules
499 *out = make([]SuccessPolicyRule, len(*in))
500 for i := range *in {
501 (*in)[i].DeepCopyInto(&(*out)[i])
502 }
503 }
504 return
505 }
506
507
508 func (in *SuccessPolicy) DeepCopy() *SuccessPolicy {
509 if in == nil {
510 return nil
511 }
512 out := new(SuccessPolicy)
513 in.DeepCopyInto(out)
514 return out
515 }
516
517
518 func (in *SuccessPolicyRule) DeepCopyInto(out *SuccessPolicyRule) {
519 *out = *in
520 if in.SucceededIndexes != nil {
521 in, out := &in.SucceededIndexes, &out.SucceededIndexes
522 *out = new(string)
523 **out = **in
524 }
525 if in.SucceededCount != nil {
526 in, out := &in.SucceededCount, &out.SucceededCount
527 *out = new(int32)
528 **out = **in
529 }
530 return
531 }
532
533
534 func (in *SuccessPolicyRule) DeepCopy() *SuccessPolicyRule {
535 if in == nil {
536 return nil
537 }
538 out := new(SuccessPolicyRule)
539 in.DeepCopyInto(out)
540 return out
541 }
542
543
544 func (in *UncountedTerminatedPods) DeepCopyInto(out *UncountedTerminatedPods) {
545 *out = *in
546 if in.Succeeded != nil {
547 in, out := &in.Succeeded, &out.Succeeded
548 *out = make([]types.UID, len(*in))
549 copy(*out, *in)
550 }
551 if in.Failed != nil {
552 in, out := &in.Failed, &out.Failed
553 *out = make([]types.UID, len(*in))
554 copy(*out, *in)
555 }
556 return
557 }
558
559
560 func (in *UncountedTerminatedPods) DeepCopy() *UncountedTerminatedPods {
561 if in == nil {
562 return nil
563 }
564 out := new(UncountedTerminatedPods)
565 in.DeepCopyInto(out)
566 return out
567 }
568
View as plain text