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