1 // +build !ignore_autogenerated
4 Copyright The Kubernetes Authors.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
19 // Code generated by deepcopy-gen. DO NOT EDIT.
24 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
25 runtime "k8s.io/apimachinery/pkg/runtime"
28 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
29 func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) {
34 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.
35 func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference {
39 out := new(CrossVersionObjectReference)
44 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
45 func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) {
47 if in.MetricSelector != nil {
48 in, out := &in.MetricSelector, &out.MetricSelector
49 *out = new(metav1.LabelSelector)
50 (*in).DeepCopyInto(*out)
52 if in.TargetValue != nil {
53 in, out := &in.TargetValue, &out.TargetValue
57 if in.TargetAverageValue != nil {
58 in, out := &in.TargetAverageValue, &out.TargetAverageValue
65 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource.
66 func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource {
70 out := new(ExternalMetricSource)
75 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
76 func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) {
78 if in.MetricSelector != nil {
79 in, out := &in.MetricSelector, &out.MetricSelector
80 *out = new(metav1.LabelSelector)
81 (*in).DeepCopyInto(*out)
83 out.CurrentValue = in.CurrentValue.DeepCopy()
84 if in.CurrentAverageValue != nil {
85 in, out := &in.CurrentAverageValue, &out.CurrentAverageValue
92 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus.
93 func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus {
97 out := new(ExternalMetricStatus)
102 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
103 func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) {
105 out.TypeMeta = in.TypeMeta
106 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
107 in.Spec.DeepCopyInto(&out.Spec)
108 in.Status.DeepCopyInto(&out.Status)
112 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler.
113 func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler {
117 out := new(HorizontalPodAutoscaler)
122 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
123 func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object {
124 if c := in.DeepCopy(); c != nil {
130 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
131 func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) {
133 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
137 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition.
138 func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition {
142 out := new(HorizontalPodAutoscalerCondition)
147 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
148 func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) {
150 out.TypeMeta = in.TypeMeta
151 out.ListMeta = in.ListMeta
153 in, out := &in.Items, &out.Items
154 *out = make([]HorizontalPodAutoscaler, len(*in))
156 (*in)[i].DeepCopyInto(&(*out)[i])
162 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList.
163 func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList {
167 out := new(HorizontalPodAutoscalerList)
172 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
173 func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object {
174 if c := in.DeepCopy(); c != nil {
180 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
181 func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
183 out.ScaleTargetRef = in.ScaleTargetRef
184 if in.MinReplicas != nil {
185 in, out := &in.MinReplicas, &out.MinReplicas
189 if in.TargetCPUUtilizationPercentage != nil {
190 in, out := &in.TargetCPUUtilizationPercentage, &out.TargetCPUUtilizationPercentage
197 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
198 func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
202 out := new(HorizontalPodAutoscalerSpec)
207 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
208 func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
210 if in.ObservedGeneration != nil {
211 in, out := &in.ObservedGeneration, &out.ObservedGeneration
215 if in.LastScaleTime != nil {
216 in, out := &in.LastScaleTime, &out.LastScaleTime
217 *out = (*in).DeepCopy()
219 if in.CurrentCPUUtilizationPercentage != nil {
220 in, out := &in.CurrentCPUUtilizationPercentage, &out.CurrentCPUUtilizationPercentage
227 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
228 func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
232 out := new(HorizontalPodAutoscalerStatus)
237 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
238 func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
240 if in.Object != nil {
241 in, out := &in.Object, &out.Object
242 *out = new(ObjectMetricSource)
243 (*in).DeepCopyInto(*out)
246 in, out := &in.Pods, &out.Pods
247 *out = new(PodsMetricSource)
248 (*in).DeepCopyInto(*out)
250 if in.Resource != nil {
251 in, out := &in.Resource, &out.Resource
252 *out = new(ResourceMetricSource)
253 (*in).DeepCopyInto(*out)
255 if in.External != nil {
256 in, out := &in.External, &out.External
257 *out = new(ExternalMetricSource)
258 (*in).DeepCopyInto(*out)
263 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
264 func (in *MetricSpec) DeepCopy() *MetricSpec {
268 out := new(MetricSpec)
273 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
274 func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
276 if in.Object != nil {
277 in, out := &in.Object, &out.Object
278 *out = new(ObjectMetricStatus)
279 (*in).DeepCopyInto(*out)
282 in, out := &in.Pods, &out.Pods
283 *out = new(PodsMetricStatus)
284 (*in).DeepCopyInto(*out)
286 if in.Resource != nil {
287 in, out := &in.Resource, &out.Resource
288 *out = new(ResourceMetricStatus)
289 (*in).DeepCopyInto(*out)
291 if in.External != nil {
292 in, out := &in.External, &out.External
293 *out = new(ExternalMetricStatus)
294 (*in).DeepCopyInto(*out)
299 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
300 func (in *MetricStatus) DeepCopy() *MetricStatus {
304 out := new(MetricStatus)
309 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
310 func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
312 out.Target = in.Target
313 out.TargetValue = in.TargetValue.DeepCopy()
314 if in.Selector != nil {
315 in, out := &in.Selector, &out.Selector
316 *out = new(metav1.LabelSelector)
317 (*in).DeepCopyInto(*out)
319 if in.AverageValue != nil {
320 in, out := &in.AverageValue, &out.AverageValue
321 x := (*in).DeepCopy()
327 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
328 func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
332 out := new(ObjectMetricSource)
337 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
338 func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
340 out.Target = in.Target
341 out.CurrentValue = in.CurrentValue.DeepCopy()
342 if in.Selector != nil {
343 in, out := &in.Selector, &out.Selector
344 *out = new(metav1.LabelSelector)
345 (*in).DeepCopyInto(*out)
347 if in.AverageValue != nil {
348 in, out := &in.AverageValue, &out.AverageValue
349 x := (*in).DeepCopy()
355 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
356 func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
360 out := new(ObjectMetricStatus)
365 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
366 func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
368 out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
369 if in.Selector != nil {
370 in, out := &in.Selector, &out.Selector
371 *out = new(metav1.LabelSelector)
372 (*in).DeepCopyInto(*out)
377 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
378 func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
382 out := new(PodsMetricSource)
387 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
388 func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
390 out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
391 if in.Selector != nil {
392 in, out := &in.Selector, &out.Selector
393 *out = new(metav1.LabelSelector)
394 (*in).DeepCopyInto(*out)
399 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
400 func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
404 out := new(PodsMetricStatus)
409 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
410 func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
412 if in.TargetAverageUtilization != nil {
413 in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
417 if in.TargetAverageValue != nil {
418 in, out := &in.TargetAverageValue, &out.TargetAverageValue
419 x := (*in).DeepCopy()
425 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
426 func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
430 out := new(ResourceMetricSource)
435 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
436 func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
438 if in.CurrentAverageUtilization != nil {
439 in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
443 out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
447 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
448 func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
452 out := new(ResourceMetricStatus)
457 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
458 func (in *Scale) DeepCopyInto(out *Scale) {
460 out.TypeMeta = in.TypeMeta
461 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
463 out.Status = in.Status
467 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scale.
468 func (in *Scale) DeepCopy() *Scale {
477 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
478 func (in *Scale) DeepCopyObject() runtime.Object {
479 if c := in.DeepCopy(); c != nil {
485 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
486 func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) {
491 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec.
492 func (in *ScaleSpec) DeepCopy() *ScaleSpec {
496 out := new(ScaleSpec)
501 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
502 func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) {
507 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus.
508 func (in *ScaleStatus) DeepCopy() *ScaleStatus {
512 out := new(ScaleStatus)