Documentation ¶
Index ¶
- Constants
- Variables
- func Convert_api_DeschedulerPolicy_To_v1alpha1_DeschedulerPolicy(in *api.DeschedulerPolicy, out *DeschedulerPolicy, s conversion.Scope) error
- func Convert_api_DeschedulerStrategy_To_v1alpha1_DeschedulerStrategy(in *api.DeschedulerStrategy, out *DeschedulerStrategy, s conversion.Scope) error
- func Convert_api_NodeResourceUtilizationThresholds_To_v1alpha1_NodeResourceUtilizationThresholds(in *api.NodeResourceUtilizationThresholds, ...) error
- func Convert_api_StrategyParameters_To_v1alpha1_StrategyParameters(in *api.StrategyParameters, out *StrategyParameters, s conversion.Scope) error
- func Convert_v1alpha1_DeschedulerPolicy_To_api_DeschedulerPolicy(in *DeschedulerPolicy, out *api.DeschedulerPolicy, s conversion.Scope) error
- func Convert_v1alpha1_DeschedulerStrategy_To_api_DeschedulerStrategy(in *DeschedulerStrategy, out *api.DeschedulerStrategy, s conversion.Scope) error
- func Convert_v1alpha1_NodeResourceUtilizationThresholds_To_api_NodeResourceUtilizationThresholds(in *NodeResourceUtilizationThresholds, ...) error
- func Convert_v1alpha1_StrategyParameters_To_api_StrategyParameters(in *StrategyParameters, out *api.StrategyParameters, s conversion.Scope) error
- func Kind(kind string) schema.GroupKind
- func RegisterConversions(scheme *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type DeschedulerPolicy
- func (x *DeschedulerPolicy) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *DeschedulerPolicy) CodecEncodeSelf(e *codec1978.Encoder)
- func (in *DeschedulerPolicy) DeepCopy() *DeschedulerPolicy
- func (in *DeschedulerPolicy) DeepCopyInto(out *DeschedulerPolicy)
- func (in *DeschedulerPolicy) DeepCopyObject() runtime.Object
- type DeschedulerStrategy
- type NodeResourceUtilizationThresholds
- func (x *NodeResourceUtilizationThresholds) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *NodeResourceUtilizationThresholds) CodecEncodeSelf(e *codec1978.Encoder)
- func (in *NodeResourceUtilizationThresholds) DeepCopy() *NodeResourceUtilizationThresholds
- func (in *NodeResourceUtilizationThresholds) DeepCopyInto(out *NodeResourceUtilizationThresholds)
- type Percentage
- type ResourceThresholds
- type StrategyList
- type StrategyName
- type StrategyParameters
Constants ¶
const GroupName = "descheduler"
GroupName is the group name used in this package
const GroupVersion = "v1alpha1"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_api_DeschedulerPolicy_To_v1alpha1_DeschedulerPolicy ¶
func Convert_api_DeschedulerPolicy_To_v1alpha1_DeschedulerPolicy(in *api.DeschedulerPolicy, out *DeschedulerPolicy, s conversion.Scope) error
Convert_api_DeschedulerPolicy_To_v1alpha1_DeschedulerPolicy is an autogenerated conversion function.
func Convert_api_DeschedulerStrategy_To_v1alpha1_DeschedulerStrategy ¶
func Convert_api_DeschedulerStrategy_To_v1alpha1_DeschedulerStrategy(in *api.DeschedulerStrategy, out *DeschedulerStrategy, s conversion.Scope) error
Convert_api_DeschedulerStrategy_To_v1alpha1_DeschedulerStrategy is an autogenerated conversion function.
func Convert_api_NodeResourceUtilizationThresholds_To_v1alpha1_NodeResourceUtilizationThresholds ¶
func Convert_api_NodeResourceUtilizationThresholds_To_v1alpha1_NodeResourceUtilizationThresholds(in *api.NodeResourceUtilizationThresholds, out *NodeResourceUtilizationThresholds, s conversion.Scope) error
Convert_api_NodeResourceUtilizationThresholds_To_v1alpha1_NodeResourceUtilizationThresholds is an autogenerated conversion function.
func Convert_api_StrategyParameters_To_v1alpha1_StrategyParameters ¶
func Convert_api_StrategyParameters_To_v1alpha1_StrategyParameters(in *api.StrategyParameters, out *StrategyParameters, s conversion.Scope) error
Convert_api_StrategyParameters_To_v1alpha1_StrategyParameters is an autogenerated conversion function.
func Convert_v1alpha1_DeschedulerPolicy_To_api_DeschedulerPolicy ¶
func Convert_v1alpha1_DeschedulerPolicy_To_api_DeschedulerPolicy(in *DeschedulerPolicy, out *api.DeschedulerPolicy, s conversion.Scope) error
Convert_v1alpha1_DeschedulerPolicy_To_api_DeschedulerPolicy is an autogenerated conversion function.
func Convert_v1alpha1_DeschedulerStrategy_To_api_DeschedulerStrategy ¶
func Convert_v1alpha1_DeschedulerStrategy_To_api_DeschedulerStrategy(in *DeschedulerStrategy, out *api.DeschedulerStrategy, s conversion.Scope) error
Convert_v1alpha1_DeschedulerStrategy_To_api_DeschedulerStrategy is an autogenerated conversion function.
func Convert_v1alpha1_NodeResourceUtilizationThresholds_To_api_NodeResourceUtilizationThresholds ¶
func Convert_v1alpha1_NodeResourceUtilizationThresholds_To_api_NodeResourceUtilizationThresholds(in *NodeResourceUtilizationThresholds, out *api.NodeResourceUtilizationThresholds, s conversion.Scope) error
Convert_v1alpha1_NodeResourceUtilizationThresholds_To_api_NodeResourceUtilizationThresholds is an autogenerated conversion function.
func Convert_v1alpha1_StrategyParameters_To_api_StrategyParameters ¶
func Convert_v1alpha1_StrategyParameters_To_api_StrategyParameters(in *StrategyParameters, out *api.StrategyParameters, s conversion.Scope) error
Convert_v1alpha1_StrategyParameters_To_api_StrategyParameters is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DeschedulerPolicy ¶
type DeschedulerPolicy struct { metav1.TypeMeta `json:",inline"` // Strategies Strategies StrategyList `json:"strategies,omitempty"` }
func (*DeschedulerPolicy) CodecDecodeSelf ¶
func (x *DeschedulerPolicy) CodecDecodeSelf(d *codec1978.Decoder)
func (*DeschedulerPolicy) CodecEncodeSelf ¶
func (x *DeschedulerPolicy) CodecEncodeSelf(e *codec1978.Encoder)
func (*DeschedulerPolicy) DeepCopy ¶ added in v0.4.0
func (in *DeschedulerPolicy) DeepCopy() *DeschedulerPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeschedulerPolicy.
func (*DeschedulerPolicy) DeepCopyInto ¶ added in v0.4.0
func (in *DeschedulerPolicy) DeepCopyInto(out *DeschedulerPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeschedulerPolicy) DeepCopyObject ¶ added in v0.4.0
func (in *DeschedulerPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DeschedulerStrategy ¶
type DeschedulerStrategy struct { // Enabled or disabled Enabled bool `json:"enabled,omitempty"` // Weight Weight int `json:"weight,omitempty"` // Strategy parameters Params StrategyParameters `json:"params,omitempty"` }
func (*DeschedulerStrategy) CodecDecodeSelf ¶
func (x *DeschedulerStrategy) CodecDecodeSelf(d *codec1978.Decoder)
func (*DeschedulerStrategy) CodecEncodeSelf ¶
func (x *DeschedulerStrategy) CodecEncodeSelf(e *codec1978.Encoder)
func (*DeschedulerStrategy) DeepCopy ¶ added in v0.4.0
func (in *DeschedulerStrategy) DeepCopy() *DeschedulerStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeschedulerStrategy.
func (*DeschedulerStrategy) DeepCopyInto ¶ added in v0.4.0
func (in *DeschedulerStrategy) DeepCopyInto(out *DeschedulerStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeResourceUtilizationThresholds ¶
type NodeResourceUtilizationThresholds struct { Thresholds ResourceThresholds `json:"thresholds,omitempty"` TargetThresholds ResourceThresholds `json:"targetThresholds,omitempty"` NumberOfNodes int `json:"numberOfNodes,omitempty"` }
func (*NodeResourceUtilizationThresholds) CodecDecodeSelf ¶
func (x *NodeResourceUtilizationThresholds) CodecDecodeSelf(d *codec1978.Decoder)
func (*NodeResourceUtilizationThresholds) CodecEncodeSelf ¶
func (x *NodeResourceUtilizationThresholds) CodecEncodeSelf(e *codec1978.Encoder)
func (*NodeResourceUtilizationThresholds) DeepCopy ¶ added in v0.4.0
func (in *NodeResourceUtilizationThresholds) DeepCopy() *NodeResourceUtilizationThresholds
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourceUtilizationThresholds.
func (*NodeResourceUtilizationThresholds) DeepCopyInto ¶ added in v0.4.0
func (in *NodeResourceUtilizationThresholds) DeepCopyInto(out *NodeResourceUtilizationThresholds)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Percentage ¶
type Percentage float64
func (*Percentage) CodecDecodeSelf ¶
func (x *Percentage) CodecDecodeSelf(d *codec1978.Decoder)
func (Percentage) CodecEncodeSelf ¶
func (x Percentage) CodecEncodeSelf(e *codec1978.Encoder)
type ResourceThresholds ¶
type ResourceThresholds map[v1.ResourceName]Percentage
func (*ResourceThresholds) CodecDecodeSelf ¶
func (x *ResourceThresholds) CodecDecodeSelf(d *codec1978.Decoder)
func (ResourceThresholds) CodecEncodeSelf ¶
func (x ResourceThresholds) CodecEncodeSelf(e *codec1978.Encoder)
type StrategyList ¶
type StrategyList map[StrategyName]DeschedulerStrategy
func (*StrategyList) CodecDecodeSelf ¶
func (x *StrategyList) CodecDecodeSelf(d *codec1978.Decoder)
func (StrategyList) CodecEncodeSelf ¶
func (x StrategyList) CodecEncodeSelf(e *codec1978.Encoder)
type StrategyName ¶
type StrategyName string
func (*StrategyName) CodecDecodeSelf ¶
func (x *StrategyName) CodecDecodeSelf(d *codec1978.Decoder)
func (StrategyName) CodecEncodeSelf ¶
func (x StrategyName) CodecEncodeSelf(e *codec1978.Encoder)
type StrategyParameters ¶
type StrategyParameters struct {
NodeResourceUtilizationThresholds NodeResourceUtilizationThresholds `json:"nodeResourceUtilizationThresholds,omitempty"`
}
Only one of its members may be specified
func (*StrategyParameters) CodecDecodeSelf ¶
func (x *StrategyParameters) CodecDecodeSelf(d *codec1978.Decoder)
func (*StrategyParameters) CodecEncodeSelf ¶
func (x *StrategyParameters) CodecEncodeSelf(e *codec1978.Encoder)
func (*StrategyParameters) DeepCopy ¶ added in v0.4.0
func (in *StrategyParameters) DeepCopy() *StrategyParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StrategyParameters.
func (*StrategyParameters) DeepCopyInto ¶ added in v0.4.0
func (in *StrategyParameters) DeepCopyInto(out *StrategyParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.