mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 21:31:18 +01:00
130 lines
3.8 KiB
Go
130 lines
3.8 KiB
Go
// +build !ignore_autogenerated
|
|
|
|
/*
|
|
Copyright 2018 The Kubernetes Authors.
|
|
|
|
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.
|
|
*/
|
|
|
|
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
|
|
|
|
package api
|
|
|
|
import (
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
)
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *DeschedulerPolicy) DeepCopyInto(out *DeschedulerPolicy) {
|
|
*out = *in
|
|
out.TypeMeta = in.TypeMeta
|
|
if in.Strategies != nil {
|
|
in, out := &in.Strategies, &out.Strategies
|
|
*out = make(StrategyList, len(*in))
|
|
for key, val := range *in {
|
|
newVal := new(DeschedulerStrategy)
|
|
val.DeepCopyInto(newVal)
|
|
(*out)[key] = *newVal
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeschedulerPolicy.
|
|
func (in *DeschedulerPolicy) DeepCopy() *DeschedulerPolicy {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(DeschedulerPolicy)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
|
func (in *DeschedulerPolicy) DeepCopyObject() runtime.Object {
|
|
if c := in.DeepCopy(); c != nil {
|
|
return c
|
|
} else {
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *DeschedulerStrategy) DeepCopyInto(out *DeschedulerStrategy) {
|
|
*out = *in
|
|
in.Params.DeepCopyInto(&out.Params)
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeschedulerStrategy.
|
|
func (in *DeschedulerStrategy) DeepCopy() *DeschedulerStrategy {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(DeschedulerStrategy)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *NodeResourceUtilizationThresholds) DeepCopyInto(out *NodeResourceUtilizationThresholds) {
|
|
*out = *in
|
|
if in.Thresholds != nil {
|
|
in, out := &in.Thresholds, &out.Thresholds
|
|
*out = make(ResourceThresholds, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.TargetThresholds != nil {
|
|
in, out := &in.TargetThresholds, &out.TargetThresholds
|
|
*out = make(ResourceThresholds, len(*in))
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourceUtilizationThresholds.
|
|
func (in *NodeResourceUtilizationThresholds) DeepCopy() *NodeResourceUtilizationThresholds {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(NodeResourceUtilizationThresholds)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|
|
|
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
|
func (in *StrategyParameters) DeepCopyInto(out *StrategyParameters) {
|
|
*out = *in
|
|
in.NodeResourceUtilizationThresholds.DeepCopyInto(&out.NodeResourceUtilizationThresholds)
|
|
if in.NodeAffinityType != nil {
|
|
in, out := &in.NodeAffinityType, &out.NodeAffinityType
|
|
*out = make([]string, len(*in))
|
|
copy(*out, *in)
|
|
}
|
|
return
|
|
}
|
|
|
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyParameters.
|
|
func (in *StrategyParameters) DeepCopy() *StrategyParameters {
|
|
if in == nil {
|
|
return nil
|
|
}
|
|
out := new(StrategyParameters)
|
|
in.DeepCopyInto(out)
|
|
return out
|
|
}
|