2021-12-08 13:50:47 +00:00
|
|
|
//go:build !ignore_autogenerated
|
2018-12-19 14:29:25 +00:00
|
|
|
// +build !ignore_autogenerated
|
|
|
|
|
|
|
|
/*
|
2019-01-15 16:20:41 +00:00
|
|
|
Copyright The Kubernetes Authors.
|
2018-12-19 14:29:25 +00:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Code generated by deepcopy-gen. DO NOT EDIT.
|
|
|
|
|
|
|
|
package v2beta1
|
|
|
|
|
|
|
|
import (
|
|
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
|
|
)
|
|
|
|
|
2020-12-17 12:28:29 +00:00
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *ContainerResourceMetricSource) DeepCopyInto(out *ContainerResourceMetricSource) {
|
|
|
|
*out = *in
|
|
|
|
if in.TargetAverageUtilization != nil {
|
|
|
|
in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
|
|
|
|
*out = new(int32)
|
|
|
|
**out = **in
|
|
|
|
}
|
|
|
|
if in.TargetAverageValue != nil {
|
|
|
|
in, out := &in.TargetAverageValue, &out.TargetAverageValue
|
|
|
|
x := (*in).DeepCopy()
|
|
|
|
*out = &x
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricSource.
|
|
|
|
func (in *ContainerResourceMetricSource) DeepCopy() *ContainerResourceMetricSource {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(ContainerResourceMetricSource)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *ContainerResourceMetricStatus) DeepCopyInto(out *ContainerResourceMetricStatus) {
|
|
|
|
*out = *in
|
|
|
|
if in.CurrentAverageUtilization != nil {
|
|
|
|
in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
|
|
|
|
*out = new(int32)
|
|
|
|
**out = **in
|
|
|
|
}
|
|
|
|
out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerResourceMetricStatus.
|
|
|
|
func (in *ContainerResourceMetricStatus) DeepCopy() *ContainerResourceMetricStatus {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(ContainerResourceMetricStatus)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
2018-12-19 14:29:25 +00:00
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) {
|
|
|
|
*out = *in
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.
|
|
|
|
func (in *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(CrossVersionObjectReference)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *ExternalMetricSource) DeepCopyInto(out *ExternalMetricSource) {
|
|
|
|
*out = *in
|
|
|
|
if in.MetricSelector != nil {
|
|
|
|
in, out := &in.MetricSelector, &out.MetricSelector
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(v1.LabelSelector)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.TargetValue != nil {
|
|
|
|
in, out := &in.TargetValue, &out.TargetValue
|
2019-01-15 16:20:41 +00:00
|
|
|
x := (*in).DeepCopy()
|
|
|
|
*out = &x
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.TargetAverageValue != nil {
|
|
|
|
in, out := &in.TargetAverageValue, &out.TargetAverageValue
|
2019-01-15 16:20:41 +00:00
|
|
|
x := (*in).DeepCopy()
|
|
|
|
*out = &x
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricSource.
|
|
|
|
func (in *ExternalMetricSource) DeepCopy() *ExternalMetricSource {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(ExternalMetricSource)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *ExternalMetricStatus) DeepCopyInto(out *ExternalMetricStatus) {
|
|
|
|
*out = *in
|
|
|
|
if in.MetricSelector != nil {
|
|
|
|
in, out := &in.MetricSelector, &out.MetricSelector
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(v1.LabelSelector)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
out.CurrentValue = in.CurrentValue.DeepCopy()
|
|
|
|
if in.CurrentAverageValue != nil {
|
|
|
|
in, out := &in.CurrentAverageValue, &out.CurrentAverageValue
|
2019-01-15 16:20:41 +00:00
|
|
|
x := (*in).DeepCopy()
|
|
|
|
*out = &x
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalMetricStatus.
|
|
|
|
func (in *ExternalMetricStatus) DeepCopy() *ExternalMetricStatus {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(ExternalMetricStatus)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) {
|
|
|
|
*out = *in
|
|
|
|
out.TypeMeta = in.TypeMeta
|
|
|
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
|
|
|
in.Spec.DeepCopyInto(&out.Spec)
|
|
|
|
in.Status.DeepCopyInto(&out.Status)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler.
|
|
|
|
func (in *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(HorizontalPodAutoscaler)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
|
|
func (in *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object {
|
|
|
|
if c := in.DeepCopy(); c != nil {
|
|
|
|
return c
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) {
|
|
|
|
*out = *in
|
|
|
|
in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition.
|
|
|
|
func (in *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(HorizontalPodAutoscalerCondition)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) {
|
|
|
|
*out = *in
|
|
|
|
out.TypeMeta = in.TypeMeta
|
2019-06-24 09:08:09 +00:00
|
|
|
in.ListMeta.DeepCopyInto(&out.ListMeta)
|
2018-12-19 14:29:25 +00:00
|
|
|
if in.Items != nil {
|
|
|
|
in, out := &in.Items, &out.Items
|
|
|
|
*out = make([]HorizontalPodAutoscaler, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList.
|
|
|
|
func (in *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(HorizontalPodAutoscalerList)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
|
|
func (in *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object {
|
|
|
|
if c := in.DeepCopy(); c != nil {
|
|
|
|
return c
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
|
|
|
|
*out = *in
|
|
|
|
out.ScaleTargetRef = in.ScaleTargetRef
|
|
|
|
if in.MinReplicas != nil {
|
|
|
|
in, out := &in.MinReplicas, &out.MinReplicas
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(int32)
|
|
|
|
**out = **in
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.Metrics != nil {
|
|
|
|
in, out := &in.Metrics, &out.Metrics
|
|
|
|
*out = make([]MetricSpec, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
|
|
|
|
func (in *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(HorizontalPodAutoscalerSpec)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
|
|
|
|
*out = *in
|
|
|
|
if in.ObservedGeneration != nil {
|
|
|
|
in, out := &in.ObservedGeneration, &out.ObservedGeneration
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(int64)
|
|
|
|
**out = **in
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.LastScaleTime != nil {
|
|
|
|
in, out := &in.LastScaleTime, &out.LastScaleTime
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = (*in).DeepCopy()
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.CurrentMetrics != nil {
|
|
|
|
in, out := &in.CurrentMetrics, &out.CurrentMetrics
|
|
|
|
*out = make([]MetricStatus, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if in.Conditions != nil {
|
|
|
|
in, out := &in.Conditions, &out.Conditions
|
|
|
|
*out = make([]HorizontalPodAutoscalerCondition, len(*in))
|
|
|
|
for i := range *in {
|
|
|
|
(*in)[i].DeepCopyInto(&(*out)[i])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
|
|
|
|
func (in *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(HorizontalPodAutoscalerStatus)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
|
|
|
|
*out = *in
|
|
|
|
if in.Object != nil {
|
|
|
|
in, out := &in.Object, &out.Object
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(ObjectMetricSource)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.Pods != nil {
|
|
|
|
in, out := &in.Pods, &out.Pods
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(PodsMetricSource)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.Resource != nil {
|
|
|
|
in, out := &in.Resource, &out.Resource
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(ResourceMetricSource)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
if in.ContainerResource != nil {
|
|
|
|
in, out := &in.ContainerResource, &out.ContainerResource
|
|
|
|
*out = new(ContainerResourceMetricSource)
|
|
|
|
(*in).DeepCopyInto(*out)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if in.External != nil {
|
|
|
|
in, out := &in.External, &out.External
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(ExternalMetricSource)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
|
|
|
|
func (in *MetricSpec) DeepCopy() *MetricSpec {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(MetricSpec)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
|
|
|
|
*out = *in
|
|
|
|
if in.Object != nil {
|
|
|
|
in, out := &in.Object, &out.Object
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(ObjectMetricStatus)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.Pods != nil {
|
|
|
|
in, out := &in.Pods, &out.Pods
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(PodsMetricStatus)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.Resource != nil {
|
|
|
|
in, out := &in.Resource, &out.Resource
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(ResourceMetricStatus)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
2020-12-17 12:28:29 +00:00
|
|
|
if in.ContainerResource != nil {
|
|
|
|
in, out := &in.ContainerResource, &out.ContainerResource
|
|
|
|
*out = new(ContainerResourceMetricStatus)
|
|
|
|
(*in).DeepCopyInto(*out)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
if in.External != nil {
|
|
|
|
in, out := &in.External, &out.External
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(ExternalMetricStatus)
|
|
|
|
(*in).DeepCopyInto(*out)
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
|
|
|
|
func (in *MetricStatus) DeepCopy() *MetricStatus {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(MetricStatus)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
|
|
|
|
*out = *in
|
|
|
|
out.Target = in.Target
|
|
|
|
out.TargetValue = in.TargetValue.DeepCopy()
|
2019-01-15 16:20:41 +00:00
|
|
|
if in.Selector != nil {
|
|
|
|
in, out := &in.Selector, &out.Selector
|
|
|
|
*out = new(v1.LabelSelector)
|
|
|
|
(*in).DeepCopyInto(*out)
|
|
|
|
}
|
|
|
|
if in.AverageValue != nil {
|
|
|
|
in, out := &in.AverageValue, &out.AverageValue
|
|
|
|
x := (*in).DeepCopy()
|
|
|
|
*out = &x
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
|
|
|
|
func (in *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(ObjectMetricSource)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
|
|
|
|
*out = *in
|
|
|
|
out.Target = in.Target
|
|
|
|
out.CurrentValue = in.CurrentValue.DeepCopy()
|
2019-01-15 16:20:41 +00:00
|
|
|
if in.Selector != nil {
|
|
|
|
in, out := &in.Selector, &out.Selector
|
|
|
|
*out = new(v1.LabelSelector)
|
|
|
|
(*in).DeepCopyInto(*out)
|
|
|
|
}
|
|
|
|
if in.AverageValue != nil {
|
|
|
|
in, out := &in.AverageValue, &out.AverageValue
|
|
|
|
x := (*in).DeepCopy()
|
|
|
|
*out = &x
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
|
|
|
|
func (in *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(ObjectMetricStatus)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
|
|
|
|
*out = *in
|
|
|
|
out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
|
2019-01-15 16:20:41 +00:00
|
|
|
if in.Selector != nil {
|
|
|
|
in, out := &in.Selector, &out.Selector
|
|
|
|
*out = new(v1.LabelSelector)
|
|
|
|
(*in).DeepCopyInto(*out)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
|
|
|
|
func (in *PodsMetricSource) DeepCopy() *PodsMetricSource {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(PodsMetricSource)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
|
|
|
|
*out = *in
|
|
|
|
out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
|
2019-01-15 16:20:41 +00:00
|
|
|
if in.Selector != nil {
|
|
|
|
in, out := &in.Selector, &out.Selector
|
|
|
|
*out = new(v1.LabelSelector)
|
|
|
|
(*in).DeepCopyInto(*out)
|
|
|
|
}
|
2018-12-19 14:29:25 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
|
|
|
|
func (in *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(PodsMetricStatus)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
|
|
|
|
*out = *in
|
|
|
|
if in.TargetAverageUtilization != nil {
|
|
|
|
in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(int32)
|
|
|
|
**out = **in
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
if in.TargetAverageValue != nil {
|
|
|
|
in, out := &in.TargetAverageValue, &out.TargetAverageValue
|
2019-01-15 16:20:41 +00:00
|
|
|
x := (*in).DeepCopy()
|
|
|
|
*out = &x
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
|
|
|
|
func (in *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(ResourceMetricSource)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
|
|
func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
|
|
|
|
*out = *in
|
|
|
|
if in.CurrentAverageUtilization != nil {
|
|
|
|
in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
|
2019-01-15 16:20:41 +00:00
|
|
|
*out = new(int32)
|
|
|
|
**out = **in
|
2018-12-19 14:29:25 +00:00
|
|
|
}
|
|
|
|
out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
|
|
|
|
func (in *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
|
|
|
|
if in == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
out := new(ResourceMetricStatus)
|
|
|
|
in.DeepCopyInto(out)
|
|
|
|
return out
|
|
|
|
}
|