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 v1 "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 in.Metric.DeepCopyInto(&out.Metric)
48 in.Target.DeepCopyInto(&out.Target)
52 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource.
53 func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource {
57 out := new(ExternalMetricSource)
62 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
63 func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) {
65 in.Metric.DeepCopyInto(&out.Metric)
66 in.Current.DeepCopyInto(&out.Current)
70 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus.
71 func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus {
75 out := new(ExternalMetricStatus)
80 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
81 func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) {
83 out.TypeMeta = in.TypeMeta
84 in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
85 in.Spec.DeepCopyInto(&out.Spec)
86 in.Status.DeepCopyInto(&out.Status)
90 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler.
91 func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler {
95 out := new(HorizontalPodAutoscaler)
100 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
101 func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object {
102 if c := in.DeepCopy(); c != nil {
108 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
109 func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) {
111 in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
115 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition.
116 func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition {
120 out := new(HorizontalPodAutoscalerCondition)
125 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
126 func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) {
128 out.TypeMeta = in.TypeMeta
129 out.ListMeta = in.ListMeta
131 in, out := &in.Items, &out.Items
132 *out = make([]HorizontalPodAutoscaler, len(*in))
134 (*in)[i].DeepCopyInto(&(*out)[i])
140 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList.
141 func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList {
145 out := new(HorizontalPodAutoscalerList)
150 // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
151 func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object {
152 if c := in.DeepCopy(); c != nil {
158 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
159 func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
161 out.ScaleTargetRef = in.ScaleTargetRef
162 if in.MinReplicas != nil {
163 in, out := &in.MinReplicas, &out.MinReplicas
167 if in.Metrics != nil {
168 in, out := &in.Metrics, &out.Metrics
169 *out = make([]MetricSpec, len(*in))
171 (*in)[i].DeepCopyInto(&(*out)[i])
177 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
178 func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
182 out := new(HorizontalPodAutoscalerSpec)
187 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
188 func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
190 if in.ObservedGeneration != nil {
191 in, out := &in.ObservedGeneration, &out.ObservedGeneration
195 if in.LastScaleTime != nil {
196 in, out := &in.LastScaleTime, &out.LastScaleTime
197 *out = (*in).DeepCopy()
199 if in.CurrentMetrics != nil {
200 in, out := &in.CurrentMetrics, &out.CurrentMetrics
201 *out = make([]MetricStatus, len(*in))
203 (*in)[i].DeepCopyInto(&(*out)[i])
206 if in.Conditions != nil {
207 in, out := &in.Conditions, &out.Conditions
208 *out = make([]HorizontalPodAutoscalerCondition, len(*in))
210 (*in)[i].DeepCopyInto(&(*out)[i])
216 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
217 func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
221 out := new(HorizontalPodAutoscalerStatus)
226 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
227 func (in *MetricIdentifier) DeepCopyInto(out *MetricIdentifier) {
229 if in.Selector != nil {
230 in, out := &in.Selector, &out.Selector
231 *out = new(v1.LabelSelector)
232 (*in).DeepCopyInto(*out)
237 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricIdentifier.
238 func (in *MetricIdentifier) DeepCopy() *MetricIdentifier {
242 out := new(MetricIdentifier)
247 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
248 func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
250 if in.Object != nil {
251 in, out := &in.Object, &out.Object
252 *out = new(ObjectMetricSource)
253 (*in).DeepCopyInto(*out)
256 in, out := &in.Pods, &out.Pods
257 *out = new(PodsMetricSource)
258 (*in).DeepCopyInto(*out)
260 if in.Resource != nil {
261 in, out := &in.Resource, &out.Resource
262 *out = new(ResourceMetricSource)
263 (*in).DeepCopyInto(*out)
265 if in.External != nil {
266 in, out := &in.External, &out.External
267 *out = new(ExternalMetricSource)
268 (*in).DeepCopyInto(*out)
273 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
274 func (in *MetricSpec) DeepCopy() *MetricSpec {
278 out := new(MetricSpec)
283 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
284 func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
286 if in.Object != nil {
287 in, out := &in.Object, &out.Object
288 *out = new(ObjectMetricStatus)
289 (*in).DeepCopyInto(*out)
292 in, out := &in.Pods, &out.Pods
293 *out = new(PodsMetricStatus)
294 (*in).DeepCopyInto(*out)
296 if in.Resource != nil {
297 in, out := &in.Resource, &out.Resource
298 *out = new(ResourceMetricStatus)
299 (*in).DeepCopyInto(*out)
301 if in.External != nil {
302 in, out := &in.External, &out.External
303 *out = new(ExternalMetricStatus)
304 (*in).DeepCopyInto(*out)
309 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
310 func (in *MetricStatus) DeepCopy() *MetricStatus {
314 out := new(MetricStatus)
319 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
320 func (in *MetricTarget) DeepCopyInto(out *MetricTarget) {
323 in, out := &in.Value, &out.Value
324 x := (*in).DeepCopy()
327 if in.AverageValue != nil {
328 in, out := &in.AverageValue, &out.AverageValue
329 x := (*in).DeepCopy()
332 if in.AverageUtilization != nil {
333 in, out := &in.AverageUtilization, &out.AverageUtilization
340 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricTarget.
341 func (in *MetricTarget) DeepCopy() *MetricTarget {
345 out := new(MetricTarget)
350 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
351 func (in *MetricValueStatus) DeepCopyInto(out *MetricValueStatus) {
354 in, out := &in.Value, &out.Value
355 x := (*in).DeepCopy()
358 if in.AverageValue != nil {
359 in, out := &in.AverageValue, &out.AverageValue
360 x := (*in).DeepCopy()
363 if in.AverageUtilization != nil {
364 in, out := &in.AverageUtilization, &out.AverageUtilization
371 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricValueStatus.
372 func (in *MetricValueStatus) DeepCopy() *MetricValueStatus {
376 out := new(MetricValueStatus)
381 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
382 func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
384 out.DescribedObject = in.DescribedObject
385 in.Target.DeepCopyInto(&out.Target)
386 in.Metric.DeepCopyInto(&out.Metric)
390 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
391 func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
395 out := new(ObjectMetricSource)
400 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
401 func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
403 in.Metric.DeepCopyInto(&out.Metric)
404 in.Current.DeepCopyInto(&out.Current)
405 out.DescribedObject = in.DescribedObject
409 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
410 func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
414 out := new(ObjectMetricStatus)
419 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
420 func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
422 in.Metric.DeepCopyInto(&out.Metric)
423 in.Target.DeepCopyInto(&out.Target)
427 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
428 func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
432 out := new(PodsMetricSource)
437 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
438 func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
440 in.Metric.DeepCopyInto(&out.Metric)
441 in.Current.DeepCopyInto(&out.Current)
445 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
446 func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
450 out := new(PodsMetricStatus)
455 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
456 func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
458 in.Target.DeepCopyInto(&out.Target)
462 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
463 func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
467 out := new(ResourceMetricSource)
472 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
473 func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
475 in.Current.DeepCopyInto(&out.Current)
479 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
480 func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
484 out := new(ResourceMetricStatus)