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 )
29
30
31 func (in *CSIDriver) DeepCopyInto(out *CSIDriver) {
32 *out = *in
33 out.TypeMeta = in.TypeMeta
34 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
35 in.Spec.DeepCopyInto(&out.Spec)
36 return
37 }
38
39
40 func (in *CSIDriver) DeepCopy() *CSIDriver {
41 if in == nil {
42 return nil
43 }
44 out := new(CSIDriver)
45 in.DeepCopyInto(out)
46 return out
47 }
48
49
50 func (in *CSIDriver) DeepCopyObject() runtime.Object {
51 if c := in.DeepCopy(); c != nil {
52 return c
53 }
54 return nil
55 }
56
57
58 func (in *CSIDriverList) DeepCopyInto(out *CSIDriverList) {
59 *out = *in
60 out.TypeMeta = in.TypeMeta
61 in.ListMeta.DeepCopyInto(&out.ListMeta)
62 if in.Items != nil {
63 in, out := &in.Items, &out.Items
64 *out = make([]CSIDriver, len(*in))
65 for i := range *in {
66 (*in)[i].DeepCopyInto(&(*out)[i])
67 }
68 }
69 return
70 }
71
72
73 func (in *CSIDriverList) DeepCopy() *CSIDriverList {
74 if in == nil {
75 return nil
76 }
77 out := new(CSIDriverList)
78 in.DeepCopyInto(out)
79 return out
80 }
81
82
83 func (in *CSIDriverList) DeepCopyObject() runtime.Object {
84 if c := in.DeepCopy(); c != nil {
85 return c
86 }
87 return nil
88 }
89
90
91 func (in *CSIDriverSpec) DeepCopyInto(out *CSIDriverSpec) {
92 *out = *in
93 if in.AttachRequired != nil {
94 in, out := &in.AttachRequired, &out.AttachRequired
95 *out = new(bool)
96 **out = **in
97 }
98 if in.PodInfoOnMount != nil {
99 in, out := &in.PodInfoOnMount, &out.PodInfoOnMount
100 *out = new(bool)
101 **out = **in
102 }
103 if in.VolumeLifecycleModes != nil {
104 in, out := &in.VolumeLifecycleModes, &out.VolumeLifecycleModes
105 *out = make([]VolumeLifecycleMode, len(*in))
106 copy(*out, *in)
107 }
108 if in.StorageCapacity != nil {
109 in, out := &in.StorageCapacity, &out.StorageCapacity
110 *out = new(bool)
111 **out = **in
112 }
113 if in.FSGroupPolicy != nil {
114 in, out := &in.FSGroupPolicy, &out.FSGroupPolicy
115 *out = new(FSGroupPolicy)
116 **out = **in
117 }
118 if in.TokenRequests != nil {
119 in, out := &in.TokenRequests, &out.TokenRequests
120 *out = make([]TokenRequest, len(*in))
121 for i := range *in {
122 (*in)[i].DeepCopyInto(&(*out)[i])
123 }
124 }
125 if in.RequiresRepublish != nil {
126 in, out := &in.RequiresRepublish, &out.RequiresRepublish
127 *out = new(bool)
128 **out = **in
129 }
130 if in.SELinuxMount != nil {
131 in, out := &in.SELinuxMount, &out.SELinuxMount
132 *out = new(bool)
133 **out = **in
134 }
135 return
136 }
137
138
139 func (in *CSIDriverSpec) DeepCopy() *CSIDriverSpec {
140 if in == nil {
141 return nil
142 }
143 out := new(CSIDriverSpec)
144 in.DeepCopyInto(out)
145 return out
146 }
147
148
149 func (in *CSINode) DeepCopyInto(out *CSINode) {
150 *out = *in
151 out.TypeMeta = in.TypeMeta
152 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
153 in.Spec.DeepCopyInto(&out.Spec)
154 return
155 }
156
157
158 func (in *CSINode) DeepCopy() *CSINode {
159 if in == nil {
160 return nil
161 }
162 out := new(CSINode)
163 in.DeepCopyInto(out)
164 return out
165 }
166
167
168 func (in *CSINode) DeepCopyObject() runtime.Object {
169 if c := in.DeepCopy(); c != nil {
170 return c
171 }
172 return nil
173 }
174
175
176 func (in *CSINodeDriver) DeepCopyInto(out *CSINodeDriver) {
177 *out = *in
178 if in.TopologyKeys != nil {
179 in, out := &in.TopologyKeys, &out.TopologyKeys
180 *out = make([]string, len(*in))
181 copy(*out, *in)
182 }
183 if in.Allocatable != nil {
184 in, out := &in.Allocatable, &out.Allocatable
185 *out = new(VolumeNodeResources)
186 (*in).DeepCopyInto(*out)
187 }
188 return
189 }
190
191
192 func (in *CSINodeDriver) DeepCopy() *CSINodeDriver {
193 if in == nil {
194 return nil
195 }
196 out := new(CSINodeDriver)
197 in.DeepCopyInto(out)
198 return out
199 }
200
201
202 func (in *CSINodeList) DeepCopyInto(out *CSINodeList) {
203 *out = *in
204 out.TypeMeta = in.TypeMeta
205 in.ListMeta.DeepCopyInto(&out.ListMeta)
206 if in.Items != nil {
207 in, out := &in.Items, &out.Items
208 *out = make([]CSINode, len(*in))
209 for i := range *in {
210 (*in)[i].DeepCopyInto(&(*out)[i])
211 }
212 }
213 return
214 }
215
216
217 func (in *CSINodeList) DeepCopy() *CSINodeList {
218 if in == nil {
219 return nil
220 }
221 out := new(CSINodeList)
222 in.DeepCopyInto(out)
223 return out
224 }
225
226
227 func (in *CSINodeList) DeepCopyObject() runtime.Object {
228 if c := in.DeepCopy(); c != nil {
229 return c
230 }
231 return nil
232 }
233
234
235 func (in *CSINodeSpec) DeepCopyInto(out *CSINodeSpec) {
236 *out = *in
237 if in.Drivers != nil {
238 in, out := &in.Drivers, &out.Drivers
239 *out = make([]CSINodeDriver, len(*in))
240 for i := range *in {
241 (*in)[i].DeepCopyInto(&(*out)[i])
242 }
243 }
244 return
245 }
246
247
248 func (in *CSINodeSpec) DeepCopy() *CSINodeSpec {
249 if in == nil {
250 return nil
251 }
252 out := new(CSINodeSpec)
253 in.DeepCopyInto(out)
254 return out
255 }
256
257
258 func (in *CSIStorageCapacity) DeepCopyInto(out *CSIStorageCapacity) {
259 *out = *in
260 out.TypeMeta = in.TypeMeta
261 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
262 if in.NodeTopology != nil {
263 in, out := &in.NodeTopology, &out.NodeTopology
264 *out = new(metav1.LabelSelector)
265 (*in).DeepCopyInto(*out)
266 }
267 if in.Capacity != nil {
268 in, out := &in.Capacity, &out.Capacity
269 x := (*in).DeepCopy()
270 *out = &x
271 }
272 if in.MaximumVolumeSize != nil {
273 in, out := &in.MaximumVolumeSize, &out.MaximumVolumeSize
274 x := (*in).DeepCopy()
275 *out = &x
276 }
277 return
278 }
279
280
281 func (in *CSIStorageCapacity) DeepCopy() *CSIStorageCapacity {
282 if in == nil {
283 return nil
284 }
285 out := new(CSIStorageCapacity)
286 in.DeepCopyInto(out)
287 return out
288 }
289
290
291 func (in *CSIStorageCapacity) DeepCopyObject() runtime.Object {
292 if c := in.DeepCopy(); c != nil {
293 return c
294 }
295 return nil
296 }
297
298
299 func (in *CSIStorageCapacityList) DeepCopyInto(out *CSIStorageCapacityList) {
300 *out = *in
301 out.TypeMeta = in.TypeMeta
302 in.ListMeta.DeepCopyInto(&out.ListMeta)
303 if in.Items != nil {
304 in, out := &in.Items, &out.Items
305 *out = make([]CSIStorageCapacity, len(*in))
306 for i := range *in {
307 (*in)[i].DeepCopyInto(&(*out)[i])
308 }
309 }
310 return
311 }
312
313
314 func (in *CSIStorageCapacityList) DeepCopy() *CSIStorageCapacityList {
315 if in == nil {
316 return nil
317 }
318 out := new(CSIStorageCapacityList)
319 in.DeepCopyInto(out)
320 return out
321 }
322
323
324 func (in *CSIStorageCapacityList) DeepCopyObject() runtime.Object {
325 if c := in.DeepCopy(); c != nil {
326 return c
327 }
328 return nil
329 }
330
331
332 func (in *StorageClass) DeepCopyInto(out *StorageClass) {
333 *out = *in
334 out.TypeMeta = in.TypeMeta
335 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
336 if in.Parameters != nil {
337 in, out := &in.Parameters, &out.Parameters
338 *out = make(map[string]string, len(*in))
339 for key, val := range *in {
340 (*out)[key] = val
341 }
342 }
343 if in.ReclaimPolicy != nil {
344 in, out := &in.ReclaimPolicy, &out.ReclaimPolicy
345 *out = new(corev1.PersistentVolumeReclaimPolicy)
346 **out = **in
347 }
348 if in.MountOptions != nil {
349 in, out := &in.MountOptions, &out.MountOptions
350 *out = make([]string, len(*in))
351 copy(*out, *in)
352 }
353 if in.AllowVolumeExpansion != nil {
354 in, out := &in.AllowVolumeExpansion, &out.AllowVolumeExpansion
355 *out = new(bool)
356 **out = **in
357 }
358 if in.VolumeBindingMode != nil {
359 in, out := &in.VolumeBindingMode, &out.VolumeBindingMode
360 *out = new(VolumeBindingMode)
361 **out = **in
362 }
363 if in.AllowedTopologies != nil {
364 in, out := &in.AllowedTopologies, &out.AllowedTopologies
365 *out = make([]corev1.TopologySelectorTerm, len(*in))
366 for i := range *in {
367 (*in)[i].DeepCopyInto(&(*out)[i])
368 }
369 }
370 return
371 }
372
373
374 func (in *StorageClass) DeepCopy() *StorageClass {
375 if in == nil {
376 return nil
377 }
378 out := new(StorageClass)
379 in.DeepCopyInto(out)
380 return out
381 }
382
383
384 func (in *StorageClass) DeepCopyObject() runtime.Object {
385 if c := in.DeepCopy(); c != nil {
386 return c
387 }
388 return nil
389 }
390
391
392 func (in *StorageClassList) DeepCopyInto(out *StorageClassList) {
393 *out = *in
394 out.TypeMeta = in.TypeMeta
395 in.ListMeta.DeepCopyInto(&out.ListMeta)
396 if in.Items != nil {
397 in, out := &in.Items, &out.Items
398 *out = make([]StorageClass, len(*in))
399 for i := range *in {
400 (*in)[i].DeepCopyInto(&(*out)[i])
401 }
402 }
403 return
404 }
405
406
407 func (in *StorageClassList) DeepCopy() *StorageClassList {
408 if in == nil {
409 return nil
410 }
411 out := new(StorageClassList)
412 in.DeepCopyInto(out)
413 return out
414 }
415
416
417 func (in *StorageClassList) DeepCopyObject() runtime.Object {
418 if c := in.DeepCopy(); c != nil {
419 return c
420 }
421 return nil
422 }
423
424
425 func (in *TokenRequest) DeepCopyInto(out *TokenRequest) {
426 *out = *in
427 if in.ExpirationSeconds != nil {
428 in, out := &in.ExpirationSeconds, &out.ExpirationSeconds
429 *out = new(int64)
430 **out = **in
431 }
432 return
433 }
434
435
436 func (in *TokenRequest) DeepCopy() *TokenRequest {
437 if in == nil {
438 return nil
439 }
440 out := new(TokenRequest)
441 in.DeepCopyInto(out)
442 return out
443 }
444
445
446 func (in *VolumeAttachment) DeepCopyInto(out *VolumeAttachment) {
447 *out = *in
448 out.TypeMeta = in.TypeMeta
449 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
450 in.Spec.DeepCopyInto(&out.Spec)
451 in.Status.DeepCopyInto(&out.Status)
452 return
453 }
454
455
456 func (in *VolumeAttachment) DeepCopy() *VolumeAttachment {
457 if in == nil {
458 return nil
459 }
460 out := new(VolumeAttachment)
461 in.DeepCopyInto(out)
462 return out
463 }
464
465
466 func (in *VolumeAttachment) DeepCopyObject() runtime.Object {
467 if c := in.DeepCopy(); c != nil {
468 return c
469 }
470 return nil
471 }
472
473
474 func (in *VolumeAttachmentList) DeepCopyInto(out *VolumeAttachmentList) {
475 *out = *in
476 out.TypeMeta = in.TypeMeta
477 in.ListMeta.DeepCopyInto(&out.ListMeta)
478 if in.Items != nil {
479 in, out := &in.Items, &out.Items
480 *out = make([]VolumeAttachment, len(*in))
481 for i := range *in {
482 (*in)[i].DeepCopyInto(&(*out)[i])
483 }
484 }
485 return
486 }
487
488
489 func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList {
490 if in == nil {
491 return nil
492 }
493 out := new(VolumeAttachmentList)
494 in.DeepCopyInto(out)
495 return out
496 }
497
498
499 func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object {
500 if c := in.DeepCopy(); c != nil {
501 return c
502 }
503 return nil
504 }
505
506
507 func (in *VolumeAttachmentSource) DeepCopyInto(out *VolumeAttachmentSource) {
508 *out = *in
509 if in.PersistentVolumeName != nil {
510 in, out := &in.PersistentVolumeName, &out.PersistentVolumeName
511 *out = new(string)
512 **out = **in
513 }
514 if in.InlineVolumeSpec != nil {
515 in, out := &in.InlineVolumeSpec, &out.InlineVolumeSpec
516 *out = new(corev1.PersistentVolumeSpec)
517 (*in).DeepCopyInto(*out)
518 }
519 return
520 }
521
522
523 func (in *VolumeAttachmentSource) DeepCopy() *VolumeAttachmentSource {
524 if in == nil {
525 return nil
526 }
527 out := new(VolumeAttachmentSource)
528 in.DeepCopyInto(out)
529 return out
530 }
531
532
533 func (in *VolumeAttachmentSpec) DeepCopyInto(out *VolumeAttachmentSpec) {
534 *out = *in
535 in.Source.DeepCopyInto(&out.Source)
536 return
537 }
538
539
540 func (in *VolumeAttachmentSpec) DeepCopy() *VolumeAttachmentSpec {
541 if in == nil {
542 return nil
543 }
544 out := new(VolumeAttachmentSpec)
545 in.DeepCopyInto(out)
546 return out
547 }
548
549
550 func (in *VolumeAttachmentStatus) DeepCopyInto(out *VolumeAttachmentStatus) {
551 *out = *in
552 if in.AttachmentMetadata != nil {
553 in, out := &in.AttachmentMetadata, &out.AttachmentMetadata
554 *out = make(map[string]string, len(*in))
555 for key, val := range *in {
556 (*out)[key] = val
557 }
558 }
559 if in.AttachError != nil {
560 in, out := &in.AttachError, &out.AttachError
561 *out = new(VolumeError)
562 (*in).DeepCopyInto(*out)
563 }
564 if in.DetachError != nil {
565 in, out := &in.DetachError, &out.DetachError
566 *out = new(VolumeError)
567 (*in).DeepCopyInto(*out)
568 }
569 return
570 }
571
572
573 func (in *VolumeAttachmentStatus) DeepCopy() *VolumeAttachmentStatus {
574 if in == nil {
575 return nil
576 }
577 out := new(VolumeAttachmentStatus)
578 in.DeepCopyInto(out)
579 return out
580 }
581
582
583 func (in *VolumeError) DeepCopyInto(out *VolumeError) {
584 *out = *in
585 in.Time.DeepCopyInto(&out.Time)
586 return
587 }
588
589
590 func (in *VolumeError) DeepCopy() *VolumeError {
591 if in == nil {
592 return nil
593 }
594 out := new(VolumeError)
595 in.DeepCopyInto(out)
596 return out
597 }
598
599
600 func (in *VolumeNodeResources) DeepCopyInto(out *VolumeNodeResources) {
601 *out = *in
602 if in.Count != nil {
603 in, out := &in.Count, &out.Count
604 *out = new(int32)
605 **out = **in
606 }
607 return
608 }
609
610
611 func (in *VolumeNodeResources) DeepCopy() *VolumeNodeResources {
612 if in == nil {
613 return nil
614 }
615 out := new(VolumeNodeResources)
616 in.DeepCopyInto(out)
617 return out
618 }
619
View as plain text