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 if in.MetricSelector != nil {
48 in, out := &in.MetricSelector, &out.MetricSelector
49 *out = new(v1.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(v1.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.Metrics != nil {
190 in, out := &in.Metrics, &out.Metrics
191 *out = make([]MetricSpec, len(*in))
193 (*in)[i].DeepCopyInto(&(*out)[i])
199 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
200 func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
204 out := new(HorizontalPodAutoscalerSpec)
209 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
210 func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
212 if in.ObservedGeneration != nil {
213 in, out := &in.ObservedGeneration, &out.ObservedGeneration
217 if in.LastScaleTime != nil {
218 in, out := &in.LastScaleTime, &out.LastScaleTime
219 *out = (*in).DeepCopy()
221 if in.CurrentMetrics != nil {
222 in, out := &in.CurrentMetrics, &out.CurrentMetrics
223 *out = make([]MetricStatus, len(*in))
225 (*in)[i].DeepCopyInto(&(*out)[i])
228 if in.Conditions != nil {
229 in, out := &in.Conditions, &out.Conditions
230 *out = make([]HorizontalPodAutoscalerCondition, len(*in))
232 (*in)[i].DeepCopyInto(&(*out)[i])
238 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
239 func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
243 out := new(HorizontalPodAutoscalerStatus)
248 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
249 func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
251 if in.Object != nil {
252 in, out := &in.Object, &out.Object
253 *out = new(ObjectMetricSource)
254 (*in).DeepCopyInto(*out)
257 in, out := &in.Pods, &out.Pods
258 *out = new(PodsMetricSource)
259 (*in).DeepCopyInto(*out)
261 if in.Resource != nil {
262 in, out := &in.Resource, &out.Resource
263 *out = new(ResourceMetricSource)
264 (*in).DeepCopyInto(*out)
266 if in.External != nil {
267 in, out := &in.External, &out.External
268 *out = new(ExternalMetricSource)
269 (*in).DeepCopyInto(*out)
274 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
275 func (in *MetricSpec) DeepCopy() *MetricSpec {
279 out := new(MetricSpec)
284 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
285 func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
287 if in.Object != nil {
288 in, out := &in.Object, &out.Object
289 *out = new(ObjectMetricStatus)
290 (*in).DeepCopyInto(*out)
293 in, out := &in.Pods, &out.Pods
294 *out = new(PodsMetricStatus)
295 (*in).DeepCopyInto(*out)
297 if in.Resource != nil {
298 in, out := &in.Resource, &out.Resource
299 *out = new(ResourceMetricStatus)
300 (*in).DeepCopyInto(*out)
302 if in.External != nil {
303 in, out := &in.External, &out.External
304 *out = new(ExternalMetricStatus)
305 (*in).DeepCopyInto(*out)
310 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
311 func (in *MetricStatus) DeepCopy() *MetricStatus {
315 out := new(MetricStatus)
320 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
321 func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
323 out.Target = in.Target
324 out.TargetValue = in.TargetValue.DeepCopy()
325 if in.Selector != nil {
326 in, out := &in.Selector, &out.Selector
327 *out = new(v1.LabelSelector)
328 (*in).DeepCopyInto(*out)
330 if in.AverageValue != nil {
331 in, out := &in.AverageValue, &out.AverageValue
332 x := (*in).DeepCopy()
338 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
339 func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
343 out := new(ObjectMetricSource)
348 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
349 func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
351 out.Target = in.Target
352 out.CurrentValue = in.CurrentValue.DeepCopy()
353 if in.Selector != nil {
354 in, out := &in.Selector, &out.Selector
355 *out = new(v1.LabelSelector)
356 (*in).DeepCopyInto(*out)
358 if in.AverageValue != nil {
359 in, out := &in.AverageValue, &out.AverageValue
360 x := (*in).DeepCopy()
366 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
367 func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
371 out := new(ObjectMetricStatus)
376 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
377 func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
379 out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
380 if in.Selector != nil {
381 in, out := &in.Selector, &out.Selector
382 *out = new(v1.LabelSelector)
383 (*in).DeepCopyInto(*out)
388 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
389 func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
393 out := new(PodsMetricSource)
398 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
399 func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
401 out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
402 if in.Selector != nil {
403 in, out := &in.Selector, &out.Selector
404 *out = new(v1.LabelSelector)
405 (*in).DeepCopyInto(*out)
410 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
411 func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
415 out := new(PodsMetricStatus)
420 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
421 func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
423 if in.TargetAverageUtilization != nil {
424 in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
428 if in.TargetAverageValue != nil {
429 in, out := &in.TargetAverageValue, &out.TargetAverageValue
430 x := (*in).DeepCopy()
436 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
437 func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
441 out := new(ResourceMetricSource)
446 // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
447 func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
449 if in.CurrentAverageUtilization != nil {
450 in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
454 out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
458 // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
459 func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
463 out := new(ResourceMetricStatus)