1
2
3
4
19
20
21
22 package apiextensions
23
24 import (
25 runtime "k8s.io/apimachinery/pkg/runtime"
26 )
27
28
29 func (in *CustomResourceColumnDefinition) DeepCopyInto(out *CustomResourceColumnDefinition) {
30 *out = *in
31 return
32 }
33
34
35 func (in *CustomResourceColumnDefinition) DeepCopy() *CustomResourceColumnDefinition {
36 if in == nil {
37 return nil
38 }
39 out := new(CustomResourceColumnDefinition)
40 in.DeepCopyInto(out)
41 return out
42 }
43
44
45 func (in *CustomResourceConversion) DeepCopyInto(out *CustomResourceConversion) {
46 *out = *in
47 if in.WebhookClientConfig != nil {
48 in, out := &in.WebhookClientConfig, &out.WebhookClientConfig
49 *out = new(WebhookClientConfig)
50 (*in).DeepCopyInto(*out)
51 }
52 if in.ConversionReviewVersions != nil {
53 in, out := &in.ConversionReviewVersions, &out.ConversionReviewVersions
54 *out = make([]string, len(*in))
55 copy(*out, *in)
56 }
57 return
58 }
59
60
61 func (in *CustomResourceConversion) DeepCopy() *CustomResourceConversion {
62 if in == nil {
63 return nil
64 }
65 out := new(CustomResourceConversion)
66 in.DeepCopyInto(out)
67 return out
68 }
69
70
71 func (in *CustomResourceDefinition) DeepCopyInto(out *CustomResourceDefinition) {
72 *out = *in
73 out.TypeMeta = in.TypeMeta
74 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
75 in.Spec.DeepCopyInto(&out.Spec)
76 in.Status.DeepCopyInto(&out.Status)
77 return
78 }
79
80
81 func (in *CustomResourceDefinition) DeepCopy() *CustomResourceDefinition {
82 if in == nil {
83 return nil
84 }
85 out := new(CustomResourceDefinition)
86 in.DeepCopyInto(out)
87 return out
88 }
89
90
91 func (in *CustomResourceDefinition) DeepCopyObject() runtime.Object {
92 if c := in.DeepCopy(); c != nil {
93 return c
94 }
95 return nil
96 }
97
98
99 func (in *CustomResourceDefinitionCondition) DeepCopyInto(out *CustomResourceDefinitionCondition) {
100 *out = *in
101 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
102 return
103 }
104
105
106 func (in *CustomResourceDefinitionCondition) DeepCopy() *CustomResourceDefinitionCondition {
107 if in == nil {
108 return nil
109 }
110 out := new(CustomResourceDefinitionCondition)
111 in.DeepCopyInto(out)
112 return out
113 }
114
115
116 func (in *CustomResourceDefinitionList) DeepCopyInto(out *CustomResourceDefinitionList) {
117 *out = *in
118 out.TypeMeta = in.TypeMeta
119 in.ListMeta.DeepCopyInto(&out.ListMeta)
120 if in.Items != nil {
121 in, out := &in.Items, &out.Items
122 *out = make([]CustomResourceDefinition, len(*in))
123 for i := range *in {
124 (*in)[i].DeepCopyInto(&(*out)[i])
125 }
126 }
127 return
128 }
129
130
131 func (in *CustomResourceDefinitionList) DeepCopy() *CustomResourceDefinitionList {
132 if in == nil {
133 return nil
134 }
135 out := new(CustomResourceDefinitionList)
136 in.DeepCopyInto(out)
137 return out
138 }
139
140
141 func (in *CustomResourceDefinitionList) DeepCopyObject() runtime.Object {
142 if c := in.DeepCopy(); c != nil {
143 return c
144 }
145 return nil
146 }
147
148
149 func (in *CustomResourceDefinitionNames) DeepCopyInto(out *CustomResourceDefinitionNames) {
150 *out = *in
151 if in.ShortNames != nil {
152 in, out := &in.ShortNames, &out.ShortNames
153 *out = make([]string, len(*in))
154 copy(*out, *in)
155 }
156 if in.Categories != nil {
157 in, out := &in.Categories, &out.Categories
158 *out = make([]string, len(*in))
159 copy(*out, *in)
160 }
161 return
162 }
163
164
165 func (in *CustomResourceDefinitionNames) DeepCopy() *CustomResourceDefinitionNames {
166 if in == nil {
167 return nil
168 }
169 out := new(CustomResourceDefinitionNames)
170 in.DeepCopyInto(out)
171 return out
172 }
173
174
175 func (in *CustomResourceDefinitionSpec) DeepCopyInto(out *CustomResourceDefinitionSpec) {
176 *out = *in
177 in.Names.DeepCopyInto(&out.Names)
178 if in.Validation != nil {
179 in, out := &in.Validation, &out.Validation
180 *out = new(CustomResourceValidation)
181 (*in).DeepCopyInto(*out)
182 }
183 if in.Subresources != nil {
184 in, out := &in.Subresources, &out.Subresources
185 *out = new(CustomResourceSubresources)
186 (*in).DeepCopyInto(*out)
187 }
188 if in.Versions != nil {
189 in, out := &in.Versions, &out.Versions
190 *out = make([]CustomResourceDefinitionVersion, len(*in))
191 for i := range *in {
192 (*in)[i].DeepCopyInto(&(*out)[i])
193 }
194 }
195 if in.AdditionalPrinterColumns != nil {
196 in, out := &in.AdditionalPrinterColumns, &out.AdditionalPrinterColumns
197 *out = make([]CustomResourceColumnDefinition, len(*in))
198 copy(*out, *in)
199 }
200 if in.SelectableFields != nil {
201 in, out := &in.SelectableFields, &out.SelectableFields
202 *out = make([]SelectableField, len(*in))
203 copy(*out, *in)
204 }
205 if in.Conversion != nil {
206 in, out := &in.Conversion, &out.Conversion
207 *out = new(CustomResourceConversion)
208 (*in).DeepCopyInto(*out)
209 }
210 if in.PreserveUnknownFields != nil {
211 in, out := &in.PreserveUnknownFields, &out.PreserveUnknownFields
212 *out = new(bool)
213 **out = **in
214 }
215 return
216 }
217
218
219 func (in *CustomResourceDefinitionSpec) DeepCopy() *CustomResourceDefinitionSpec {
220 if in == nil {
221 return nil
222 }
223 out := new(CustomResourceDefinitionSpec)
224 in.DeepCopyInto(out)
225 return out
226 }
227
228
229 func (in *CustomResourceDefinitionStatus) DeepCopyInto(out *CustomResourceDefinitionStatus) {
230 *out = *in
231 if in.Conditions != nil {
232 in, out := &in.Conditions, &out.Conditions
233 *out = make([]CustomResourceDefinitionCondition, len(*in))
234 for i := range *in {
235 (*in)[i].DeepCopyInto(&(*out)[i])
236 }
237 }
238 in.AcceptedNames.DeepCopyInto(&out.AcceptedNames)
239 if in.StoredVersions != nil {
240 in, out := &in.StoredVersions, &out.StoredVersions
241 *out = make([]string, len(*in))
242 copy(*out, *in)
243 }
244 return
245 }
246
247
248 func (in *CustomResourceDefinitionStatus) DeepCopy() *CustomResourceDefinitionStatus {
249 if in == nil {
250 return nil
251 }
252 out := new(CustomResourceDefinitionStatus)
253 in.DeepCopyInto(out)
254 return out
255 }
256
257
258 func (in *CustomResourceDefinitionVersion) DeepCopyInto(out *CustomResourceDefinitionVersion) {
259 *out = *in
260 if in.DeprecationWarning != nil {
261 in, out := &in.DeprecationWarning, &out.DeprecationWarning
262 *out = new(string)
263 **out = **in
264 }
265 if in.Schema != nil {
266 in, out := &in.Schema, &out.Schema
267 *out = new(CustomResourceValidation)
268 (*in).DeepCopyInto(*out)
269 }
270 if in.Subresources != nil {
271 in, out := &in.Subresources, &out.Subresources
272 *out = new(CustomResourceSubresources)
273 (*in).DeepCopyInto(*out)
274 }
275 if in.AdditionalPrinterColumns != nil {
276 in, out := &in.AdditionalPrinterColumns, &out.AdditionalPrinterColumns
277 *out = make([]CustomResourceColumnDefinition, len(*in))
278 copy(*out, *in)
279 }
280 if in.SelectableFields != nil {
281 in, out := &in.SelectableFields, &out.SelectableFields
282 *out = make([]SelectableField, len(*in))
283 copy(*out, *in)
284 }
285 return
286 }
287
288
289 func (in *CustomResourceDefinitionVersion) DeepCopy() *CustomResourceDefinitionVersion {
290 if in == nil {
291 return nil
292 }
293 out := new(CustomResourceDefinitionVersion)
294 in.DeepCopyInto(out)
295 return out
296 }
297
298
299 func (in *CustomResourceSubresourceScale) DeepCopyInto(out *CustomResourceSubresourceScale) {
300 *out = *in
301 if in.LabelSelectorPath != nil {
302 in, out := &in.LabelSelectorPath, &out.LabelSelectorPath
303 *out = new(string)
304 **out = **in
305 }
306 return
307 }
308
309
310 func (in *CustomResourceSubresourceScale) DeepCopy() *CustomResourceSubresourceScale {
311 if in == nil {
312 return nil
313 }
314 out := new(CustomResourceSubresourceScale)
315 in.DeepCopyInto(out)
316 return out
317 }
318
319
320 func (in *CustomResourceSubresourceStatus) DeepCopyInto(out *CustomResourceSubresourceStatus) {
321 *out = *in
322 return
323 }
324
325
326 func (in *CustomResourceSubresourceStatus) DeepCopy() *CustomResourceSubresourceStatus {
327 if in == nil {
328 return nil
329 }
330 out := new(CustomResourceSubresourceStatus)
331 in.DeepCopyInto(out)
332 return out
333 }
334
335
336 func (in *CustomResourceSubresources) DeepCopyInto(out *CustomResourceSubresources) {
337 *out = *in
338 if in.Status != nil {
339 in, out := &in.Status, &out.Status
340 *out = new(CustomResourceSubresourceStatus)
341 **out = **in
342 }
343 if in.Scale != nil {
344 in, out := &in.Scale, &out.Scale
345 *out = new(CustomResourceSubresourceScale)
346 (*in).DeepCopyInto(*out)
347 }
348 return
349 }
350
351
352 func (in *CustomResourceSubresources) DeepCopy() *CustomResourceSubresources {
353 if in == nil {
354 return nil
355 }
356 out := new(CustomResourceSubresources)
357 in.DeepCopyInto(out)
358 return out
359 }
360
361
362 func (in *CustomResourceValidation) DeepCopyInto(out *CustomResourceValidation) {
363 *out = *in
364 if in.OpenAPIV3Schema != nil {
365 in, out := &in.OpenAPIV3Schema, &out.OpenAPIV3Schema
366 *out = (*in).DeepCopy()
367 }
368 return
369 }
370
371
372 func (in *CustomResourceValidation) DeepCopy() *CustomResourceValidation {
373 if in == nil {
374 return nil
375 }
376 out := new(CustomResourceValidation)
377 in.DeepCopyInto(out)
378 return out
379 }
380
381
382 func (in *ExternalDocumentation) DeepCopyInto(out *ExternalDocumentation) {
383 *out = *in
384 return
385 }
386
387
388 func (in *ExternalDocumentation) DeepCopy() *ExternalDocumentation {
389 if in == nil {
390 return nil
391 }
392 out := new(ExternalDocumentation)
393 in.DeepCopyInto(out)
394 return out
395 }
396
397
398 func (in JSONSchemaDefinitions) DeepCopyInto(out *JSONSchemaDefinitions) {
399 {
400 in := &in
401 *out = make(JSONSchemaDefinitions, len(*in))
402 for key, val := range *in {
403 (*out)[key] = *val.DeepCopy()
404 }
405 return
406 }
407 }
408
409
410 func (in JSONSchemaDefinitions) DeepCopy() JSONSchemaDefinitions {
411 if in == nil {
412 return nil
413 }
414 out := new(JSONSchemaDefinitions)
415 in.DeepCopyInto(out)
416 return *out
417 }
418
419
420 func (in JSONSchemaDependencies) DeepCopyInto(out *JSONSchemaDependencies) {
421 {
422 in := &in
423 *out = make(JSONSchemaDependencies, len(*in))
424 for key, val := range *in {
425 (*out)[key] = *val.DeepCopy()
426 }
427 return
428 }
429 }
430
431
432 func (in JSONSchemaDependencies) DeepCopy() JSONSchemaDependencies {
433 if in == nil {
434 return nil
435 }
436 out := new(JSONSchemaDependencies)
437 in.DeepCopyInto(out)
438 return *out
439 }
440
441
442 func (in *JSONSchemaProps) DeepCopyInto(out *JSONSchemaProps) {
443 clone := in.DeepCopy()
444 *out = *clone
445 return
446 }
447
448
449 func (in *JSONSchemaPropsOrArray) DeepCopyInto(out *JSONSchemaPropsOrArray) {
450 *out = *in
451 if in.Schema != nil {
452 in, out := &in.Schema, &out.Schema
453 *out = (*in).DeepCopy()
454 }
455 if in.JSONSchemas != nil {
456 in, out := &in.JSONSchemas, &out.JSONSchemas
457 *out = make([]JSONSchemaProps, len(*in))
458 for i := range *in {
459 (*in)[i].DeepCopyInto(&(*out)[i])
460 }
461 }
462 return
463 }
464
465
466 func (in *JSONSchemaPropsOrArray) DeepCopy() *JSONSchemaPropsOrArray {
467 if in == nil {
468 return nil
469 }
470 out := new(JSONSchemaPropsOrArray)
471 in.DeepCopyInto(out)
472 return out
473 }
474
475
476 func (in *JSONSchemaPropsOrBool) DeepCopyInto(out *JSONSchemaPropsOrBool) {
477 *out = *in
478 if in.Schema != nil {
479 in, out := &in.Schema, &out.Schema
480 *out = (*in).DeepCopy()
481 }
482 return
483 }
484
485
486 func (in *JSONSchemaPropsOrBool) DeepCopy() *JSONSchemaPropsOrBool {
487 if in == nil {
488 return nil
489 }
490 out := new(JSONSchemaPropsOrBool)
491 in.DeepCopyInto(out)
492 return out
493 }
494
495
496 func (in *JSONSchemaPropsOrStringArray) DeepCopyInto(out *JSONSchemaPropsOrStringArray) {
497 *out = *in
498 if in.Schema != nil {
499 in, out := &in.Schema, &out.Schema
500 *out = (*in).DeepCopy()
501 }
502 if in.Property != nil {
503 in, out := &in.Property, &out.Property
504 *out = make([]string, len(*in))
505 copy(*out, *in)
506 }
507 return
508 }
509
510
511 func (in *JSONSchemaPropsOrStringArray) DeepCopy() *JSONSchemaPropsOrStringArray {
512 if in == nil {
513 return nil
514 }
515 out := new(JSONSchemaPropsOrStringArray)
516 in.DeepCopyInto(out)
517 return out
518 }
519
520
521 func (in *SelectableField) DeepCopyInto(out *SelectableField) {
522 *out = *in
523 return
524 }
525
526
527 func (in *SelectableField) DeepCopy() *SelectableField {
528 if in == nil {
529 return nil
530 }
531 out := new(SelectableField)
532 in.DeepCopyInto(out)
533 return out
534 }
535
536
537 func (in *ServiceReference) DeepCopyInto(out *ServiceReference) {
538 *out = *in
539 if in.Path != nil {
540 in, out := &in.Path, &out.Path
541 *out = new(string)
542 **out = **in
543 }
544 return
545 }
546
547
548 func (in *ServiceReference) DeepCopy() *ServiceReference {
549 if in == nil {
550 return nil
551 }
552 out := new(ServiceReference)
553 in.DeepCopyInto(out)
554 return out
555 }
556
557
558 func (in *ValidationRule) DeepCopyInto(out *ValidationRule) {
559 *out = *in
560 if in.Reason != nil {
561 in, out := &in.Reason, &out.Reason
562 *out = new(FieldValueErrorReason)
563 **out = **in
564 }
565 if in.OptionalOldSelf != nil {
566 in, out := &in.OptionalOldSelf, &out.OptionalOldSelf
567 *out = new(bool)
568 **out = **in
569 }
570 return
571 }
572
573
574 func (in *ValidationRule) DeepCopy() *ValidationRule {
575 if in == nil {
576 return nil
577 }
578 out := new(ValidationRule)
579 in.DeepCopyInto(out)
580 return out
581 }
582
583
584 func (in ValidationRules) DeepCopyInto(out *ValidationRules) {
585 {
586 in := &in
587 *out = make(ValidationRules, len(*in))
588 for i := range *in {
589 (*in)[i].DeepCopyInto(&(*out)[i])
590 }
591 return
592 }
593 }
594
595
596 func (in ValidationRules) DeepCopy() ValidationRules {
597 if in == nil {
598 return nil
599 }
600 out := new(ValidationRules)
601 in.DeepCopyInto(out)
602 return *out
603 }
604
605
606 func (in *WebhookClientConfig) DeepCopyInto(out *WebhookClientConfig) {
607 *out = *in
608 if in.URL != nil {
609 in, out := &in.URL, &out.URL
610 *out = new(string)
611 **out = **in
612 }
613 if in.Service != nil {
614 in, out := &in.Service, &out.Service
615 *out = new(ServiceReference)
616 (*in).DeepCopyInto(*out)
617 }
618 if in.CABundle != nil {
619 in, out := &in.CABundle, &out.CABundle
620 *out = make([]byte, len(*in))
621 copy(*out, *in)
622 }
623 return
624 }
625
626
627 func (in *WebhookClientConfig) DeepCopy() *WebhookClientConfig {
628 if in == nil {
629 return nil
630 }
631 out := new(WebhookClientConfig)
632 in.DeepCopyInto(out)
633 return out
634 }
635
View as plain text