...
1
2
3
4
19
20
21
22 package v1alpha1
23
24 import (
25 v1 "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(v1.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 in.Spec.DeepCopyInto(&out.Spec)
58 return
59 }
60
61
62 func (in *RuntimeClass) DeepCopy() *RuntimeClass {
63 if in == nil {
64 return nil
65 }
66 out := new(RuntimeClass)
67 in.DeepCopyInto(out)
68 return out
69 }
70
71
72 func (in *RuntimeClass) DeepCopyObject() runtime.Object {
73 if c := in.DeepCopy(); c != nil {
74 return c
75 }
76 return nil
77 }
78
79
80 func (in *RuntimeClassList) DeepCopyInto(out *RuntimeClassList) {
81 *out = *in
82 out.TypeMeta = in.TypeMeta
83 in.ListMeta.DeepCopyInto(&out.ListMeta)
84 if in.Items != nil {
85 in, out := &in.Items, &out.Items
86 *out = make([]RuntimeClass, len(*in))
87 for i := range *in {
88 (*in)[i].DeepCopyInto(&(*out)[i])
89 }
90 }
91 return
92 }
93
94
95 func (in *RuntimeClassList) DeepCopy() *RuntimeClassList {
96 if in == nil {
97 return nil
98 }
99 out := new(RuntimeClassList)
100 in.DeepCopyInto(out)
101 return out
102 }
103
104
105 func (in *RuntimeClassList) DeepCopyObject() runtime.Object {
106 if c := in.DeepCopy(); c != nil {
107 return c
108 }
109 return nil
110 }
111
112
113 func (in *RuntimeClassSpec) DeepCopyInto(out *RuntimeClassSpec) {
114 *out = *in
115 if in.Overhead != nil {
116 in, out := &in.Overhead, &out.Overhead
117 *out = new(Overhead)
118 (*in).DeepCopyInto(*out)
119 }
120 if in.Scheduling != nil {
121 in, out := &in.Scheduling, &out.Scheduling
122 *out = new(Scheduling)
123 (*in).DeepCopyInto(*out)
124 }
125 return
126 }
127
128
129 func (in *RuntimeClassSpec) DeepCopy() *RuntimeClassSpec {
130 if in == nil {
131 return nil
132 }
133 out := new(RuntimeClassSpec)
134 in.DeepCopyInto(out)
135 return out
136 }
137
138
139 func (in *Scheduling) DeepCopyInto(out *Scheduling) {
140 *out = *in
141 if in.NodeSelector != nil {
142 in, out := &in.NodeSelector, &out.NodeSelector
143 *out = make(map[string]string, len(*in))
144 for key, val := range *in {
145 (*out)[key] = val
146 }
147 }
148 if in.Tolerations != nil {
149 in, out := &in.Tolerations, &out.Tolerations
150 *out = make([]v1.Toleration, len(*in))
151 for i := range *in {
152 (*in)[i].DeepCopyInto(&(*out)[i])
153 }
154 }
155 return
156 }
157
158
159 func (in *Scheduling) DeepCopy() *Scheduling {
160 if in == nil {
161 return nil
162 }
163 out := new(Scheduling)
164 in.DeepCopyInto(out)
165 return out
166 }
167
View as plain text