1
2
3
18
19
20
21 package v2beta1
22
23 import (
24 "github.com/fluxcd/helm-controller/api/v2"
25 "github.com/fluxcd/helm-controller/api/v2beta2"
26 "github.com/fluxcd/pkg/apis/kustomize"
27 "github.com/fluxcd/pkg/apis/meta"
28 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
29 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
30 runtime "k8s.io/apimachinery/pkg/runtime"
31 )
32
33
34 func (in *CrossNamespaceObjectReference) DeepCopyInto(out *CrossNamespaceObjectReference) {
35 *out = *in
36 }
37
38
39 func (in *CrossNamespaceObjectReference) DeepCopy() *CrossNamespaceObjectReference {
40 if in == nil {
41 return nil
42 }
43 out := new(CrossNamespaceObjectReference)
44 in.DeepCopyInto(out)
45 return out
46 }
47
48
49 func (in *HelmChartTemplate) DeepCopyInto(out *HelmChartTemplate) {
50 *out = *in
51 if in.ObjectMeta != nil {
52 in, out := &in.ObjectMeta, &out.ObjectMeta
53 *out = new(HelmChartTemplateObjectMeta)
54 (*in).DeepCopyInto(*out)
55 }
56 in.Spec.DeepCopyInto(&out.Spec)
57 }
58
59
60 func (in *HelmChartTemplate) DeepCopy() *HelmChartTemplate {
61 if in == nil {
62 return nil
63 }
64 out := new(HelmChartTemplate)
65 in.DeepCopyInto(out)
66 return out
67 }
68
69
70 func (in *HelmChartTemplateObjectMeta) DeepCopyInto(out *HelmChartTemplateObjectMeta) {
71 *out = *in
72 if in.Labels != nil {
73 in, out := &in.Labels, &out.Labels
74 *out = make(map[string]string, len(*in))
75 for key, val := range *in {
76 (*out)[key] = val
77 }
78 }
79 if in.Annotations != nil {
80 in, out := &in.Annotations, &out.Annotations
81 *out = make(map[string]string, len(*in))
82 for key, val := range *in {
83 (*out)[key] = val
84 }
85 }
86 }
87
88
89 func (in *HelmChartTemplateObjectMeta) DeepCopy() *HelmChartTemplateObjectMeta {
90 if in == nil {
91 return nil
92 }
93 out := new(HelmChartTemplateObjectMeta)
94 in.DeepCopyInto(out)
95 return out
96 }
97
98
99 func (in *HelmChartTemplateSpec) DeepCopyInto(out *HelmChartTemplateSpec) {
100 *out = *in
101 out.SourceRef = in.SourceRef
102 if in.Interval != nil {
103 in, out := &in.Interval, &out.Interval
104 *out = new(metav1.Duration)
105 **out = **in
106 }
107 if in.ValuesFiles != nil {
108 in, out := &in.ValuesFiles, &out.ValuesFiles
109 *out = make([]string, len(*in))
110 copy(*out, *in)
111 }
112 if in.Verify != nil {
113 in, out := &in.Verify, &out.Verify
114 *out = new(HelmChartTemplateVerification)
115 (*in).DeepCopyInto(*out)
116 }
117 }
118
119
120 func (in *HelmChartTemplateSpec) DeepCopy() *HelmChartTemplateSpec {
121 if in == nil {
122 return nil
123 }
124 out := new(HelmChartTemplateSpec)
125 in.DeepCopyInto(out)
126 return out
127 }
128
129
130 func (in *HelmChartTemplateVerification) DeepCopyInto(out *HelmChartTemplateVerification) {
131 *out = *in
132 if in.SecretRef != nil {
133 in, out := &in.SecretRef, &out.SecretRef
134 *out = new(meta.LocalObjectReference)
135 **out = **in
136 }
137 }
138
139
140 func (in *HelmChartTemplateVerification) DeepCopy() *HelmChartTemplateVerification {
141 if in == nil {
142 return nil
143 }
144 out := new(HelmChartTemplateVerification)
145 in.DeepCopyInto(out)
146 return out
147 }
148
149
150 func (in *HelmRelease) DeepCopyInto(out *HelmRelease) {
151 *out = *in
152 out.TypeMeta = in.TypeMeta
153 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
154 in.Spec.DeepCopyInto(&out.Spec)
155 in.Status.DeepCopyInto(&out.Status)
156 }
157
158
159 func (in *HelmRelease) DeepCopy() *HelmRelease {
160 if in == nil {
161 return nil
162 }
163 out := new(HelmRelease)
164 in.DeepCopyInto(out)
165 return out
166 }
167
168
169 func (in *HelmRelease) DeepCopyObject() runtime.Object {
170 if c := in.DeepCopy(); c != nil {
171 return c
172 }
173 return nil
174 }
175
176
177 func (in *HelmReleaseList) DeepCopyInto(out *HelmReleaseList) {
178 *out = *in
179 out.TypeMeta = in.TypeMeta
180 in.ListMeta.DeepCopyInto(&out.ListMeta)
181 if in.Items != nil {
182 in, out := &in.Items, &out.Items
183 *out = make([]HelmRelease, len(*in))
184 for i := range *in {
185 (*in)[i].DeepCopyInto(&(*out)[i])
186 }
187 }
188 }
189
190
191 func (in *HelmReleaseList) DeepCopy() *HelmReleaseList {
192 if in == nil {
193 return nil
194 }
195 out := new(HelmReleaseList)
196 in.DeepCopyInto(out)
197 return out
198 }
199
200
201 func (in *HelmReleaseList) DeepCopyObject() runtime.Object {
202 if c := in.DeepCopy(); c != nil {
203 return c
204 }
205 return nil
206 }
207
208
209 func (in *HelmReleaseSpec) DeepCopyInto(out *HelmReleaseSpec) {
210 *out = *in
211 if in.Chart != nil {
212 in, out := &in.Chart, &out.Chart
213 *out = new(HelmChartTemplate)
214 (*in).DeepCopyInto(*out)
215 }
216 if in.ChartRef != nil {
217 in, out := &in.ChartRef, &out.ChartRef
218 *out = new(v2.CrossNamespaceSourceReference)
219 **out = **in
220 }
221 out.Interval = in.Interval
222 if in.KubeConfig != nil {
223 in, out := &in.KubeConfig, &out.KubeConfig
224 *out = new(meta.KubeConfigReference)
225 **out = **in
226 }
227 if in.DependsOn != nil {
228 in, out := &in.DependsOn, &out.DependsOn
229 *out = make([]meta.NamespacedObjectReference, len(*in))
230 copy(*out, *in)
231 }
232 if in.Timeout != nil {
233 in, out := &in.Timeout, &out.Timeout
234 *out = new(metav1.Duration)
235 **out = **in
236 }
237 if in.MaxHistory != nil {
238 in, out := &in.MaxHistory, &out.MaxHistory
239 *out = new(int)
240 **out = **in
241 }
242 if in.PersistentClient != nil {
243 in, out := &in.PersistentClient, &out.PersistentClient
244 *out = new(bool)
245 **out = **in
246 }
247 if in.DriftDetection != nil {
248 in, out := &in.DriftDetection, &out.DriftDetection
249 *out = new(v2beta2.DriftDetection)
250 (*in).DeepCopyInto(*out)
251 }
252 if in.Install != nil {
253 in, out := &in.Install, &out.Install
254 *out = new(Install)
255 (*in).DeepCopyInto(*out)
256 }
257 if in.Upgrade != nil {
258 in, out := &in.Upgrade, &out.Upgrade
259 *out = new(Upgrade)
260 (*in).DeepCopyInto(*out)
261 }
262 if in.Test != nil {
263 in, out := &in.Test, &out.Test
264 *out = new(Test)
265 (*in).DeepCopyInto(*out)
266 }
267 if in.Rollback != nil {
268 in, out := &in.Rollback, &out.Rollback
269 *out = new(Rollback)
270 (*in).DeepCopyInto(*out)
271 }
272 if in.Uninstall != nil {
273 in, out := &in.Uninstall, &out.Uninstall
274 *out = new(Uninstall)
275 (*in).DeepCopyInto(*out)
276 }
277 if in.ValuesFrom != nil {
278 in, out := &in.ValuesFrom, &out.ValuesFrom
279 *out = make([]ValuesReference, len(*in))
280 copy(*out, *in)
281 }
282 if in.Values != nil {
283 in, out := &in.Values, &out.Values
284 *out = new(v1.JSON)
285 (*in).DeepCopyInto(*out)
286 }
287 if in.PostRenderers != nil {
288 in, out := &in.PostRenderers, &out.PostRenderers
289 *out = make([]PostRenderer, len(*in))
290 for i := range *in {
291 (*in)[i].DeepCopyInto(&(*out)[i])
292 }
293 }
294 }
295
296
297 func (in *HelmReleaseSpec) DeepCopy() *HelmReleaseSpec {
298 if in == nil {
299 return nil
300 }
301 out := new(HelmReleaseSpec)
302 in.DeepCopyInto(out)
303 return out
304 }
305
306
307 func (in *HelmReleaseStatus) DeepCopyInto(out *HelmReleaseStatus) {
308 *out = *in
309 out.ReconcileRequestStatus = in.ReconcileRequestStatus
310 if in.Conditions != nil {
311 in, out := &in.Conditions, &out.Conditions
312 *out = make([]metav1.Condition, len(*in))
313 for i := range *in {
314 (*in)[i].DeepCopyInto(&(*out)[i])
315 }
316 }
317 if in.History != nil {
318 in, out := &in.History, &out.History
319 *out = make(v2.Snapshots, len(*in))
320 for i := range *in {
321 if (*in)[i] != nil {
322 in, out := &(*in)[i], &(*out)[i]
323 *out = new(v2.Snapshot)
324 (*in).DeepCopyInto(*out)
325 }
326 }
327 }
328 }
329
330
331 func (in *HelmReleaseStatus) DeepCopy() *HelmReleaseStatus {
332 if in == nil {
333 return nil
334 }
335 out := new(HelmReleaseStatus)
336 in.DeepCopyInto(out)
337 return out
338 }
339
340
341 func (in *Install) DeepCopyInto(out *Install) {
342 *out = *in
343 if in.Timeout != nil {
344 in, out := &in.Timeout, &out.Timeout
345 *out = new(metav1.Duration)
346 **out = **in
347 }
348 if in.Remediation != nil {
349 in, out := &in.Remediation, &out.Remediation
350 *out = new(InstallRemediation)
351 (*in).DeepCopyInto(*out)
352 }
353 }
354
355
356 func (in *Install) DeepCopy() *Install {
357 if in == nil {
358 return nil
359 }
360 out := new(Install)
361 in.DeepCopyInto(out)
362 return out
363 }
364
365
366 func (in *InstallRemediation) DeepCopyInto(out *InstallRemediation) {
367 *out = *in
368 if in.IgnoreTestFailures != nil {
369 in, out := &in.IgnoreTestFailures, &out.IgnoreTestFailures
370 *out = new(bool)
371 **out = **in
372 }
373 if in.RemediateLastFailure != nil {
374 in, out := &in.RemediateLastFailure, &out.RemediateLastFailure
375 *out = new(bool)
376 **out = **in
377 }
378 }
379
380
381 func (in *InstallRemediation) DeepCopy() *InstallRemediation {
382 if in == nil {
383 return nil
384 }
385 out := new(InstallRemediation)
386 in.DeepCopyInto(out)
387 return out
388 }
389
390
391 func (in *Kustomize) DeepCopyInto(out *Kustomize) {
392 *out = *in
393 if in.Patches != nil {
394 in, out := &in.Patches, &out.Patches
395 *out = make([]kustomize.Patch, len(*in))
396 for i := range *in {
397 (*in)[i].DeepCopyInto(&(*out)[i])
398 }
399 }
400 if in.PatchesStrategicMerge != nil {
401 in, out := &in.PatchesStrategicMerge, &out.PatchesStrategicMerge
402 *out = make([]v1.JSON, len(*in))
403 for i := range *in {
404 (*in)[i].DeepCopyInto(&(*out)[i])
405 }
406 }
407 if in.PatchesJSON6902 != nil {
408 in, out := &in.PatchesJSON6902, &out.PatchesJSON6902
409 *out = make([]kustomize.JSON6902Patch, len(*in))
410 for i := range *in {
411 (*in)[i].DeepCopyInto(&(*out)[i])
412 }
413 }
414 if in.Images != nil {
415 in, out := &in.Images, &out.Images
416 *out = make([]kustomize.Image, len(*in))
417 copy(*out, *in)
418 }
419 }
420
421
422 func (in *Kustomize) DeepCopy() *Kustomize {
423 if in == nil {
424 return nil
425 }
426 out := new(Kustomize)
427 in.DeepCopyInto(out)
428 return out
429 }
430
431
432 func (in *PostRenderer) DeepCopyInto(out *PostRenderer) {
433 *out = *in
434 if in.Kustomize != nil {
435 in, out := &in.Kustomize, &out.Kustomize
436 *out = new(Kustomize)
437 (*in).DeepCopyInto(*out)
438 }
439 }
440
441
442 func (in *PostRenderer) DeepCopy() *PostRenderer {
443 if in == nil {
444 return nil
445 }
446 out := new(PostRenderer)
447 in.DeepCopyInto(out)
448 return out
449 }
450
451
452 func (in *Rollback) DeepCopyInto(out *Rollback) {
453 *out = *in
454 if in.Timeout != nil {
455 in, out := &in.Timeout, &out.Timeout
456 *out = new(metav1.Duration)
457 **out = **in
458 }
459 }
460
461
462 func (in *Rollback) DeepCopy() *Rollback {
463 if in == nil {
464 return nil
465 }
466 out := new(Rollback)
467 in.DeepCopyInto(out)
468 return out
469 }
470
471
472 func (in *Test) DeepCopyInto(out *Test) {
473 *out = *in
474 if in.Timeout != nil {
475 in, out := &in.Timeout, &out.Timeout
476 *out = new(metav1.Duration)
477 **out = **in
478 }
479 }
480
481
482 func (in *Test) DeepCopy() *Test {
483 if in == nil {
484 return nil
485 }
486 out := new(Test)
487 in.DeepCopyInto(out)
488 return out
489 }
490
491
492 func (in *Uninstall) DeepCopyInto(out *Uninstall) {
493 *out = *in
494 if in.Timeout != nil {
495 in, out := &in.Timeout, &out.Timeout
496 *out = new(metav1.Duration)
497 **out = **in
498 }
499 if in.DeletionPropagation != nil {
500 in, out := &in.DeletionPropagation, &out.DeletionPropagation
501 *out = new(string)
502 **out = **in
503 }
504 }
505
506
507 func (in *Uninstall) DeepCopy() *Uninstall {
508 if in == nil {
509 return nil
510 }
511 out := new(Uninstall)
512 in.DeepCopyInto(out)
513 return out
514 }
515
516
517 func (in *Upgrade) DeepCopyInto(out *Upgrade) {
518 *out = *in
519 if in.Timeout != nil {
520 in, out := &in.Timeout, &out.Timeout
521 *out = new(metav1.Duration)
522 **out = **in
523 }
524 if in.Remediation != nil {
525 in, out := &in.Remediation, &out.Remediation
526 *out = new(UpgradeRemediation)
527 (*in).DeepCopyInto(*out)
528 }
529 }
530
531
532 func (in *Upgrade) DeepCopy() *Upgrade {
533 if in == nil {
534 return nil
535 }
536 out := new(Upgrade)
537 in.DeepCopyInto(out)
538 return out
539 }
540
541
542 func (in *UpgradeRemediation) DeepCopyInto(out *UpgradeRemediation) {
543 *out = *in
544 if in.IgnoreTestFailures != nil {
545 in, out := &in.IgnoreTestFailures, &out.IgnoreTestFailures
546 *out = new(bool)
547 **out = **in
548 }
549 if in.RemediateLastFailure != nil {
550 in, out := &in.RemediateLastFailure, &out.RemediateLastFailure
551 *out = new(bool)
552 **out = **in
553 }
554 if in.Strategy != nil {
555 in, out := &in.Strategy, &out.Strategy
556 *out = new(RemediationStrategy)
557 **out = **in
558 }
559 }
560
561
562 func (in *UpgradeRemediation) DeepCopy() *UpgradeRemediation {
563 if in == nil {
564 return nil
565 }
566 out := new(UpgradeRemediation)
567 in.DeepCopyInto(out)
568 return out
569 }
570
571
572 func (in *ValuesReference) DeepCopyInto(out *ValuesReference) {
573 *out = *in
574 }
575
576
577 func (in *ValuesReference) DeepCopy() *ValuesReference {
578 if in == nil {
579 return nil
580 }
581 out := new(ValuesReference)
582 in.DeepCopyInto(out)
583 return out
584 }
585
View as plain text