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