v1beta2

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package v1beta2

Index

Constants

View Source
const (
	// CPUBindPolicyDefault performs the default bind policy that specified in koord-scheduler configuration
	CPUBindPolicyDefault = CPUBindPolicy(extension.CPUBindPolicyDefault)
	// CPUBindPolicyFullPCPUs favor cpuset allocation that pack in few physical cores
	CPUBindPolicyFullPCPUs = CPUBindPolicy(extension.CPUBindPolicyFullPCPUs)
	// CPUBindPolicySpreadByPCPUs favor cpuset allocation that evenly allocate logical cpus across physical cores
	CPUBindPolicySpreadByPCPUs = CPUBindPolicy(extension.CPUBindPolicySpreadByPCPUs)
	// CPUBindPolicyConstrainedBurst constrains the CPU Shared Pool range of the Burstable Pod
	CPUBindPolicyConstrainedBurst = CPUBindPolicy(extension.CPUBindPolicyConstrainedBurst)
)

Variables

View Source
var (

	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: schedschemev1beta2.GroupName, Version: "v1beta2"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_config_CoschedulingArgs_To_v1beta2_CoschedulingArgs added in v1.0.0

func Convert_config_CoschedulingArgs_To_v1beta2_CoschedulingArgs(in *config.CoschedulingArgs, out *CoschedulingArgs, s conversion.Scope) error

Convert_config_CoschedulingArgs_To_v1beta2_CoschedulingArgs is an autogenerated conversion function.

func Convert_config_DeviceShareArgs_To_v1beta2_DeviceShareArgs added in v1.2.0

func Convert_config_DeviceShareArgs_To_v1beta2_DeviceShareArgs(in *config.DeviceShareArgs, out *DeviceShareArgs, s conversion.Scope) error

Convert_config_DeviceShareArgs_To_v1beta2_DeviceShareArgs is an autogenerated conversion function.

func Convert_config_ElasticQuotaArgs_To_v1beta2_ElasticQuotaArgs added in v1.0.0

func Convert_config_ElasticQuotaArgs_To_v1beta2_ElasticQuotaArgs(in *config.ElasticQuotaArgs, out *ElasticQuotaArgs, s conversion.Scope) error

Convert_config_ElasticQuotaArgs_To_v1beta2_ElasticQuotaArgs is an autogenerated conversion function.

func Convert_config_LoadAwareSchedulingAggregatedArgs_To_v1beta2_LoadAwareSchedulingAggregatedArgs added in v1.1.0

func Convert_config_LoadAwareSchedulingAggregatedArgs_To_v1beta2_LoadAwareSchedulingAggregatedArgs(in *config.LoadAwareSchedulingAggregatedArgs, out *LoadAwareSchedulingAggregatedArgs, s conversion.Scope) error

Convert_config_LoadAwareSchedulingAggregatedArgs_To_v1beta2_LoadAwareSchedulingAggregatedArgs is an autogenerated conversion function.

func Convert_config_LoadAwareSchedulingArgs_To_v1beta2_LoadAwareSchedulingArgs

func Convert_config_LoadAwareSchedulingArgs_To_v1beta2_LoadAwareSchedulingArgs(in *config.LoadAwareSchedulingArgs, out *LoadAwareSchedulingArgs, s conversion.Scope) error

Convert_config_LoadAwareSchedulingArgs_To_v1beta2_LoadAwareSchedulingArgs is an autogenerated conversion function.

func Convert_config_NodeNUMAResourceArgs_To_v1beta2_NodeNUMAResourceArgs added in v1.0.0

func Convert_config_NodeNUMAResourceArgs_To_v1beta2_NodeNUMAResourceArgs(in *config.NodeNUMAResourceArgs, out *NodeNUMAResourceArgs, s conversion.Scope) error

Convert_config_NodeNUMAResourceArgs_To_v1beta2_NodeNUMAResourceArgs is an autogenerated conversion function.

func Convert_config_ReservationArgs_To_v1beta2_ReservationArgs added in v1.0.0

func Convert_config_ReservationArgs_To_v1beta2_ReservationArgs(in *config.ReservationArgs, out *ReservationArgs, s conversion.Scope) error

Convert_config_ReservationArgs_To_v1beta2_ReservationArgs is an autogenerated conversion function.

func Convert_config_ScoringStrategy_To_v1beta2_ScoringStrategy added in v1.0.0

func Convert_config_ScoringStrategy_To_v1beta2_ScoringStrategy(in *config.ScoringStrategy, out *ScoringStrategy, s conversion.Scope) error

Convert_config_ScoringStrategy_To_v1beta2_ScoringStrategy is an autogenerated conversion function.

func Convert_v1beta2_CoschedulingArgs_To_config_CoschedulingArgs added in v1.0.0

func Convert_v1beta2_CoschedulingArgs_To_config_CoschedulingArgs(in *CoschedulingArgs, out *config.CoschedulingArgs, s conversion.Scope) error

Convert_v1beta2_CoschedulingArgs_To_config_CoschedulingArgs is an autogenerated conversion function.

func Convert_v1beta2_DeviceShareArgs_To_config_DeviceShareArgs added in v1.2.0

func Convert_v1beta2_DeviceShareArgs_To_config_DeviceShareArgs(in *DeviceShareArgs, out *config.DeviceShareArgs, s conversion.Scope) error

Convert_v1beta2_DeviceShareArgs_To_config_DeviceShareArgs is an autogenerated conversion function.

func Convert_v1beta2_ElasticQuotaArgs_To_config_ElasticQuotaArgs added in v1.0.0

func Convert_v1beta2_ElasticQuotaArgs_To_config_ElasticQuotaArgs(in *ElasticQuotaArgs, out *config.ElasticQuotaArgs, s conversion.Scope) error

Convert_v1beta2_ElasticQuotaArgs_To_config_ElasticQuotaArgs is an autogenerated conversion function.

func Convert_v1beta2_LoadAwareSchedulingAggregatedArgs_To_config_LoadAwareSchedulingAggregatedArgs added in v1.1.0

func Convert_v1beta2_LoadAwareSchedulingAggregatedArgs_To_config_LoadAwareSchedulingAggregatedArgs(in *LoadAwareSchedulingAggregatedArgs, out *config.LoadAwareSchedulingAggregatedArgs, s conversion.Scope) error

Convert_v1beta2_LoadAwareSchedulingAggregatedArgs_To_config_LoadAwareSchedulingAggregatedArgs is an autogenerated conversion function.

func Convert_v1beta2_LoadAwareSchedulingArgs_To_config_LoadAwareSchedulingArgs

func Convert_v1beta2_LoadAwareSchedulingArgs_To_config_LoadAwareSchedulingArgs(in *LoadAwareSchedulingArgs, out *config.LoadAwareSchedulingArgs, s conversion.Scope) error

func Convert_v1beta2_NodeNUMAResourceArgs_To_config_NodeNUMAResourceArgs added in v1.0.0

func Convert_v1beta2_NodeNUMAResourceArgs_To_config_NodeNUMAResourceArgs(in *NodeNUMAResourceArgs, out *config.NodeNUMAResourceArgs, s conversion.Scope) error

Convert_v1beta2_NodeNUMAResourceArgs_To_config_NodeNUMAResourceArgs is an autogenerated conversion function.

func Convert_v1beta2_ReservationArgs_To_config_ReservationArgs added in v1.0.0

func Convert_v1beta2_ReservationArgs_To_config_ReservationArgs(in *ReservationArgs, out *config.ReservationArgs, s conversion.Scope) error

Convert_v1beta2_ReservationArgs_To_config_ReservationArgs is an autogenerated conversion function.

func Convert_v1beta2_ScoringStrategy_To_config_ScoringStrategy added in v1.0.0

func Convert_v1beta2_ScoringStrategy_To_config_ScoringStrategy(in *ScoringStrategy, out *config.ScoringStrategy, s conversion.Scope) error

Convert_v1beta2_ScoringStrategy_To_config_ScoringStrategy is an autogenerated conversion function.

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

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_CoschedulingArgs added in v1.0.0

func SetDefaults_CoschedulingArgs(obj *CoschedulingArgs)

func SetDefaults_DeviceShareArgs added in v1.3.0

func SetDefaults_DeviceShareArgs(obj *DeviceShareArgs)

func SetDefaults_ElasticQuotaArgs added in v1.0.0

func SetDefaults_ElasticQuotaArgs(obj *ElasticQuotaArgs)

func SetDefaults_LoadAwareSchedulingArgs

func SetDefaults_LoadAwareSchedulingArgs(obj *LoadAwareSchedulingArgs)

SetDefaults_LoadAwareSchedulingArgs sets the default parameters for LoadAwareScheduling plugin.

func SetDefaults_NodeNUMAResourceArgs added in v1.0.0

func SetDefaults_NodeNUMAResourceArgs(obj *NodeNUMAResourceArgs)

SetDefaults_NodeNUMAResourceArgs sets the default parameters for NodeNUMANodeResource plugin.

func SetDefaults_ReservationArgs added in v1.0.0

func SetDefaults_ReservationArgs(obj *ReservationArgs)

func SetObjectDefaults_CoschedulingArgs added in v1.0.0

func SetObjectDefaults_CoschedulingArgs(in *CoschedulingArgs)

func SetObjectDefaults_DeviceShareArgs added in v1.3.0

func SetObjectDefaults_DeviceShareArgs(in *DeviceShareArgs)

func SetObjectDefaults_ElasticQuotaArgs added in v1.0.0

func SetObjectDefaults_ElasticQuotaArgs(in *ElasticQuotaArgs)

func SetObjectDefaults_LoadAwareSchedulingArgs

func SetObjectDefaults_LoadAwareSchedulingArgs(in *LoadAwareSchedulingArgs)

func SetObjectDefaults_NodeNUMAResourceArgs added in v1.0.0

func SetObjectDefaults_NodeNUMAResourceArgs(in *NodeNUMAResourceArgs)

func SetObjectDefaults_ReservationArgs added in v1.0.0

func SetObjectDefaults_ReservationArgs(in *ReservationArgs)

Types

type CPUBindPolicy added in v1.0.0

type CPUBindPolicy = string

CPUBindPolicy defines the CPU binding policy

type CPUExclusivePolicy added in v1.0.0

type CPUExclusivePolicy = extension.CPUExclusivePolicy
const (
	// CPUExclusivePolicyNone does not perform any exclusive policy
	CPUExclusivePolicyNone CPUExclusivePolicy = extension.CPUExclusivePolicyNone
	// CPUExclusivePolicyPCPULevel represents mutual exclusion in the physical core dimension
	CPUExclusivePolicyPCPULevel CPUExclusivePolicy = extension.CPUExclusivePolicyPCPULevel
	// CPUExclusivePolicyNUMANodeLevel indicates mutual exclusion in the NUMA topology dimension
	CPUExclusivePolicyNUMANodeLevel CPUExclusivePolicy = extension.CPUExclusivePolicyNUMANodeLevel
)

type CoschedulingArgs added in v1.0.0

type CoschedulingArgs struct {
	metav1.TypeMeta

	// DefaultTimeout is the default gang's waiting time in Permit stage
	// default is 600 seconds
	DefaultTimeout *metav1.Duration `json:"defaultTimeout,omitempty"`
	// Workers number of controller
	// default is 1
	ControllerWorkers *int64 `json:"controllerWorkers,omitempty"`
	// Skip check schedule cycle
	// default is false
	SkipCheckScheduleCycle *bool `json:"skipCheckScheduleCycle,omitempty"`
}

CoschedulingArgs defines the parameters for Gang Scheduling plugin.

func (*CoschedulingArgs) DeepCopy added in v1.0.0

func (in *CoschedulingArgs) DeepCopy() *CoschedulingArgs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoschedulingArgs.

func (*CoschedulingArgs) DeepCopyInto added in v1.0.0

func (in *CoschedulingArgs) DeepCopyInto(out *CoschedulingArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CoschedulingArgs) DeepCopyObject added in v1.0.0

func (in *CoschedulingArgs) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DeviceShareArgs added in v1.2.0

type DeviceShareArgs struct {
	metav1.TypeMeta

	// Allocator indicates the expected allocator to use
	// Deprecated: Adapting to different allocators is no longer supported.
	Allocator string `json:"allocator,omitempty"`
	// ScoringStrategy selects the device resource scoring strategy.
	ScoringStrategy *ScoringStrategy `json:"scoringStrategy,omitempty"`
}

DeviceShareArgs defines the parameters for DeviceShare plugin.

func (*DeviceShareArgs) DeepCopy added in v1.2.0

func (in *DeviceShareArgs) DeepCopy() *DeviceShareArgs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceShareArgs.

func (*DeviceShareArgs) DeepCopyInto added in v1.2.0

func (in *DeviceShareArgs) DeepCopyInto(out *DeviceShareArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DeviceShareArgs) DeepCopyObject added in v1.2.0

func (in *DeviceShareArgs) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ElasticQuotaArgs added in v1.0.0

type ElasticQuotaArgs struct {
	metav1.TypeMeta

	// DelayEvictTime is the duration to handle the jitter of used and runtime
	DelayEvictTime *metav1.Duration `json:"delayEvictTime,omitempty"`

	// RevokePodInterval is the interval to check quotaGroup's used and runtime
	RevokePodInterval *metav1.Duration `json:"revokePodInterval,omitempty"`

	// DefaultQuotaGroupMax limit the maxQuota of DefaultQuotaGroup
	DefaultQuotaGroupMax corev1.ResourceList `json:"defaultQuotaGroupMax,omitempty"`

	// SystemQuotaGroupMax limit the maxQuota of SystemQuotaGroup
	SystemQuotaGroupMax corev1.ResourceList `json:"systemQuotaGroupMax,omitempty"`

	// QuotaGroupNamespace is the namespace of the DefaultQuotaGroup
	QuotaGroupNamespace string `json:"quotaGroupNamespace,omitempty"`

	// MonitorAllQuotas monitor the quotaGroups' used and runtime Quota to revoke pods
	MonitorAllQuotas *bool `json:"monitorAllQuotas,omitempty"`

	// EnableCheckParentQuota check parentQuotaGroups' used and runtime Quota in PreFilter
	EnableCheckParentQuota *bool `json:"enableCheckParentQuota,omitempty"`

	// EnableRuntimeQuota if false, use max instead of runtime for all checks.
	EnableRuntimeQuota *bool `json:"enableRuntimeQuota,omitempty"`
}

ElasticQuotaArgs holds arguments used to configure the ElasticQuota plugin.

func (*ElasticQuotaArgs) DeepCopy added in v1.0.0

func (in *ElasticQuotaArgs) DeepCopy() *ElasticQuotaArgs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ElasticQuotaArgs.

func (*ElasticQuotaArgs) DeepCopyInto added in v1.0.0

func (in *ElasticQuotaArgs) DeepCopyInto(out *ElasticQuotaArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ElasticQuotaArgs) DeepCopyObject added in v1.0.0

func (in *ElasticQuotaArgs) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type LoadAwareSchedulingAggregatedArgs added in v1.1.0

type LoadAwareSchedulingAggregatedArgs struct {
	// UsageThresholds indicates the resource utilization threshold of the machine based on percentile statistics
	UsageThresholds map[corev1.ResourceName]int64 `json:"usageThresholds,omitempty"`
	// UsageAggregationType indicates the percentile type of the machine's utilization when filtering
	UsageAggregationType extension.AggregationType `json:"usageAggregationType,omitempty"`
	// UsageAggregatedDuration indicates the statistical period of the percentile of the machine's utilization when filtering
	UsageAggregatedDuration *metav1.Duration `json:"usageAggregatedDuration,omitempty"`

	// ScoreAggregationType indicates the percentile type of the machine's utilization when scoring
	ScoreAggregationType extension.AggregationType `json:"scoreAggregationType,omitempty"`
	// ScoreAggregatedDuration indicates the statistical period of the percentile of Prod Pod's utilization when scoring
	ScoreAggregatedDuration *metav1.Duration `json:"scoreAggregatedDuration,omitempty"`
}

func (*LoadAwareSchedulingAggregatedArgs) DeepCopy added in v1.1.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadAwareSchedulingAggregatedArgs.

func (*LoadAwareSchedulingAggregatedArgs) DeepCopyInto added in v1.1.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LoadAwareSchedulingArgs

type LoadAwareSchedulingArgs struct {
	metav1.TypeMeta `json:",inline"`

	// FilterExpiredNodeMetrics indicates whether to filter nodes where koordlet fails to update NodeMetric.
	FilterExpiredNodeMetrics *bool `json:"filterExpiredNodeMetrics,omitempty"`
	// NodeMetricExpirationSeconds indicates the NodeMetric expiration in seconds.
	// When NodeMetrics expired, the node is considered abnormal.
	// Default is 180 seconds.
	NodeMetricExpirationSeconds *int64 `json:"nodeMetricExpirationSeconds,omitempty"`
	// ResourceWeights indicates the weights of resources.
	// The weights of CPU and Memory are both 1 by default.
	ResourceWeights map[corev1.ResourceName]int64 `json:"resourceWeights,omitempty"`
	// UsageThresholds indicates the resource utilization threshold of the whole machine.
	// The default for CPU is 65%, and the default for memory is 95%.
	UsageThresholds map[corev1.ResourceName]int64 `json:"usageThresholds,omitempty"`
	// ProdUsageThresholds indicates the resource utilization threshold of Prod Pods compared to the whole machine.
	// Not enabled by default
	ProdUsageThresholds map[corev1.ResourceName]int64 `json:"prodUsageThresholds,omitempty"`
	// ScoreAccordingProdUsage controls whether to score according to the utilization of Prod Pod
	ScoreAccordingProdUsage *bool `json:"scoreAccordingProdUsage,omitempty"`
	// Estimator indicates the expected Estimator to use
	Estimator string `json:"estimator,omitempty"`
	// EstimatedScalingFactors indicates the factor when estimating resource usage.
	// The default value of CPU is 85%, and the default value of Memory is 70%.
	EstimatedScalingFactors map[corev1.ResourceName]int64 `json:"estimatedScalingFactors,omitempty"`
	// Aggregated supports resource utilization filtering and scoring based on percentile statistics
	Aggregated *LoadAwareSchedulingAggregatedArgs `json:"aggregated,omitempty"`
}

LoadAwareSchedulingArgs holds arguments used to configure the LoadAwareScheduling plugin.

func (*LoadAwareSchedulingArgs) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadAwareSchedulingArgs.

func (*LoadAwareSchedulingArgs) DeepCopyInto

func (in *LoadAwareSchedulingArgs) DeepCopyInto(out *LoadAwareSchedulingArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*LoadAwareSchedulingArgs) DeepCopyObject

func (in *LoadAwareSchedulingArgs) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NUMAAllocateStrategy added in v1.0.0

type NUMAAllocateStrategy = extension.NUMAAllocateStrategy

NUMAAllocateStrategy indicates how to choose satisfied NUMA Nodes during binding CPUs

const (
	// NUMAMostAllocated indicates that allocates from the NUMA Node with the least amount of available resource.
	NUMAMostAllocated NUMAAllocateStrategy = extension.NUMAMostAllocated
	// NUMALeastAllocated indicates that allocates from the NUMA Node with the most amount of available resource.
	NUMALeastAllocated NUMAAllocateStrategy = extension.NUMALeastAllocated
	// NUMADistributeEvenly indicates that evenly distribute CPUs across NUMA Nodes.
	NUMADistributeEvenly NUMAAllocateStrategy = extension.NUMADistributeEvenly
)

type NodeNUMAResourceArgs added in v1.0.0

type NodeNUMAResourceArgs struct {
	metav1.TypeMeta

	// DefaultCPUBindPolicy represents the default CPU bind policy.
	// If it is empty and the Pod does not declare a binding policy,
	// the core will not be bound to the LSE/LSR type Pod.
	DefaultCPUBindPolicy *CPUBindPolicy `json:"defaultCPUBindPolicy,omitempty"`
	// ScoringStrategy is used to configure the scoring strategy of the node-level.
	ScoringStrategy *ScoringStrategy `json:"scoringStrategy,omitempty"`
	// NUMAScoringStrategy is used to configure the scoring strategy of the NUMANode-level
	NUMAScoringStrategy *ScoringStrategy `json:"numaScoringStrategy,omitempty"`
}

NodeNUMAResourceArgs holds arguments used to configure the NodeNUMAResource plugin.

func (*NodeNUMAResourceArgs) DeepCopy added in v1.0.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeNUMAResourceArgs.

func (*NodeNUMAResourceArgs) DeepCopyInto added in v1.0.0

func (in *NodeNUMAResourceArgs) DeepCopyInto(out *NodeNUMAResourceArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeNUMAResourceArgs) DeepCopyObject added in v1.0.0

func (in *NodeNUMAResourceArgs) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ReservationArgs added in v1.0.0

type ReservationArgs struct {
	metav1.TypeMeta

	// EnablePreemption indicates whether to enable preemption for reservations.
	EnablePreemption *bool `json:"enablePreemption,omitempty"`
}

ReservationArgs holds arguments used to configure the Reservation plugin.

func (*ReservationArgs) DeepCopy added in v1.0.0

func (in *ReservationArgs) DeepCopy() *ReservationArgs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReservationArgs.

func (*ReservationArgs) DeepCopyInto added in v1.0.0

func (in *ReservationArgs) DeepCopyInto(out *ReservationArgs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReservationArgs) DeepCopyObject added in v1.0.0

func (in *ReservationArgs) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ScoringStrategy added in v1.0.0

type ScoringStrategy struct {
	// Type selects which strategy to run.
	Type ScoringStrategyType `json:"type,omitempty"`

	// Resources a list of pairs <resource, weight> to be considered while scoring
	// allowed weights start from 1.
	Resources []schedconfigv1beta2.ResourceSpec `json:"resources,omitempty"`
}

ScoringStrategy define ScoringStrategyType for the plugin

func (*ScoringStrategy) DeepCopy added in v1.0.0

func (in *ScoringStrategy) DeepCopy() *ScoringStrategy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScoringStrategy.

func (*ScoringStrategy) DeepCopyInto added in v1.0.0

func (in *ScoringStrategy) DeepCopyInto(out *ScoringStrategy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ScoringStrategyType added in v1.0.0

type ScoringStrategyType string

ScoringStrategyType is a "string" type.

const (
	// MostAllocated strategy favors node with the least amount of available resource
	MostAllocated ScoringStrategyType = "MostAllocated"
	// BalancedAllocation strategy favors nodes with balanced resource usage rate
	BalancedAllocation ScoringStrategyType = "BalancedAllocation"
	// LeastAllocated strategy favors node with the most amount of available resource
	LeastAllocated ScoringStrategyType = "LeastAllocated"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL