...
Source file
src/k8s.io/api/node/v1/zz_generated.deepcopy.go
1
2
3
4
19
20
21
22 package v1
23
24 import (
25 corev1 "k8s.io/api/core/v1"
26 runtime "k8s.io/apimachinery/pkg/runtime"
27 )
28
29
30 func (in *Overhead) DeepCopyInto(out *Overhead) {
31 *out = *in
32 if in.PodFixed != nil {
33 in, out := &in.PodFixed, &out.PodFixed
34 *out = make(corev1.ResourceList, len(*in))
35 for key, val := range *in {
36 (*out)[key] = val.DeepCopy()
37 }
38 }
39 return
40 }
41
42
43 func (in *Overhead) DeepCopy() *Overhead {
44 if in == nil {
45 return nil
46 }
47 out := new(Overhead)
48 in.DeepCopyInto(out)
49 return out
50 }
51
52
53 func (in *RuntimeClass) DeepCopyInto(out *RuntimeClass) {
54 *out = *in
55 out.TypeMeta = in.TypeMeta
56 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
57 if in.Overhead != nil {
58 in, out := &in.Overhead, &out.Overhead
59 *out = new(Overhead)
60 (*in).DeepCopyInto(*out)
61 }
62 if in.Scheduling != nil {
63 in, out := &in.Scheduling, &out.Scheduling
64 *out = new(Scheduling)
65 (*in).DeepCopyInto(*out)
66 }
67 return
68 }
69
70
71 func (in *RuntimeClass) DeepCopy() *RuntimeClass {
72 if in == nil {
73 return nil
74 }
75 out := new(RuntimeClass)
76 in.DeepCopyInto(out)
77 return out
78 }
79
80
81 func (in *RuntimeClass) DeepCopyObject() runtime.Object {
82 if c := in.DeepCopy(); c != nil {
83 return c
84 }
85 return nil
86 }
87
88
89 func (in *RuntimeClassList) DeepCopyInto(out *RuntimeClassList) {
90 *out = *in
91 out.TypeMeta = in.TypeMeta
92 in.ListMeta.DeepCopyInto(&out.ListMeta)
93 if in.Items != nil {
94 in, out := &in.Items, &out.Items
95 *out = make([]RuntimeClass, len(*in))
96 for i := range *in {
97 (*in)[i].DeepCopyInto(&(*out)[i])
98 }
99 }
100 return
101 }
102
103
104 func (in *RuntimeClassList) DeepCopy() *RuntimeClassList {
105 if in == nil {
106 return nil
107 }
108 out := new(RuntimeClassList)
109 in.DeepCopyInto(out)
110 return out
111 }
112
113
114 func (in *RuntimeClassList) DeepCopyObject() runtime.Object {
115 if c := in.DeepCopy(); c != nil {
116 return c
117 }
118 return nil
119 }
120
121
122 func (in *Scheduling) DeepCopyInto(out *Scheduling) {
123 *out = *in
124 if in.NodeSelector != nil {
125 in, out := &in.NodeSelector, &out.NodeSelector
126 *out = make(map[string]string, len(*in))
127 for key, val := range *in {
128 (*out)[key] = val
129 }
130 }
131 if in.Tolerations != nil {
132 in, out := &in.Tolerations, &out.Tolerations
133 *out = make([]corev1.Toleration, len(*in))
134 for i := range *in {
135 (*in)[i].DeepCopyInto(&(*out)[i])
136 }
137 }
138 return
139 }
140
141
142 func (in *Scheduling) DeepCopy() *Scheduling {
143 if in == nil {
144 return nil
145 }
146 out := new(Scheduling)
147 in.DeepCopyInto(out)
148 return out
149 }
150
View as plain text