blob: fd46bd8921c9f6fe5a8a1f84932e1e0bbcae11eb [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001// +build !ignore_autogenerated
2
3/*
4Copyright The Kubernetes Authors.
5
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing, software
13distributed under the License is distributed on an "AS IS" BASIS,
14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15See the License for the specific language governing permissions and
16limitations under the License.
17*/
18
19// Code generated by deepcopy-gen. DO NOT EDIT.
20
21package v2beta1
22
23import (
24 v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
25 runtime "k8s.io/apimachinery/pkg/runtime"
26)
27
28// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
29func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) {
30 *out = *in
31 return
32}
33
34// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.
35func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference {
36 if in == nil {
37 return nil
38 }
39 out := new(CrossVersionObjectReference)
40 in.DeepCopyInto(out)
41 return out
42}
43
44// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
45func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) {
46 *out = *in
47 if in.MetricSelector != nil {
48 in, out := &in.MetricSelector, &out.MetricSelector
49 if *in == nil {
50 *out = nil
51 } else {
52 *out = new(v1.LabelSelector)
53 (*in).DeepCopyInto(*out)
54 }
55 }
56 if in.TargetValue != nil {
57 in, out := &in.TargetValue, &out.TargetValue
58 if *in == nil {
59 *out = nil
60 } else {
61 x := (*in).DeepCopy()
62 *out = &x
63 }
64 }
65 if in.TargetAverageValue != nil {
66 in, out := &in.TargetAverageValue, &out.TargetAverageValue
67 if *in == nil {
68 *out = nil
69 } else {
70 x := (*in).DeepCopy()
71 *out = &x
72 }
73 }
74 return
75}
76
77// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource.
78func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource {
79 if in == nil {
80 return nil
81 }
82 out := new(ExternalMetricSource)
83 in.DeepCopyInto(out)
84 return out
85}
86
87// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
88func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) {
89 *out = *in
90 if in.MetricSelector != nil {
91 in, out := &in.MetricSelector, &out.MetricSelector
92 if *in == nil {
93 *out = nil
94 } else {
95 *out = new(v1.LabelSelector)
96 (*in).DeepCopyInto(*out)
97 }
98 }
99 out.CurrentValue = in.CurrentValue.DeepCopy()
100 if in.CurrentAverageValue != nil {
101 in, out := &in.CurrentAverageValue, &out.CurrentAverageValue
102 if *in == nil {
103 *out = nil
104 } else {
105 x := (*in).DeepCopy()
106 *out = &x
107 }
108 }
109 return
110}
111
112// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus.
113func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus {
114 if in == nil {
115 return nil
116 }
117 out := new(ExternalMetricStatus)
118 in.DeepCopyInto(out)
119 return out
120}
121
122// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
123func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) {
124 *out = *in
125 out.TypeMeta = in.TypeMeta
126 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
127 in.Spec.DeepCopyInto(&out.Spec)
128 in.Status.DeepCopyInto(&out.Status)
129 return
130}
131
132// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler.
133func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler {
134 if in == nil {
135 return nil
136 }
137 out := new(HorizontalPodAutoscaler)
138 in.DeepCopyInto(out)
139 return out
140}
141
142// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
143func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object {
144 if c := in.DeepCopy(); c != nil {
145 return c
146 }
147 return nil
148}
149
150// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
151func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) {
152 *out = *in
153 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
154 return
155}
156
157// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition.
158func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition {
159 if in == nil {
160 return nil
161 }
162 out := new(HorizontalPodAutoscalerCondition)
163 in.DeepCopyInto(out)
164 return out
165}
166
167// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
168func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) {
169 *out = *in
170 out.TypeMeta = in.TypeMeta
171 out.ListMeta = in.ListMeta
172 if in.Items != nil {
173 in, out := &in.Items, &out.Items
174 *out = make([]HorizontalPodAutoscaler, len(*in))
175 for i := range *in {
176 (*in)[i].DeepCopyInto(&(*out)[i])
177 }
178 }
179 return
180}
181
182// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList.
183func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList {
184 if in == nil {
185 return nil
186 }
187 out := new(HorizontalPodAutoscalerList)
188 in.DeepCopyInto(out)
189 return out
190}
191
192// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
193func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object {
194 if c := in.DeepCopy(); c != nil {
195 return c
196 }
197 return nil
198}
199
200// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
201func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
202 *out = *in
203 out.ScaleTargetRef = in.ScaleTargetRef
204 if in.MinReplicas != nil {
205 in, out := &in.MinReplicas, &out.MinReplicas
206 if *in == nil {
207 *out = nil
208 } else {
209 *out = new(int32)
210 **out = **in
211 }
212 }
213 if in.Metrics != nil {
214 in, out := &in.Metrics, &out.Metrics
215 *out = make([]MetricSpec, len(*in))
216 for i := range *in {
217 (*in)[i].DeepCopyInto(&(*out)[i])
218 }
219 }
220 return
221}
222
223// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
224func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
225 if in == nil {
226 return nil
227 }
228 out := new(HorizontalPodAutoscalerSpec)
229 in.DeepCopyInto(out)
230 return out
231}
232
233// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
234func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
235 *out = *in
236 if in.ObservedGeneration != nil {
237 in, out := &in.ObservedGeneration, &out.ObservedGeneration
238 if *in == nil {
239 *out = nil
240 } else {
241 *out = new(int64)
242 **out = **in
243 }
244 }
245 if in.LastScaleTime != nil {
246 in, out := &in.LastScaleTime, &out.LastScaleTime
247 if *in == nil {
248 *out = nil
249 } else {
250 *out = (*in).DeepCopy()
251 }
252 }
253 if in.CurrentMetrics != nil {
254 in, out := &in.CurrentMetrics, &out.CurrentMetrics
255 *out = make([]MetricStatus, len(*in))
256 for i := range *in {
257 (*in)[i].DeepCopyInto(&(*out)[i])
258 }
259 }
260 if in.Conditions != nil {
261 in, out := &in.Conditions, &out.Conditions
262 *out = make([]HorizontalPodAutoscalerCondition, len(*in))
263 for i := range *in {
264 (*in)[i].DeepCopyInto(&(*out)[i])
265 }
266 }
267 return
268}
269
270// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
271func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
272 if in == nil {
273 return nil
274 }
275 out := new(HorizontalPodAutoscalerStatus)
276 in.DeepCopyInto(out)
277 return out
278}
279
280// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
281func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
282 *out = *in
283 if in.Object != nil {
284 in, out := &in.Object, &out.Object
285 if *in == nil {
286 *out = nil
287 } else {
288 *out = new(ObjectMetricSource)
289 (*in).DeepCopyInto(*out)
290 }
291 }
292 if in.Pods != nil {
293 in, out := &in.Pods, &out.Pods
294 if *in == nil {
295 *out = nil
296 } else {
297 *out = new(PodsMetricSource)
298 (*in).DeepCopyInto(*out)
299 }
300 }
301 if in.Resource != nil {
302 in, out := &in.Resource, &out.Resource
303 if *in == nil {
304 *out = nil
305 } else {
306 *out = new(ResourceMetricSource)
307 (*in).DeepCopyInto(*out)
308 }
309 }
310 if in.External != nil {
311 in, out := &in.External, &out.External
312 if *in == nil {
313 *out = nil
314 } else {
315 *out = new(ExternalMetricSource)
316 (*in).DeepCopyInto(*out)
317 }
318 }
319 return
320}
321
322// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
323func (in *MetricSpec) DeepCopy() *MetricSpec {
324 if in == nil {
325 return nil
326 }
327 out := new(MetricSpec)
328 in.DeepCopyInto(out)
329 return out
330}
331
332// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
333func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
334 *out = *in
335 if in.Object != nil {
336 in, out := &in.Object, &out.Object
337 if *in == nil {
338 *out = nil
339 } else {
340 *out = new(ObjectMetricStatus)
341 (*in).DeepCopyInto(*out)
342 }
343 }
344 if in.Pods != nil {
345 in, out := &in.Pods, &out.Pods
346 if *in == nil {
347 *out = nil
348 } else {
349 *out = new(PodsMetricStatus)
350 (*in).DeepCopyInto(*out)
351 }
352 }
353 if in.Resource != nil {
354 in, out := &in.Resource, &out.Resource
355 if *in == nil {
356 *out = nil
357 } else {
358 *out = new(ResourceMetricStatus)
359 (*in).DeepCopyInto(*out)
360 }
361 }
362 if in.External != nil {
363 in, out := &in.External, &out.External
364 if *in == nil {
365 *out = nil
366 } else {
367 *out = new(ExternalMetricStatus)
368 (*in).DeepCopyInto(*out)
369 }
370 }
371 return
372}
373
374// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
375func (in *MetricStatus) DeepCopy() *MetricStatus {
376 if in == nil {
377 return nil
378 }
379 out := new(MetricStatus)
380 in.DeepCopyInto(out)
381 return out
382}
383
384// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
385func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
386 *out = *in
387 out.Target = in.Target
388 out.TargetValue = in.TargetValue.DeepCopy()
389 return
390}
391
392// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
393func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
394 if in == nil {
395 return nil
396 }
397 out := new(ObjectMetricSource)
398 in.DeepCopyInto(out)
399 return out
400}
401
402// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
403func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
404 *out = *in
405 out.Target = in.Target
406 out.CurrentValue = in.CurrentValue.DeepCopy()
407 return
408}
409
410// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
411func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
412 if in == nil {
413 return nil
414 }
415 out := new(ObjectMetricStatus)
416 in.DeepCopyInto(out)
417 return out
418}
419
420// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
421func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
422 *out = *in
423 out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
424 return
425}
426
427// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
428func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
429 if in == nil {
430 return nil
431 }
432 out := new(PodsMetricSource)
433 in.DeepCopyInto(out)
434 return out
435}
436
437// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
438func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
439 *out = *in
440 out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
441 return
442}
443
444// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
445func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
446 if in == nil {
447 return nil
448 }
449 out := new(PodsMetricStatus)
450 in.DeepCopyInto(out)
451 return out
452}
453
454// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
455func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
456 *out = *in
457 if in.TargetAverageUtilization != nil {
458 in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
459 if *in == nil {
460 *out = nil
461 } else {
462 *out = new(int32)
463 **out = **in
464 }
465 }
466 if in.TargetAverageValue != nil {
467 in, out := &in.TargetAverageValue, &out.TargetAverageValue
468 if *in == nil {
469 *out = nil
470 } else {
471 x := (*in).DeepCopy()
472 *out = &x
473 }
474 }
475 return
476}
477
478// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
479func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
480 if in == nil {
481 return nil
482 }
483 out := new(ResourceMetricSource)
484 in.DeepCopyInto(out)
485 return out
486}
487
488// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
489func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
490 *out = *in
491 if in.CurrentAverageUtilization != nil {
492 in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
493 if *in == nil {
494 *out = nil
495 } else {
496 *out = new(int32)
497 **out = **in
498 }
499 }
500 out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
501 return
502}
503
504// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
505func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
506 if in == nil {
507 return nil
508 }
509 out := new(ResourceMetricStatus)
510 in.DeepCopyInto(out)
511 return out
512}