Documentation ¶
Index ¶
- Variables
- func Convert_config_NodeResourceTopologyArgs_To_v1beta3_NodeResourceTopologyArgs(in *config.NodeResourceTopologyArgs, out *NodeResourceTopologyArgs, ...) error
- func Convert_config_QoSAwareNodeResourcesBalancedAllocationArgs_To_v1beta3_QoSAwareNodeResourcesBalancedAllocationArgs(in *config.QoSAwareNodeResourcesBalancedAllocationArgs, ...) error
- func Convert_config_QoSAwareNodeResourcesFitArgs_To_v1beta3_QoSAwareNodeResourcesFitArgs(in *config.QoSAwareNodeResourcesFitArgs, out *QoSAwareNodeResourcesFitArgs, ...) error
- func Convert_config_ScoringStrategy_To_v1beta3_ScoringStrategy(in *config.ScoringStrategy, out *ScoringStrategy, s conversion.Scope) error
- func Convert_v1beta3_NodeResourceTopologyArgs_To_config_NodeResourceTopologyArgs(in *NodeResourceTopologyArgs, out *config.NodeResourceTopologyArgs, ...) error
- func Convert_v1beta3_QoSAwareNodeResourcesBalancedAllocationArgs_To_config_QoSAwareNodeResourcesBalancedAllocationArgs(in *QoSAwareNodeResourcesBalancedAllocationArgs, ...) error
- func Convert_v1beta3_QoSAwareNodeResourcesFitArgs_To_config_QoSAwareNodeResourcesFitArgs(in *QoSAwareNodeResourcesFitArgs, out *config.QoSAwareNodeResourcesFitArgs, ...) error
- func Convert_v1beta3_ScoringStrategy_To_config_ScoringStrategy(in *ScoringStrategy, out *config.ScoringStrategy, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaults_NodeResourceTopologyArgs(obj *NodeResourceTopologyArgs)
- func SetDefaults_QoSAwareNodeResourcesBalancedAllocationArgs(obj *QoSAwareNodeResourcesBalancedAllocationArgs)
- func SetDefaults_QoSAwareNodeResourcesFitArgs(obj *QoSAwareNodeResourcesFitArgs)
- func SetObjectDefaults_NodeResourceTopologyArgs(in *NodeResourceTopologyArgs)
- func SetObjectDefaults_QoSAwareNodeResourcesBalancedAllocationArgs(in *QoSAwareNodeResourcesBalancedAllocationArgs)
- func SetObjectDefaults_QoSAwareNodeResourcesFitArgs(in *QoSAwareNodeResourcesFitArgs)
- type NodeResourceTopologyArgs
- type QoSAwareNodeResourcesBalancedAllocationArgs
- func (in *QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopy() *QoSAwareNodeResourcesBalancedAllocationArgs
- func (in *QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopyInto(out *QoSAwareNodeResourcesBalancedAllocationArgs)
- func (in *QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopyObject() runtime.Object
- type QoSAwareNodeResourcesFitArgs
- type ScoringStrategy
Constants ¶
This section is empty.
Variables ¶
var (
// AddToScheme is a global function that registers this API group & version to a scheme
AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: schedschemev1beta3.GroupName, Version: "v1beta3"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_config_NodeResourceTopologyArgs_To_v1beta3_NodeResourceTopologyArgs ¶ added in v0.4.0
func Convert_config_NodeResourceTopologyArgs_To_v1beta3_NodeResourceTopologyArgs(in *config.NodeResourceTopologyArgs, out *NodeResourceTopologyArgs, s conversion.Scope) error
Convert_config_NodeResourceTopologyArgs_To_v1beta3_NodeResourceTopologyArgs is an autogenerated conversion function.
func Convert_config_QoSAwareNodeResourcesBalancedAllocationArgs_To_v1beta3_QoSAwareNodeResourcesBalancedAllocationArgs ¶
func Convert_config_QoSAwareNodeResourcesBalancedAllocationArgs_To_v1beta3_QoSAwareNodeResourcesBalancedAllocationArgs(in *config.QoSAwareNodeResourcesBalancedAllocationArgs, out *QoSAwareNodeResourcesBalancedAllocationArgs, s conversion.Scope) error
Convert_config_QoSAwareNodeResourcesBalancedAllocationArgs_To_v1beta3_QoSAwareNodeResourcesBalancedAllocationArgs is an autogenerated conversion function.
func Convert_config_QoSAwareNodeResourcesFitArgs_To_v1beta3_QoSAwareNodeResourcesFitArgs ¶
func Convert_config_QoSAwareNodeResourcesFitArgs_To_v1beta3_QoSAwareNodeResourcesFitArgs(in *config.QoSAwareNodeResourcesFitArgs, out *QoSAwareNodeResourcesFitArgs, s conversion.Scope) error
Convert_config_QoSAwareNodeResourcesFitArgs_To_v1beta3_QoSAwareNodeResourcesFitArgs is an autogenerated conversion function.
func Convert_config_ScoringStrategy_To_v1beta3_ScoringStrategy ¶
func Convert_config_ScoringStrategy_To_v1beta3_ScoringStrategy(in *config.ScoringStrategy, out *ScoringStrategy, s conversion.Scope) error
Convert_config_ScoringStrategy_To_v1beta3_ScoringStrategy is an autogenerated conversion function.
func Convert_v1beta3_NodeResourceTopologyArgs_To_config_NodeResourceTopologyArgs ¶ added in v0.4.0
func Convert_v1beta3_NodeResourceTopologyArgs_To_config_NodeResourceTopologyArgs(in *NodeResourceTopologyArgs, out *config.NodeResourceTopologyArgs, s conversion.Scope) error
Convert_v1beta3_NodeResourceTopologyArgs_To_config_NodeResourceTopologyArgs is an autogenerated conversion function.
func Convert_v1beta3_QoSAwareNodeResourcesBalancedAllocationArgs_To_config_QoSAwareNodeResourcesBalancedAllocationArgs ¶
func Convert_v1beta3_QoSAwareNodeResourcesBalancedAllocationArgs_To_config_QoSAwareNodeResourcesBalancedAllocationArgs(in *QoSAwareNodeResourcesBalancedAllocationArgs, out *config.QoSAwareNodeResourcesBalancedAllocationArgs, s conversion.Scope) error
Convert_v1beta3_QoSAwareNodeResourcesBalancedAllocationArgs_To_config_QoSAwareNodeResourcesBalancedAllocationArgs is an autogenerated conversion function.
func Convert_v1beta3_QoSAwareNodeResourcesFitArgs_To_config_QoSAwareNodeResourcesFitArgs ¶
func Convert_v1beta3_QoSAwareNodeResourcesFitArgs_To_config_QoSAwareNodeResourcesFitArgs(in *QoSAwareNodeResourcesFitArgs, out *config.QoSAwareNodeResourcesFitArgs, s conversion.Scope) error
Convert_v1beta3_QoSAwareNodeResourcesFitArgs_To_config_QoSAwareNodeResourcesFitArgs is an autogenerated conversion function.
func Convert_v1beta3_ScoringStrategy_To_config_ScoringStrategy ¶
func Convert_v1beta3_ScoringStrategy_To_config_ScoringStrategy(in *ScoringStrategy, out *config.ScoringStrategy, s conversion.Scope) error
Convert_v1beta3_ScoringStrategy_To_config_ScoringStrategy 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 SetDefaults_NodeResourceTopologyArgs ¶ added in v0.4.0
func SetDefaults_NodeResourceTopologyArgs(obj *NodeResourceTopologyArgs)
func SetDefaults_QoSAwareNodeResourcesBalancedAllocationArgs ¶
func SetDefaults_QoSAwareNodeResourcesBalancedAllocationArgs(obj *QoSAwareNodeResourcesBalancedAllocationArgs)
SetDefaults_QoSAwareNodeResourcesBalancedAllocationArgs sets the default parameters for QoSAwareNodeResourcesBalancedAllocation plugin.
func SetDefaults_QoSAwareNodeResourcesFitArgs ¶
func SetDefaults_QoSAwareNodeResourcesFitArgs(obj *QoSAwareNodeResourcesFitArgs)
SetDefaults_QoSAwareNodeResourcesFitArgs sets the default parameters for QoSAwareNodeResourcesFit plugin.
func SetObjectDefaults_NodeResourceTopologyArgs ¶ added in v0.4.0
func SetObjectDefaults_NodeResourceTopologyArgs(in *NodeResourceTopologyArgs)
func SetObjectDefaults_QoSAwareNodeResourcesBalancedAllocationArgs ¶
func SetObjectDefaults_QoSAwareNodeResourcesBalancedAllocationArgs(in *QoSAwareNodeResourcesBalancedAllocationArgs)
func SetObjectDefaults_QoSAwareNodeResourcesFitArgs ¶
func SetObjectDefaults_QoSAwareNodeResourcesFitArgs(in *QoSAwareNodeResourcesFitArgs)
Types ¶
type NodeResourceTopologyArgs ¶ added in v0.4.0
type NodeResourceTopologyArgs struct { metav1.TypeMeta `json:",inline"` // ScoringStrategy a scoring model that determine how the plugin will score the nodes. ScoringStrategy *ScoringStrategy `json:"scoringStrategy,omitempty"` // AlignedResources are resources should be aligned for dedicated pods. AlignedResources []string `json:"alignedResources,omitempty"` // ResourcePluginPolicy are QRMPlugin resource policy to allocate topology resource for containers. ResourcePluginPolicy consts.ResourcePluginPolicyName `json:"resourcePluginPolicy,omitempty"` }
NodeResourceTopologyArgs holds arguments used to configure the NodeResourceTopologyMatch plugin
func (*NodeResourceTopologyArgs) DeepCopy ¶ added in v0.4.0
func (in *NodeResourceTopologyArgs) DeepCopy() *NodeResourceTopologyArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourceTopologyArgs.
func (*NodeResourceTopologyArgs) DeepCopyInto ¶ added in v0.4.0
func (in *NodeResourceTopologyArgs) DeepCopyInto(out *NodeResourceTopologyArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeResourceTopologyArgs) DeepCopyObject ¶ added in v0.4.0
func (in *NodeResourceTopologyArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QoSAwareNodeResourcesBalancedAllocationArgs ¶
type QoSAwareNodeResourcesBalancedAllocationArgs struct { metav1.TypeMeta `json:",inline"` // Resources to be considered when scoring. // The default resource set includes "cpu" and "memory", only valid weight is 1. Resources []v1beta3.ResourceSpec `json:"resources,omitempty"` // ReclaimedResources to be considered when scoring. // The default resource set includes "resource.katalyst.kubewharf.io/reclaimed_millicpu" // and "resource.katalyst.kubewharf.io/reclaimed_memory", only valid weight is 1. ReclaimedResources []v1beta3.ResourceSpec `json:"reclaimedResources,omitempty"` }
QoSAwareNodeResourcesBalancedAllocationArgs holds arguments used to configure QoSAwareNodeResourcesBalancedAllocation plugin.
func (*QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopy ¶
func (in *QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopy() *QoSAwareNodeResourcesBalancedAllocationArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QoSAwareNodeResourcesBalancedAllocationArgs.
func (*QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopyInto ¶
func (in *QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopyInto(out *QoSAwareNodeResourcesBalancedAllocationArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopyObject ¶
func (in *QoSAwareNodeResourcesBalancedAllocationArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QoSAwareNodeResourcesFitArgs ¶
type QoSAwareNodeResourcesFitArgs struct { metav1.TypeMeta `json:",inline"` // ScoringStrategy selects the node resource scoring strategy. ScoringStrategy *ScoringStrategy `json:"scoringStrategy,omitempty"` }
QoSAwareNodeResourcesFitArgs holds arguments used to configure the QoSAwareNodeResourcesFit plugin.
func (*QoSAwareNodeResourcesFitArgs) DeepCopy ¶
func (in *QoSAwareNodeResourcesFitArgs) DeepCopy() *QoSAwareNodeResourcesFitArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QoSAwareNodeResourcesFitArgs.
func (*QoSAwareNodeResourcesFitArgs) DeepCopyInto ¶
func (in *QoSAwareNodeResourcesFitArgs) DeepCopyInto(out *QoSAwareNodeResourcesFitArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QoSAwareNodeResourcesFitArgs) DeepCopyObject ¶
func (in *QoSAwareNodeResourcesFitArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScoringStrategy ¶
type ScoringStrategy struct { // Type selects which strategy to run. Type v1beta3.ScoringStrategyType `json:"type,omitempty"` // Resources to consider when scoring. // The default resource set includes "cpu" and "memory" with an equal weight. // Allowed weights go from 1 to 100. // Weight defaults to 1 if not specified or explicitly set to 0. Resources []v1beta3.ResourceSpec `json:"resources,omitempty"` // ReclaimedResources to consider when scoring. // The default resource set includes "resource.katalyst.kubewharf.io/reclaimed_millicpu" // and "resource.katalyst.kubewharf.io/reclaimed_memory", only valid weight is 1. ReclaimedResources []v1beta3.ResourceSpec `json:"reclaimedResources,omitempty"` // Arguments specific to RequestedToCapacityRatio strategy. RequestedToCapacityRatio *v1beta3.RequestedToCapacityRatioParam `json:"requestedToCapacityRatio,omitempty"` // Arguments specific to RequestedToCapacityRatio strategy. ReclaimedRequestedToCapacityRatio *v1beta3.RequestedToCapacityRatioParam `json:"reclaimedRequestedToCapacityRatio,omitempty"` }
ScoringStrategy define ScoringStrategyType for node resource plugin
func (*ScoringStrategy) DeepCopy ¶
func (in *ScoringStrategy) DeepCopy() *ScoringStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScoringStrategy.
func (*ScoringStrategy) DeepCopyInto ¶
func (in *ScoringStrategy) DeepCopyInto(out *ScoringStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.