mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-26 13:29:11 +01:00
114 lines
3.7 KiB
Go
114 lines
3.7 KiB
Go
// +build !ignore_autogenerated
|
|
|
|
/*
|
|
Copyright 2017 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 v1alpha1
|
|
|
|
import (
|
|
conversion "k8s.io/apimachinery/pkg/conversion"
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
reflect "reflect"
|
|
)
|
|
|
|
func init() {
|
|
SchemeBuilder.Register(RegisterDeepCopies)
|
|
}
|
|
|
|
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
|
|
// to allow building arbitrary schemes.
|
|
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
|
return scheme.AddGeneratedDeepCopyFuncs(
|
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_NodeResourceUtilizationThresholds, InType: reflect.TypeOf(&NodeResourceUtilizationThresholds{})},
|
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ReschedulerPolicy, InType: reflect.TypeOf(&ReschedulerPolicy{})},
|
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ReschedulerStrategy, InType: reflect.TypeOf(&ReschedulerStrategy{})},
|
|
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_StrategyParameters, InType: reflect.TypeOf(&StrategyParameters{})},
|
|
)
|
|
}
|
|
|
|
// DeepCopy_v1alpha1_NodeResourceUtilizationThresholds is an autogenerated deepcopy function.
|
|
func DeepCopy_v1alpha1_NodeResourceUtilizationThresholds(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
{
|
|
in := in.(*NodeResourceUtilizationThresholds)
|
|
out := out.(*NodeResourceUtilizationThresholds)
|
|
*out = *in
|
|
if in.Thresholds != nil {
|
|
in, out := &in.Thresholds, &out.Thresholds
|
|
*out = make(ResourceThresholds)
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
if in.TargetThresholds != nil {
|
|
in, out := &in.TargetThresholds, &out.TargetThresholds
|
|
*out = make(ResourceThresholds)
|
|
for key, val := range *in {
|
|
(*out)[key] = val
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// DeepCopy_v1alpha1_ReschedulerPolicy is an autogenerated deepcopy function.
|
|
func DeepCopy_v1alpha1_ReschedulerPolicy(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
{
|
|
in := in.(*ReschedulerPolicy)
|
|
out := out.(*ReschedulerPolicy)
|
|
*out = *in
|
|
if in.Strategies != nil {
|
|
in, out := &in.Strategies, &out.Strategies
|
|
*out = make(StrategyList)
|
|
for key, val := range *in {
|
|
newVal := new(ReschedulerStrategy)
|
|
if err := DeepCopy_v1alpha1_ReschedulerStrategy(&val, newVal, c); err != nil {
|
|
return err
|
|
}
|
|
(*out)[key] = *newVal
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// DeepCopy_v1alpha1_ReschedulerStrategy is an autogenerated deepcopy function.
|
|
func DeepCopy_v1alpha1_ReschedulerStrategy(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
{
|
|
in := in.(*ReschedulerStrategy)
|
|
out := out.(*ReschedulerStrategy)
|
|
*out = *in
|
|
if err := DeepCopy_v1alpha1_StrategyParameters(&in.Params, &out.Params, c); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// DeepCopy_v1alpha1_StrategyParameters is an autogenerated deepcopy function.
|
|
func DeepCopy_v1alpha1_StrategyParameters(in interface{}, out interface{}, c *conversion.Cloner) error {
|
|
{
|
|
in := in.(*StrategyParameters)
|
|
out := out.(*StrategyParameters)
|
|
*out = *in
|
|
if err := DeepCopy_v1alpha1_NodeResourceUtilizationThresholds(&in.NodeResourceUtilizationThresholds, &out.NodeResourceUtilizationThresholds, c); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
}
|