Documentation ¶
Index ¶
- Variables
- 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: schedscheme.GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
This section is empty.
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 []kubeschedulerconfig.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 []kubeschedulerconfig.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 kubeschedulerconfig.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 []kubeschedulerconfig.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 []kubeschedulerconfig.ResourceSpec `json:"reclaimedResources,omitempty"` // Arguments specific to RequestedToCapacityRatio strategy. RequestedToCapacityRatio *kubeschedulerconfig.RequestedToCapacityRatioParam `json:"requestedToCapacityRatio,omitempty"` // Arguments specific to RequestedToCapacityRatio strategy. ReclaimedRequestedToCapacityRatio *kubeschedulerconfig.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.