1
2
3
18
19
20
21 package v2
22
23 import (
24 "github.com/fluxcd/pkg/apis/kustomize"
25 "github.com/fluxcd/pkg/apis/meta"
26 apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
27 "k8s.io/apimachinery/pkg/apis/meta/v1"
28 runtime "k8s.io/apimachinery/pkg/runtime"
29 )
30
31
32 func (in *CrossNamespaceObjectReference) DeepCopyInto(out *CrossNamespaceObjectReference) {
33 *out = *in
34 }
35
36
37 func (in *CrossNamespaceObjectReference) DeepCopy() *CrossNamespaceObjectReference {
38 if in == nil {
39 return nil
40 }
41 out := new(CrossNamespaceObjectReference)
42 in.DeepCopyInto(out)
43 return out
44 }
45
46
47 func (in *CrossNamespaceSourceReference) DeepCopyInto(out *CrossNamespaceSourceReference) {
48 *out = *in
49 }
50
51
52 func (in *CrossNamespaceSourceReference) DeepCopy() *CrossNamespaceSourceReference {
53 if in == nil {
54 return nil
55 }
56 out := new(CrossNamespaceSourceReference)
57 in.DeepCopyInto(out)
58 return out
59 }
60
61
62 func (in *DriftDetection) DeepCopyInto(out *DriftDetection) {
63 *out = *in
64 if in.Ignore != nil {
65 in, out := &in.Ignore, &out.Ignore
66 *out = make([]IgnoreRule, len(*in))
67 for i := range *in {
68 (*in)[i].DeepCopyInto(&(*out)[i])
69 }
70 }
71 }
72
73
74 func (in *DriftDetection) DeepCopy() *DriftDetection {
75 if in == nil {
76 return nil
77 }
78 out := new(DriftDetection)
79 in.DeepCopyInto(out)
80 return out
81 }
82
83
84 func (in *Filter) DeepCopyInto(out *Filter) {
85 *out = *in
86 }
87
88
89 func (in *Filter) DeepCopy() *Filter {
90 if in == nil {
91 return nil
92 }
93 out := new(Filter)
94 in.DeepCopyInto(out)
95 return out
96 }
97
98
99 func (in *HelmChartTemplate) DeepCopyInto(out *HelmChartTemplate) {
100 *out = *in
101 if in.ObjectMeta != nil {
102 in, out := &in.ObjectMeta, &out.ObjectMeta
103 *out = new(HelmChartTemplateObjectMeta)
104 (*in).DeepCopyInto(*out)
105 }
106 in.Spec.DeepCopyInto(&out.Spec)
107 }
108
109
110 func (in *HelmChartTemplate) DeepCopy() *HelmChartTemplate {
111 if in == nil {
112 return nil
113 }
114 out := new(HelmChartTemplate)
115 in.DeepCopyInto(out)
116 return out
117 }
118
119
120 func (in *HelmChartTemplateObjectMeta) DeepCopyInto(out *HelmChartTemplateObjectMeta) {
121 *out = *in
122 if in.Labels != nil {
123 in, out := &in.Labels, &out.Labels
124 *out = make(map[string]string, len(*in))
125 for key, val := range *in {
126 (*out)[key] = val
127 }
128 }
129 if in.Annotations != nil {
130 in, out := &in.Annotations, &out.Annotations
131 *out = make(map[string]string, len(*in))
132 for key, val := range *in {
133 (*out)[key] = val
134 }
135 }
136 }
137
138
139 func (in *HelmChartTemplateObjectMeta) DeepCopy() *HelmChartTemplateObjectMeta {
140 if in == nil {
141 return nil
142 }
143 out := new(HelmChartTemplateObjectMeta)
144 in.DeepCopyInto(out)
145 return out
146 }
147
148
149 func (in *HelmChartTemplateSpec) DeepCopyInto(out *HelmChartTemplateSpec) {
150 *out = *in
151 out.SourceRef = in.SourceRef
152 if in.Interval != nil {
153 in, out := &in.Interval, &out.Interval
154 *out = new(v1.Duration)
155 **out = **in
156 }
157 if in.ValuesFiles != nil {
158 in, out := &in.ValuesFiles, &out.ValuesFiles
159 *out = make([]string, len(*in))
160 copy(*out, *in)
161 }
162 if in.Verify != nil {
163 in, out := &in.Verify, &out.Verify
164 *out = new(HelmChartTemplateVerification)
165 (*in).DeepCopyInto(*out)
166 }
167 }
168
169
170 func (in *HelmChartTemplateSpec) DeepCopy() *HelmChartTemplateSpec {
171 if in == nil {
172 return nil
173 }
174 out := new(HelmChartTemplateSpec)
175 in.DeepCopyInto(out)
176 return out
177 }
178
179
180 func (in *HelmChartTemplateVerification) DeepCopyInto(out *HelmChartTemplateVerification) {
181 *out = *in
182 if in.SecretRef != nil {
183 in, out := &in.SecretRef, &out.SecretRef
184 *out = new(meta.LocalObjectReference)
185 **out = **in
186 }
187 }
188
189
190 func (in *HelmChartTemplateVerification) DeepCopy() *HelmChartTemplateVerification {
191 if in == nil {
192 return nil
193 }
194 out := new(HelmChartTemplateVerification)
195 in.DeepCopyInto(out)
196 return out
197 }
198
199
200 func (in *HelmRelease) DeepCopyInto(out *HelmRelease) {
201 *out = *in
202 out.TypeMeta = in.TypeMeta
203 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
204 in.Spec.DeepCopyInto(&out.Spec)
205 in.Status.DeepCopyInto(&out.Status)
206 }
207
208
209 func (in *HelmRelease) DeepCopy() *HelmRelease {
210 if in == nil {
211 return nil
212 }
213 out := new(HelmRelease)
214 in.DeepCopyInto(out)
215 return out
216 }
217
218
219 func (in *HelmRelease) DeepCopyObject() runtime.Object {
220 if c := in.DeepCopy(); c != nil {
221 return c
222 }
223 return nil
224 }
225
226
227 func (in *HelmReleaseList) DeepCopyInto(out *HelmReleaseList) {
228 *out = *in
229 out.TypeMeta = in.TypeMeta
230 in.ListMeta.DeepCopyInto(&out.ListMeta)
231 if in.Items != nil {
232 in, out := &in.Items, &out.Items
233 *out = make([]HelmRelease, len(*in))
234 for i := range *in {
235 (*in)[i].DeepCopyInto(&(*out)[i])
236 }
237 }
238 }
239
240
241 func (in *HelmReleaseList) DeepCopy() *HelmReleaseList {
242 if in == nil {
243 return nil
244 }
245 out := new(HelmReleaseList)
246 in.DeepCopyInto(out)
247 return out
248 }
249
250
251 func (in *HelmReleaseList) DeepCopyObject() runtime.Object {
252 if c := in.DeepCopy(); c != nil {
253 return c
254 }
255 return nil
256 }
257
258
259 func (in *HelmReleaseSpec) DeepCopyInto(out *HelmReleaseSpec) {
260 *out = *in
261 if in.Chart != nil {
262 in, out := &in.Chart, &out.Chart
263 *out = new(HelmChartTemplate)
264 (*in).DeepCopyInto(*out)
265 }
266 if in.ChartRef != nil {
267 in, out := &in.ChartRef, &out.ChartRef
268 *out = new(CrossNamespaceSourceReference)
269 **out = **in
270 }
271 out.Interval = in.Interval
272 if in.KubeConfig != nil {
273 in, out := &in.KubeConfig, &out.KubeConfig
274 *out = new(meta.KubeConfigReference)
275 **out = **in
276 }
277 if in.DependsOn != nil {
278 in, out := &in.DependsOn, &out.DependsOn
279 *out = make([]meta.NamespacedObjectReference, len(*in))
280 copy(*out, *in)
281 }
282 if in.Timeout != nil {
283 in, out := &in.Timeout, &out.Timeout
284 *out = new(v1.Duration)
285 **out = **in
286 }
287 if in.MaxHistory != nil {
288 in, out := &in.MaxHistory, &out.MaxHistory
289 *out = new(int)
290 **out = **in
291 }
292 if in.PersistentClient != nil {
293 in, out := &in.PersistentClient, &out.PersistentClient
294 *out = new(bool)
295 **out = **in
296 }
297 if in.DriftDetection != nil {
298 in, out := &in.DriftDetection, &out.DriftDetection
299 *out = new(DriftDetection)
300 (*in).DeepCopyInto(*out)
301 }
302 if in.Install != nil {
303 in, out := &in.Install, &out.Install
304 *out = new(Install)
305 (*in).DeepCopyInto(*out)
306 }
307 if in.Upgrade != nil {
308 in, out := &in.Upgrade, &out.Upgrade
309 *out = new(Upgrade)
310 (*in).DeepCopyInto(*out)
311 }
312 if in.Test != nil {
313 in, out := &in.Test, &out.Test
314 *out = new(Test)
315 (*in).DeepCopyInto(*out)
316 }
317 if in.Rollback != nil {
318 in, out := &in.Rollback, &out.Rollback
319 *out = new(Rollback)
320 (*in).DeepCopyInto(*out)
321 }
322 if in.Uninstall != nil {
323 in, out := &in.Uninstall, &out.Uninstall
324 *out = new(Uninstall)
325 (*in).DeepCopyInto(*out)
326 }
327 if in.ValuesFrom != nil {
328 in, out := &in.ValuesFrom, &out.ValuesFrom
329 *out = make([]ValuesReference, len(*in))
330 copy(*out, *in)
331 }
332 if in.Values != nil {
333 in, out := &in.Values, &out.Values
334 *out = new(apiextensionsv1.JSON)
335 (*in).DeepCopyInto(*out)
336 }
337 if in.PostRenderers != nil {
338 in, out := &in.PostRenderers, &out.PostRenderers
339 *out = make([]PostRenderer, len(*in))
340 for i := range *in {
341 (*in)[i].DeepCopyInto(&(*out)[i])
342 }
343 }
344 }
345
346
347 func (in *HelmReleaseSpec) DeepCopy() *HelmReleaseSpec {
348 if in == nil {
349 return nil
350 }
351 out := new(HelmReleaseSpec)
352 in.DeepCopyInto(out)
353 return out
354 }
355
356
357 func (in *HelmReleaseStatus) DeepCopyInto(out *HelmReleaseStatus) {
358 *out = *in
359 if in.Conditions != nil {
360 in, out := &in.Conditions, &out.Conditions
361 *out = make([]v1.Condition, len(*in))
362 for i := range *in {
363 (*in)[i].DeepCopyInto(&(*out)[i])
364 }
365 }
366 if in.History != nil {
367 in, out := &in.History, &out.History
368 *out = make(Snapshots, len(*in))
369 for i := range *in {
370 if (*in)[i] != nil {
371 in, out := &(*in)[i], &(*out)[i]
372 *out = new(Snapshot)
373 (*in).DeepCopyInto(*out)
374 }
375 }
376 }
377 out.ReconcileRequestStatus = in.ReconcileRequestStatus
378 }
379
380
381 func (in *HelmReleaseStatus) DeepCopy() *HelmReleaseStatus {
382 if in == nil {
383 return nil
384 }
385 out := new(HelmReleaseStatus)
386 in.DeepCopyInto(out)
387 return out
388 }
389
390
391 func (in *IgnoreRule) DeepCopyInto(out *IgnoreRule) {
392 *out = *in
393 if in.Paths != nil {
394 in, out := &in.Paths, &out.Paths
395 *out = make([]string, len(*in))
396 copy(*out, *in)
397 }
398 if in.Target != nil {
399 in, out := &in.Target, &out.Target
400 *out = new(kustomize.Selector)
401 **out = **in
402 }
403 }
404
405
406 func (in *IgnoreRule) DeepCopy() *IgnoreRule {
407 if in == nil {
408 return nil
409 }
410 out := new(IgnoreRule)
411 in.DeepCopyInto(out)
412 return out
413 }
414
415
416 func (in *Install) DeepCopyInto(out *Install) {
417 *out = *in
418 if in.Timeout != nil {
419 in, out := &in.Timeout, &out.Timeout
420 *out = new(v1.Duration)
421 **out = **in
422 }
423 if in.Remediation != nil {
424 in, out := &in.Remediation, &out.Remediation
425 *out = new(InstallRemediation)
426 (*in).DeepCopyInto(*out)
427 }
428 }
429
430
431 func (in *Install) DeepCopy() *Install {
432 if in == nil {
433 return nil
434 }
435 out := new(Install)
436 in.DeepCopyInto(out)
437 return out
438 }
439
440
441 func (in *InstallRemediation) DeepCopyInto(out *InstallRemediation) {
442 *out = *in
443 if in.IgnoreTestFailures != nil {
444 in, out := &in.IgnoreTestFailures, &out.IgnoreTestFailures
445 *out = new(bool)
446 **out = **in
447 }
448 if in.RemediateLastFailure != nil {
449 in, out := &in.RemediateLastFailure, &out.RemediateLastFailure
450 *out = new(bool)
451 **out = **in
452 }
453 }
454
455
456 func (in *InstallRemediation) DeepCopy() *InstallRemediation {
457 if in == nil {
458 return nil
459 }
460 out := new(InstallRemediation)
461 in.DeepCopyInto(out)
462 return out
463 }
464
465
466 func (in *Kustomize) DeepCopyInto(out *Kustomize) {
467 *out = *in
468 if in.Patches != nil {
469 in, out := &in.Patches, &out.Patches
470 *out = make([]kustomize.Patch, len(*in))
471 for i := range *in {
472 (*in)[i].DeepCopyInto(&(*out)[i])
473 }
474 }
475 if in.Images != nil {
476 in, out := &in.Images, &out.Images
477 *out = make([]kustomize.Image, len(*in))
478 copy(*out, *in)
479 }
480 }
481
482
483 func (in *Kustomize) DeepCopy() *Kustomize {
484 if in == nil {
485 return nil
486 }
487 out := new(Kustomize)
488 in.DeepCopyInto(out)
489 return out
490 }
491
492
493 func (in *PostRenderer) DeepCopyInto(out *PostRenderer) {
494 *out = *in
495 if in.Kustomize != nil {
496 in, out := &in.Kustomize, &out.Kustomize
497 *out = new(Kustomize)
498 (*in).DeepCopyInto(*out)
499 }
500 }
501
502
503 func (in *PostRenderer) DeepCopy() *PostRenderer {
504 if in == nil {
505 return nil
506 }
507 out := new(PostRenderer)
508 in.DeepCopyInto(out)
509 return out
510 }
511
512
513 func (in *Rollback) DeepCopyInto(out *Rollback) {
514 *out = *in
515 if in.Timeout != nil {
516 in, out := &in.Timeout, &out.Timeout
517 *out = new(v1.Duration)
518 **out = **in
519 }
520 }
521
522
523 func (in *Rollback) DeepCopy() *Rollback {
524 if in == nil {
525 return nil
526 }
527 out := new(Rollback)
528 in.DeepCopyInto(out)
529 return out
530 }
531
532
533 func (in *Snapshot) DeepCopyInto(out *Snapshot) {
534 *out = *in
535 in.FirstDeployed.DeepCopyInto(&out.FirstDeployed)
536 in.LastDeployed.DeepCopyInto(&out.LastDeployed)
537 in.Deleted.DeepCopyInto(&out.Deleted)
538 if in.TestHooks != nil {
539 in, out := &in.TestHooks, &out.TestHooks
540 *out = new(map[string]*TestHookStatus)
541 if **in != nil {
542 in, out := *in, *out
543 *out = make(map[string]*TestHookStatus, len(*in))
544 for key, val := range *in {
545 var outVal *TestHookStatus
546 if val == nil {
547 (*out)[key] = nil
548 } else {
549 inVal := (*in)[key]
550 in, out := &inVal, &outVal
551 *out = new(TestHookStatus)
552 (*in).DeepCopyInto(*out)
553 }
554 (*out)[key] = outVal
555 }
556 }
557 }
558 }
559
560
561 func (in *Snapshot) DeepCopy() *Snapshot {
562 if in == nil {
563 return nil
564 }
565 out := new(Snapshot)
566 in.DeepCopyInto(out)
567 return out
568 }
569
570
571 func (in Snapshots) DeepCopyInto(out *Snapshots) {
572 {
573 in := &in
574 *out = make(Snapshots, len(*in))
575 for i := range *in {
576 if (*in)[i] != nil {
577 in, out := &(*in)[i], &(*out)[i]
578 *out = new(Snapshot)
579 (*in).DeepCopyInto(*out)
580 }
581 }
582 }
583 }
584
585
586 func (in Snapshots) DeepCopy() Snapshots {
587 if in == nil {
588 return nil
589 }
590 out := new(Snapshots)
591 in.DeepCopyInto(out)
592 return *out
593 }
594
595
596 func (in *Test) DeepCopyInto(out *Test) {
597 *out = *in
598 if in.Timeout != nil {
599 in, out := &in.Timeout, &out.Timeout
600 *out = new(v1.Duration)
601 **out = **in
602 }
603 if in.Filters != nil {
604 in, out := &in.Filters, &out.Filters
605 *out = new([]Filter)
606 if **in != nil {
607 in, out := *in, *out
608 *out = make([]Filter, len(*in))
609 copy(*out, *in)
610 }
611 }
612 }
613
614
615 func (in *Test) DeepCopy() *Test {
616 if in == nil {
617 return nil
618 }
619 out := new(Test)
620 in.DeepCopyInto(out)
621 return out
622 }
623
624
625 func (in *TestHookStatus) DeepCopyInto(out *TestHookStatus) {
626 *out = *in
627 in.LastStarted.DeepCopyInto(&out.LastStarted)
628 in.LastCompleted.DeepCopyInto(&out.LastCompleted)
629 }
630
631
632 func (in *TestHookStatus) DeepCopy() *TestHookStatus {
633 if in == nil {
634 return nil
635 }
636 out := new(TestHookStatus)
637 in.DeepCopyInto(out)
638 return out
639 }
640
641
642 func (in *Uninstall) DeepCopyInto(out *Uninstall) {
643 *out = *in
644 if in.Timeout != nil {
645 in, out := &in.Timeout, &out.Timeout
646 *out = new(v1.Duration)
647 **out = **in
648 }
649 if in.DeletionPropagation != nil {
650 in, out := &in.DeletionPropagation, &out.DeletionPropagation
651 *out = new(string)
652 **out = **in
653 }
654 }
655
656
657 func (in *Uninstall) DeepCopy() *Uninstall {
658 if in == nil {
659 return nil
660 }
661 out := new(Uninstall)
662 in.DeepCopyInto(out)
663 return out
664 }
665
666
667 func (in *Upgrade) DeepCopyInto(out *Upgrade) {
668 *out = *in
669 if in.Timeout != nil {
670 in, out := &in.Timeout, &out.Timeout
671 *out = new(v1.Duration)
672 **out = **in
673 }
674 if in.Remediation != nil {
675 in, out := &in.Remediation, &out.Remediation
676 *out = new(UpgradeRemediation)
677 (*in).DeepCopyInto(*out)
678 }
679 }
680
681
682 func (in *Upgrade) DeepCopy() *Upgrade {
683 if in == nil {
684 return nil
685 }
686 out := new(Upgrade)
687 in.DeepCopyInto(out)
688 return out
689 }
690
691
692 func (in *UpgradeRemediation) DeepCopyInto(out *UpgradeRemediation) {
693 *out = *in
694 if in.IgnoreTestFailures != nil {
695 in, out := &in.IgnoreTestFailures, &out.IgnoreTestFailures
696 *out = new(bool)
697 **out = **in
698 }
699 if in.RemediateLastFailure != nil {
700 in, out := &in.RemediateLastFailure, &out.RemediateLastFailure
701 *out = new(bool)
702 **out = **in
703 }
704 if in.Strategy != nil {
705 in, out := &in.Strategy, &out.Strategy
706 *out = new(RemediationStrategy)
707 **out = **in
708 }
709 }
710
711
712 func (in *UpgradeRemediation) DeepCopy() *UpgradeRemediation {
713 if in == nil {
714 return nil
715 }
716 out := new(UpgradeRemediation)
717 in.DeepCopyInto(out)
718 return out
719 }
720
721
722 func (in *ValuesReference) DeepCopyInto(out *ValuesReference) {
723 *out = *in
724 }
725
726
727 func (in *ValuesReference) DeepCopy() *ValuesReference {
728 if in == nil {
729 return nil
730 }
731 out := new(ValuesReference)
732 in.DeepCopyInto(out)
733 return out
734 }
735
View as plain text