Documentation
¶
Overview ¶
Package v1 is the v1 version of the API.
Index ¶
- Variables
- func Convert_config_CoschedulingArgs_To_v1_CoschedulingArgs(in *config.CoschedulingArgs, out *CoschedulingArgs, s conversion.Scope) error
- func Convert_config_LoadVariationRiskBalancingArgs_To_v1_LoadVariationRiskBalancingArgs(in *config.LoadVariationRiskBalancingArgs, out *LoadVariationRiskBalancingArgs, ...) error
- func Convert_config_LowRiskOverCommitmentArgs_To_v1_LowRiskOverCommitmentArgs(in *config.LowRiskOverCommitmentArgs, out *LowRiskOverCommitmentArgs, ...) error
- func Convert_config_MetricProviderSpec_To_v1_MetricProviderSpec(in *config.MetricProviderSpec, out *MetricProviderSpec, s conversion.Scope) error
- func Convert_config_NetworkOverheadArgs_To_v1_NetworkOverheadArgs(in *config.NetworkOverheadArgs, out *NetworkOverheadArgs, s conversion.Scope) error
- func Convert_config_NodeResourceTopologyCache_To_v1_NodeResourceTopologyCache(in *config.NodeResourceTopologyCache, out *NodeResourceTopologyCache, ...) error
- func Convert_config_NodeResourceTopologyMatchArgs_To_v1_NodeResourceTopologyMatchArgs(in *config.NodeResourceTopologyMatchArgs, out *NodeResourceTopologyMatchArgs, ...) error
- func Convert_config_NodeResourcesAllocatableArgs_To_v1_NodeResourcesAllocatableArgs(in *config.NodeResourcesAllocatableArgs, out *NodeResourcesAllocatableArgs, ...) error
- func Convert_config_PreemptionTolerationArgs_To_v1_PreemptionTolerationArgs(in *config.PreemptionTolerationArgs, out *PreemptionTolerationArgs, ...) error
- func Convert_config_ScoringStrategy_To_v1_ScoringStrategy(in *config.ScoringStrategy, out *ScoringStrategy, s conversion.Scope) error
- func Convert_config_SySchedArgs_To_v1_SySchedArgs(in *config.SySchedArgs, out *SySchedArgs, s conversion.Scope) error
- func Convert_config_TargetLoadPackingArgs_To_v1_TargetLoadPackingArgs(in *config.TargetLoadPackingArgs, out *TargetLoadPackingArgs, ...) error
- func Convert_config_TopologicalSortArgs_To_v1_TopologicalSortArgs(in *config.TopologicalSortArgs, out *TopologicalSortArgs, s conversion.Scope) error
- func Convert_config_TrimaranSpec_To_v1_TrimaranSpec(in *config.TrimaranSpec, out *TrimaranSpec, s conversion.Scope) error
- func Convert_v1_CoschedulingArgs_To_config_CoschedulingArgs(in *CoschedulingArgs, out *config.CoschedulingArgs, s conversion.Scope) error
- func Convert_v1_LoadVariationRiskBalancingArgs_To_config_LoadVariationRiskBalancingArgs(in *LoadVariationRiskBalancingArgs, out *config.LoadVariationRiskBalancingArgs, ...) error
- func Convert_v1_LowRiskOverCommitmentArgs_To_config_LowRiskOverCommitmentArgs(in *LowRiskOverCommitmentArgs, out *config.LowRiskOverCommitmentArgs, ...) error
- func Convert_v1_MetricProviderSpec_To_config_MetricProviderSpec(in *MetricProviderSpec, out *config.MetricProviderSpec, s conversion.Scope) error
- func Convert_v1_NetworkOverheadArgs_To_config_NetworkOverheadArgs(in *NetworkOverheadArgs, out *config.NetworkOverheadArgs, s conversion.Scope) error
- func Convert_v1_NodeResourceTopologyCache_To_config_NodeResourceTopologyCache(in *NodeResourceTopologyCache, out *config.NodeResourceTopologyCache, ...) error
- func Convert_v1_NodeResourceTopologyMatchArgs_To_config_NodeResourceTopologyMatchArgs(in *NodeResourceTopologyMatchArgs, out *config.NodeResourceTopologyMatchArgs, ...) error
- func Convert_v1_NodeResourcesAllocatableArgs_To_config_NodeResourcesAllocatableArgs(in *NodeResourcesAllocatableArgs, out *config.NodeResourcesAllocatableArgs, ...) error
- func Convert_v1_PreemptionTolerationArgs_To_config_PreemptionTolerationArgs(in *PreemptionTolerationArgs, out *config.PreemptionTolerationArgs, ...) error
- func Convert_v1_ScoringStrategy_To_config_ScoringStrategy(in *ScoringStrategy, out *config.ScoringStrategy, s conversion.Scope) error
- func Convert_v1_SySchedArgs_To_config_SySchedArgs(in *SySchedArgs, out *config.SySchedArgs, s conversion.Scope) error
- func Convert_v1_TargetLoadPackingArgs_To_config_TargetLoadPackingArgs(in *TargetLoadPackingArgs, out *config.TargetLoadPackingArgs, ...) error
- func Convert_v1_TopologicalSortArgs_To_config_TopologicalSortArgs(in *TopologicalSortArgs, out *config.TopologicalSortArgs, s conversion.Scope) error
- func Convert_v1_TrimaranSpec_To_config_TrimaranSpec(in *TrimaranSpec, out *config.TrimaranSpec, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func SetDefaultTrimaranSpec(args *TrimaranSpec)
- func SetDefaults_CoschedulingArgs(obj *CoschedulingArgs)
- func SetDefaults_LoadVariationRiskBalancingArgs(args *LoadVariationRiskBalancingArgs)
- func SetDefaults_LowRiskOverCommitmentArgs(args *LowRiskOverCommitmentArgs)
- func SetDefaults_NetworkOverheadArgs(obj *NetworkOverheadArgs)
- func SetDefaults_NodeResourceTopologyMatchArgs(obj *NodeResourceTopologyMatchArgs)
- func SetDefaults_NodeResourcesAllocatableArgs(obj *NodeResourcesAllocatableArgs)
- func SetDefaults_PreemptionTolerationArgs(obj *PreemptionTolerationArgs)
- func SetDefaults_SySchedArgs(obj *SySchedArgs)
- func SetDefaults_TargetLoadPackingArgs(args *TargetLoadPackingArgs)
- func SetDefaults_TopologicalSortArgs(obj *TopologicalSortArgs)
- func SetObjectDefaults_CoschedulingArgs(in *CoschedulingArgs)
- func SetObjectDefaults_LoadVariationRiskBalancingArgs(in *LoadVariationRiskBalancingArgs)
- func SetObjectDefaults_LowRiskOverCommitmentArgs(in *LowRiskOverCommitmentArgs)
- func SetObjectDefaults_NetworkOverheadArgs(in *NetworkOverheadArgs)
- func SetObjectDefaults_NodeResourceTopologyMatchArgs(in *NodeResourceTopologyMatchArgs)
- func SetObjectDefaults_NodeResourcesAllocatableArgs(in *NodeResourcesAllocatableArgs)
- func SetObjectDefaults_PreemptionTolerationArgs(in *PreemptionTolerationArgs)
- func SetObjectDefaults_SySchedArgs(in *SySchedArgs)
- func SetObjectDefaults_TargetLoadPackingArgs(in *TargetLoadPackingArgs)
- func SetObjectDefaults_TopologicalSortArgs(in *TopologicalSortArgs)
- type CacheInformerMode
- type CacheResyncMethod
- type CoschedulingArgs
- type ForeignPodsDetectMode
- type LoadVariationRiskBalancingArgs
- type LowRiskOverCommitmentArgs
- type MetricProviderSpec
- type MetricProviderType
- type ModeType
- type NetworkOverheadArgs
- type NodeResourceTopologyCache
- type NodeResourceTopologyMatchArgs
- type NodeResourcesAllocatableArgs
- type PreemptionTolerationArgs
- type ScoringStrategy
- type ScoringStrategyType
- type SySchedArgs
- type TargetLoadPackingArgs
- type TopologicalSortArgs
- type TrimaranSpec
Constants ¶
This section is empty.
Variables ¶
var ( // Default 1 core CPU usage for containers without requests and limits i.e. Best Effort QoS. DefaultRequestsMilliCores int64 = 1000 // DefaultRequestsMultiplier for containers without limits predicted as 1.5*requests i.e. Burstable QoS class DefaultRequestsMultiplier = "1.5" // DefaultTargetUtilizationPercent Recommended to keep -10 than desired limit. DefaultTargetUtilizationPercent int64 = 40 // Risk is usually calculated as average (aka. mu) plus standard deviation (aka. sigma). // In order to allow customization in the calculation of risk, two parameters are provided: // Margin and Sensitivity. Margin is a multiplier of sigma, and Sensitivity is a root power of sigma. // For example, Margin=3 and Sensitivity=2 leads to a risk evaluated as: mu + 3 sqrt(sigma). // The default value for both parameters is 1, leading to: mu + sigma. // DefaultSafeVarianceMargin is one DefaultSafeVarianceMargin = 1.0 // DefaultSafeVarianceSensitivity is one DefaultSafeVarianceSensitivity = 1.0 // The default number of windows over which usage data metrics are smoothed. // DefaultSmoothingWindowSize is 5 (used by Prometheus) DefaultSmoothingWindowSize int64 = 5 // The default weight of risk due to limit for a resource DefaultRiskLimitWeight float64 = 0.5 // Resources fractional weight of risk due to limits specification [0,1] DefaultRiskLimitWeights = map[v1.ResourceName]float64{ v1.ResourceCPU: DefaultRiskLimitWeight, v1.ResourceMemory: DefaultRiskLimitWeight, } // DefaultMetricProviderType is the Kubernetes metrics server DefaultMetricProviderType = KubernetesMetricsServer // DefaultInsecureSkipVerify is whether to skip the certificate verification DefaultInsecureSkipVerify = true // Defaults for NetworkOverhead // DefaultWeightsName contains the default costs to be used by networkAware plugins DefaultWeightsName = "UserDefined" // DefaultNetworkTopologyName contains the networkTopology CR name to be used by networkAware plugins DefaultNetworkTopologyName = "nt-default" // Defaults for SySched // DefaultSySchedProfileNamespace is the namesapce of the default syscall profile CR for SySched plugin DefaultSySchedProfileNamespace = "default" // DefaultSySchedProfileName is the name of the default syscall profile CR for SySched plugin DefaultSySchedProfileName = "all-syscalls" )
var (
// AddToScheme is a global function that registers this API group & version to a scheme
AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: schedconfig.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_config_CoschedulingArgs_To_v1_CoschedulingArgs ¶
func Convert_config_CoschedulingArgs_To_v1_CoschedulingArgs(in *config.CoschedulingArgs, out *CoschedulingArgs, s conversion.Scope) error
Convert_config_CoschedulingArgs_To_v1_CoschedulingArgs is an autogenerated conversion function.
func Convert_config_LoadVariationRiskBalancingArgs_To_v1_LoadVariationRiskBalancingArgs ¶
func Convert_config_LoadVariationRiskBalancingArgs_To_v1_LoadVariationRiskBalancingArgs(in *config.LoadVariationRiskBalancingArgs, out *LoadVariationRiskBalancingArgs, s conversion.Scope) error
Convert_config_LoadVariationRiskBalancingArgs_To_v1_LoadVariationRiskBalancingArgs is an autogenerated conversion function.
func Convert_config_LowRiskOverCommitmentArgs_To_v1_LowRiskOverCommitmentArgs ¶ added in v0.26.7
func Convert_config_LowRiskOverCommitmentArgs_To_v1_LowRiskOverCommitmentArgs(in *config.LowRiskOverCommitmentArgs, out *LowRiskOverCommitmentArgs, s conversion.Scope) error
Convert_config_LowRiskOverCommitmentArgs_To_v1_LowRiskOverCommitmentArgs is an autogenerated conversion function.
func Convert_config_MetricProviderSpec_To_v1_MetricProviderSpec ¶
func Convert_config_MetricProviderSpec_To_v1_MetricProviderSpec(in *config.MetricProviderSpec, out *MetricProviderSpec, s conversion.Scope) error
Convert_config_MetricProviderSpec_To_v1_MetricProviderSpec is an autogenerated conversion function.
func Convert_config_NetworkOverheadArgs_To_v1_NetworkOverheadArgs ¶
func Convert_config_NetworkOverheadArgs_To_v1_NetworkOverheadArgs(in *config.NetworkOverheadArgs, out *NetworkOverheadArgs, s conversion.Scope) error
Convert_config_NetworkOverheadArgs_To_v1_NetworkOverheadArgs is an autogenerated conversion function.
func Convert_config_NodeResourceTopologyCache_To_v1_NodeResourceTopologyCache ¶ added in v0.26.7
func Convert_config_NodeResourceTopologyCache_To_v1_NodeResourceTopologyCache(in *config.NodeResourceTopologyCache, out *NodeResourceTopologyCache, s conversion.Scope) error
Convert_config_NodeResourceTopologyCache_To_v1_NodeResourceTopologyCache is an autogenerated conversion function.
func Convert_config_NodeResourceTopologyMatchArgs_To_v1_NodeResourceTopologyMatchArgs ¶
func Convert_config_NodeResourceTopologyMatchArgs_To_v1_NodeResourceTopologyMatchArgs(in *config.NodeResourceTopologyMatchArgs, out *NodeResourceTopologyMatchArgs, s conversion.Scope) error
func Convert_config_NodeResourcesAllocatableArgs_To_v1_NodeResourcesAllocatableArgs ¶
func Convert_config_NodeResourcesAllocatableArgs_To_v1_NodeResourcesAllocatableArgs(in *config.NodeResourcesAllocatableArgs, out *NodeResourcesAllocatableArgs, s conversion.Scope) error
Convert_config_NodeResourcesAllocatableArgs_To_v1_NodeResourcesAllocatableArgs is an autogenerated conversion function.
func Convert_config_PreemptionTolerationArgs_To_v1_PreemptionTolerationArgs ¶
func Convert_config_PreemptionTolerationArgs_To_v1_PreemptionTolerationArgs(in *config.PreemptionTolerationArgs, out *PreemptionTolerationArgs, s conversion.Scope) error
Convert_config_PreemptionTolerationArgs_To_v1_PreemptionTolerationArgs is an autogenerated conversion function.
func Convert_config_ScoringStrategy_To_v1_ScoringStrategy ¶
func Convert_config_ScoringStrategy_To_v1_ScoringStrategy(in *config.ScoringStrategy, out *ScoringStrategy, s conversion.Scope) error
Convert_config_ScoringStrategy_To_v1_ScoringStrategy is an autogenerated conversion function.
func Convert_config_SySchedArgs_To_v1_SySchedArgs ¶ added in v0.28.8
func Convert_config_SySchedArgs_To_v1_SySchedArgs(in *config.SySchedArgs, out *SySchedArgs, s conversion.Scope) error
Convert_config_SySchedArgs_To_v1_SySchedArgs is an autogenerated conversion function.
func Convert_config_TargetLoadPackingArgs_To_v1_TargetLoadPackingArgs ¶
func Convert_config_TargetLoadPackingArgs_To_v1_TargetLoadPackingArgs(in *config.TargetLoadPackingArgs, out *TargetLoadPackingArgs, s conversion.Scope) error
Convert_config_TargetLoadPackingArgs_To_v1_TargetLoadPackingArgs is an autogenerated conversion function.
func Convert_config_TopologicalSortArgs_To_v1_TopologicalSortArgs ¶
func Convert_config_TopologicalSortArgs_To_v1_TopologicalSortArgs(in *config.TopologicalSortArgs, out *TopologicalSortArgs, s conversion.Scope) error
Convert_config_TopologicalSortArgs_To_v1_TopologicalSortArgs is an autogenerated conversion function.
func Convert_config_TrimaranSpec_To_v1_TrimaranSpec ¶
func Convert_config_TrimaranSpec_To_v1_TrimaranSpec(in *config.TrimaranSpec, out *TrimaranSpec, s conversion.Scope) error
Convert_config_TrimaranSpec_To_v1_TrimaranSpec is an autogenerated conversion function.
func Convert_v1_CoschedulingArgs_To_config_CoschedulingArgs ¶
func Convert_v1_CoschedulingArgs_To_config_CoschedulingArgs(in *CoschedulingArgs, out *config.CoschedulingArgs, s conversion.Scope) error
Convert_v1_CoschedulingArgs_To_config_CoschedulingArgs is an autogenerated conversion function.
func Convert_v1_LoadVariationRiskBalancingArgs_To_config_LoadVariationRiskBalancingArgs ¶
func Convert_v1_LoadVariationRiskBalancingArgs_To_config_LoadVariationRiskBalancingArgs(in *LoadVariationRiskBalancingArgs, out *config.LoadVariationRiskBalancingArgs, s conversion.Scope) error
Convert_v1_LoadVariationRiskBalancingArgs_To_config_LoadVariationRiskBalancingArgs is an autogenerated conversion function.
func Convert_v1_LowRiskOverCommitmentArgs_To_config_LowRiskOverCommitmentArgs ¶ added in v0.26.7
func Convert_v1_LowRiskOverCommitmentArgs_To_config_LowRiskOverCommitmentArgs(in *LowRiskOverCommitmentArgs, out *config.LowRiskOverCommitmentArgs, s conversion.Scope) error
Convert_v1_LowRiskOverCommitmentArgs_To_config_LowRiskOverCommitmentArgs is an autogenerated conversion function.
func Convert_v1_MetricProviderSpec_To_config_MetricProviderSpec ¶
func Convert_v1_MetricProviderSpec_To_config_MetricProviderSpec(in *MetricProviderSpec, out *config.MetricProviderSpec, s conversion.Scope) error
Convert_v1_MetricProviderSpec_To_config_MetricProviderSpec is an autogenerated conversion function.
func Convert_v1_NetworkOverheadArgs_To_config_NetworkOverheadArgs ¶
func Convert_v1_NetworkOverheadArgs_To_config_NetworkOverheadArgs(in *NetworkOverheadArgs, out *config.NetworkOverheadArgs, s conversion.Scope) error
Convert_v1_NetworkOverheadArgs_To_config_NetworkOverheadArgs is an autogenerated conversion function.
func Convert_v1_NodeResourceTopologyCache_To_config_NodeResourceTopologyCache ¶ added in v0.26.7
func Convert_v1_NodeResourceTopologyCache_To_config_NodeResourceTopologyCache(in *NodeResourceTopologyCache, out *config.NodeResourceTopologyCache, s conversion.Scope) error
Convert_v1_NodeResourceTopologyCache_To_config_NodeResourceTopologyCache is an autogenerated conversion function.
func Convert_v1_NodeResourceTopologyMatchArgs_To_config_NodeResourceTopologyMatchArgs ¶
func Convert_v1_NodeResourceTopologyMatchArgs_To_config_NodeResourceTopologyMatchArgs(in *NodeResourceTopologyMatchArgs, out *config.NodeResourceTopologyMatchArgs, s conversion.Scope) error
func Convert_v1_NodeResourcesAllocatableArgs_To_config_NodeResourcesAllocatableArgs ¶
func Convert_v1_NodeResourcesAllocatableArgs_To_config_NodeResourcesAllocatableArgs(in *NodeResourcesAllocatableArgs, out *config.NodeResourcesAllocatableArgs, s conversion.Scope) error
Convert_v1_NodeResourcesAllocatableArgs_To_config_NodeResourcesAllocatableArgs is an autogenerated conversion function.
func Convert_v1_PreemptionTolerationArgs_To_config_PreemptionTolerationArgs ¶
func Convert_v1_PreemptionTolerationArgs_To_config_PreemptionTolerationArgs(in *PreemptionTolerationArgs, out *config.PreemptionTolerationArgs, s conversion.Scope) error
Convert_v1_PreemptionTolerationArgs_To_config_PreemptionTolerationArgs is an autogenerated conversion function.
func Convert_v1_ScoringStrategy_To_config_ScoringStrategy ¶
func Convert_v1_ScoringStrategy_To_config_ScoringStrategy(in *ScoringStrategy, out *config.ScoringStrategy, s conversion.Scope) error
Convert_v1_ScoringStrategy_To_config_ScoringStrategy is an autogenerated conversion function.
func Convert_v1_SySchedArgs_To_config_SySchedArgs ¶ added in v0.28.8
func Convert_v1_SySchedArgs_To_config_SySchedArgs(in *SySchedArgs, out *config.SySchedArgs, s conversion.Scope) error
Convert_v1_SySchedArgs_To_config_SySchedArgs is an autogenerated conversion function.
func Convert_v1_TargetLoadPackingArgs_To_config_TargetLoadPackingArgs ¶
func Convert_v1_TargetLoadPackingArgs_To_config_TargetLoadPackingArgs(in *TargetLoadPackingArgs, out *config.TargetLoadPackingArgs, s conversion.Scope) error
Convert_v1_TargetLoadPackingArgs_To_config_TargetLoadPackingArgs is an autogenerated conversion function.
func Convert_v1_TopologicalSortArgs_To_config_TopologicalSortArgs ¶
func Convert_v1_TopologicalSortArgs_To_config_TopologicalSortArgs(in *TopologicalSortArgs, out *config.TopologicalSortArgs, s conversion.Scope) error
Convert_v1_TopologicalSortArgs_To_config_TopologicalSortArgs is an autogenerated conversion function.
func Convert_v1_TrimaranSpec_To_config_TrimaranSpec ¶
func Convert_v1_TrimaranSpec_To_config_TrimaranSpec(in *TrimaranSpec, out *config.TrimaranSpec, s conversion.Scope) error
Convert_v1_TrimaranSpec_To_config_TrimaranSpec 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 SetDefaultTrimaranSpec ¶
func SetDefaultTrimaranSpec(args *TrimaranSpec)
SetDefaultTrimaranSpec sets the default parameters for common Trimaran plugins
func SetDefaults_CoschedulingArgs ¶
func SetDefaults_CoschedulingArgs(obj *CoschedulingArgs)
SetDefaults_CoschedulingArgs sets the default parameters for Coscheduling plugin.
func SetDefaults_LoadVariationRiskBalancingArgs ¶
func SetDefaults_LoadVariationRiskBalancingArgs(args *LoadVariationRiskBalancingArgs)
SetDefaults_LoadVariationRiskBalancingArgs sets the default parameters for LoadVariationRiskBalancing plugin
func SetDefaults_LowRiskOverCommitmentArgs ¶ added in v0.26.7
func SetDefaults_LowRiskOverCommitmentArgs(args *LowRiskOverCommitmentArgs)
SetDefaults_LowRiskOverCommitmentArgs sets the default parameters for LowRiskOverCommitment plugin
func SetDefaults_NetworkOverheadArgs ¶
func SetDefaults_NetworkOverheadArgs(obj *NetworkOverheadArgs)
SetDefaults_NetworkOverheadArgs sets the default parameters for NetworkMinCostArgs plugin.
func SetDefaults_NodeResourceTopologyMatchArgs ¶
func SetDefaults_NodeResourceTopologyMatchArgs(obj *NodeResourceTopologyMatchArgs)
SetDefaults_NodeResourceTopologyMatchArgs sets the default parameters for NodeResourceTopologyMatch plugin.
func SetDefaults_NodeResourcesAllocatableArgs ¶
func SetDefaults_NodeResourcesAllocatableArgs(obj *NodeResourcesAllocatableArgs)
SetDefaults_NodeResourcesAllocatableArgs sets the defaults parameters for NodeResourceAllocatable.
func SetDefaults_PreemptionTolerationArgs ¶
func SetDefaults_PreemptionTolerationArgs(obj *PreemptionTolerationArgs)
SetDefaults_PreemptionTolerationArgs reuses SetDefaults_DefaultPreemptionArgs
func SetDefaults_SySchedArgs ¶ added in v0.28.8
func SetDefaults_SySchedArgs(obj *SySchedArgs)
SetDefaults_SySchedArgs sets the default parameters for SySchedArgs plugin.
func SetDefaults_TargetLoadPackingArgs ¶
func SetDefaults_TargetLoadPackingArgs(args *TargetLoadPackingArgs)
SetDefaults_TargetLoadPackingArgs sets the default parameters for TargetLoadPacking plugin
func SetDefaults_TopologicalSortArgs ¶
func SetDefaults_TopologicalSortArgs(obj *TopologicalSortArgs)
SetDefaults_TopologicalSortArgs sets the default parameters for TopologicalSortArgs plugin.
func SetObjectDefaults_CoschedulingArgs ¶
func SetObjectDefaults_CoschedulingArgs(in *CoschedulingArgs)
func SetObjectDefaults_LoadVariationRiskBalancingArgs ¶
func SetObjectDefaults_LoadVariationRiskBalancingArgs(in *LoadVariationRiskBalancingArgs)
func SetObjectDefaults_LowRiskOverCommitmentArgs ¶ added in v0.26.7
func SetObjectDefaults_LowRiskOverCommitmentArgs(in *LowRiskOverCommitmentArgs)
func SetObjectDefaults_NetworkOverheadArgs ¶
func SetObjectDefaults_NetworkOverheadArgs(in *NetworkOverheadArgs)
func SetObjectDefaults_NodeResourceTopologyMatchArgs ¶
func SetObjectDefaults_NodeResourceTopologyMatchArgs(in *NodeResourceTopologyMatchArgs)
func SetObjectDefaults_NodeResourcesAllocatableArgs ¶
func SetObjectDefaults_NodeResourcesAllocatableArgs(in *NodeResourcesAllocatableArgs)
func SetObjectDefaults_PreemptionTolerationArgs ¶
func SetObjectDefaults_PreemptionTolerationArgs(in *PreemptionTolerationArgs)
func SetObjectDefaults_SySchedArgs ¶ added in v0.28.8
func SetObjectDefaults_SySchedArgs(in *SySchedArgs)
func SetObjectDefaults_TargetLoadPackingArgs ¶
func SetObjectDefaults_TargetLoadPackingArgs(in *TargetLoadPackingArgs)
func SetObjectDefaults_TopologicalSortArgs ¶
func SetObjectDefaults_TopologicalSortArgs(in *TopologicalSortArgs)
Types ¶
type CacheInformerMode ¶ added in v0.28.8
type CacheInformerMode string
CacheInformerMode is a "string" type
const ( CacheInformerDedicated CacheInformerMode = "Dedicated" )
type CacheResyncMethod ¶ added in v0.26.7
type CacheResyncMethod string
CacheResyncMethod is a "string" type.
const ( CacheResyncAutodetect CacheResyncMethod = "Autodetect" CacheResyncAll CacheResyncMethod = "All" CacheResyncOnlyExclusiveResources CacheResyncMethod = "OnlyExclusiveResources" )
type CoschedulingArgs ¶
type CoschedulingArgs struct { metav1.TypeMeta `json:",inline"` // PermitWaitingTimeSeconds is the waiting timeout in seconds. PermitWaitingTimeSeconds *int64 `json:"permitWaitingTimeSeconds,omitempty"` // PodGroupBackoffSeconds is the backoff time in seconds before a pod group can be scheduled again. PodGroupBackoffSeconds *int64 `json:"podGroupBackoffSeconds,omitempty"` }
CoschedulingArgs defines the scheduling parameters for Coscheduling plugin.
func (*CoschedulingArgs) DeepCopy ¶
func (in *CoschedulingArgs) DeepCopy() *CoschedulingArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoschedulingArgs.
func (*CoschedulingArgs) DeepCopyInto ¶
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 ¶
func (in *CoschedulingArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ForeignPodsDetectMode ¶ added in v0.26.7
type ForeignPodsDetectMode string
ForeignPodsDetectMode is a "string" type.
const ( ForeignPodsDetectNone ForeignPodsDetectMode = "None" ForeignPodsDetectAll ForeignPodsDetectMode = "All" ForeignPodsDetectOnlyExclusiveResources ForeignPodsDetectMode = "OnlyExclusiveResources" )
type LoadVariationRiskBalancingArgs ¶
type LoadVariationRiskBalancingArgs struct { metav1.TypeMeta `json:",inline"` // Common parameters for trimaran plugins TrimaranSpec `json:",inline"` // Multiplier of standard deviation in risk value SafeVarianceMargin *float64 `json:"safeVarianceMargin,omitempty"` // Root power of standard deviation in risk value SafeVarianceSensitivity *float64 `json:"safeVarianceSensitivity,omitempty"` }
LoadVariationRiskBalancingArgs holds arguments used to configure LoadVariationRiskBalancing plugin.
func (*LoadVariationRiskBalancingArgs) DeepCopy ¶
func (in *LoadVariationRiskBalancingArgs) DeepCopy() *LoadVariationRiskBalancingArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadVariationRiskBalancingArgs.
func (*LoadVariationRiskBalancingArgs) DeepCopyInto ¶
func (in *LoadVariationRiskBalancingArgs) DeepCopyInto(out *LoadVariationRiskBalancingArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadVariationRiskBalancingArgs) DeepCopyObject ¶
func (in *LoadVariationRiskBalancingArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LowRiskOverCommitmentArgs ¶ added in v0.26.7
type LowRiskOverCommitmentArgs struct { metav1.TypeMeta `json:",inline"` // Common parameters for trimaran plugins TrimaranSpec `json:",inline"` // The number of windows over which usage data metrics are smoothed SmoothingWindowSize *int64 `json:"smoothingWindowSize,omitempty"` // Resources fractional weight of risk due to limits specification [0,1] RiskLimitWeights map[v1.ResourceName]float64 `json:"riskLimitWeights,omitempty"` }
LowRiskOverCommitmentArgs holds arguments used to configure LowRiskOverCommitment plugin.
func (*LowRiskOverCommitmentArgs) DeepCopy ¶ added in v0.26.7
func (in *LowRiskOverCommitmentArgs) DeepCopy() *LowRiskOverCommitmentArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LowRiskOverCommitmentArgs.
func (*LowRiskOverCommitmentArgs) DeepCopyInto ¶ added in v0.26.7
func (in *LowRiskOverCommitmentArgs) DeepCopyInto(out *LowRiskOverCommitmentArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LowRiskOverCommitmentArgs) DeepCopyObject ¶ added in v0.26.7
func (in *LowRiskOverCommitmentArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetricProviderSpec ¶
type MetricProviderSpec struct { // Types of the metric provider Type MetricProviderType `json:"type,omitempty"` // The address of the metric provider Address *string `json:"address,omitempty"` // The authentication token of the metric provider Token *string `json:"token,omitempty"` // Whether to enable the InsureSkipVerify options for https requests on Prometheus Metric Provider. InsecureSkipVerify *bool `json:"insecureSkipVerify,omitempty"` }
Denote the spec of the metric provider
func (*MetricProviderSpec) DeepCopy ¶
func (in *MetricProviderSpec) DeepCopy() *MetricProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricProviderSpec.
func (*MetricProviderSpec) DeepCopyInto ¶
func (in *MetricProviderSpec) DeepCopyInto(out *MetricProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricProviderType ¶
type MetricProviderType string
MetricProviderType is a "string" type.
const ( KubernetesMetricsServer MetricProviderType = "KubernetesMetricsServer" Prometheus MetricProviderType = "Prometheus" SignalFx MetricProviderType = "SignalFx" )
type NetworkOverheadArgs ¶
type NetworkOverheadArgs struct { metav1.TypeMeta `json:",inline"` // Namespaces to be considered by NetworkMinCost plugin Namespaces []string `json:"namespaces,omitempty"` // Preferred weights (Default: UserDefined) WeightsName *string `json:"weightsName,omitempty"` // The NetworkTopology CRD name NetworkTopologyName *string `json:"networkTopologyName,omitempty"` }
func (*NetworkOverheadArgs) DeepCopy ¶
func (in *NetworkOverheadArgs) DeepCopy() *NetworkOverheadArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkOverheadArgs.
func (*NetworkOverheadArgs) DeepCopyInto ¶
func (in *NetworkOverheadArgs) DeepCopyInto(out *NetworkOverheadArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkOverheadArgs) DeepCopyObject ¶
func (in *NetworkOverheadArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeResourceTopologyCache ¶ added in v0.26.7
type NodeResourceTopologyCache struct { // ForeignPodsDetect sets how foreign pods should be handled. // Foreign pods are pods detected running on nodes managed by a NodeResourceTopologyMatch-enabled // scheduler, but not scheduled by this scheduler instance, likely because this is running as // secondary scheduler. To make sure the cache is consistent, foreign pods need to be handled. // Has no effect if caching is disabled (CacheResyncPeriod is zero) or if DiscardReservedNodes // is enabled. If unspecified, default is "All". Use "None" to disable. ForeignPodsDetect *ForeignPodsDetectMode `json:"foreignPodsDetect,omitempty"` // ResyncMethod sets how the resync behaves to compute the expected node state. // "All" consider all pods to compute the node state. "OnlyExclusiveResources" consider // only pods regardless of their QoS which have exclusive resources assigned to their // containers (CPUs, devices...). // Has no effect if caching is disabled (CacheResyncPeriod is zero) or if DiscardReservedNodes // is enabled. "Autodetect" is the default, reads hint from NRT objects. Fallback is "All". ResyncMethod *CacheResyncMethod `json:"resyncMethod,omitempty"` // InformerMode controls the channel the cache uses to get updates about pods. // "Shared" uses the default settings; "Dedicated" creates a specific subscription which is // guaranteed to best suit the cache needs, at cost of one extra connection. // If unspecified, default is "Dedicated" InformerMode *CacheInformerMode `json:"informerMode,omitempty"` }
NodeResourceTopologyCache define configuration details for the NodeResourceTopology cache.
func (*NodeResourceTopologyCache) DeepCopy ¶ added in v0.26.7
func (in *NodeResourceTopologyCache) DeepCopy() *NodeResourceTopologyCache
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourceTopologyCache.
func (*NodeResourceTopologyCache) DeepCopyInto ¶ added in v0.26.7
func (in *NodeResourceTopologyCache) DeepCopyInto(out *NodeResourceTopologyCache)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeResourceTopologyMatchArgs ¶
type NodeResourceTopologyMatchArgs struct { metav1.TypeMeta `json:",inline"` // ScoringStrategy a scoring model that determine how the plugin will score the nodes. ScoringStrategy *ScoringStrategy `json:"scoringStrategy,omitempty"` // If > 0, enables the caching facilities of the reserve plugin - which must be enabled CacheResyncPeriodSeconds *int64 `json:"cacheResyncPeriodSeconds,omitempty"` // if set to true, exclude node from scheduling if there are any reserved pods for given node // this option takes precedence over CacheResyncPeriodSeconds // if DiscardReservedNodes is enabled, CacheResyncPeriodSeconds option is noop DiscardReservedNodes bool `json:"discardReservedNodes,omitempty"` // Cache enables to fine tune the caching behavior Cache *NodeResourceTopologyCache `json:"cache,omitempty"` }
NodeResourceTopologyMatchArgs holds arguments used to configure the NodeResourceTopologyMatch plugin
func (*NodeResourceTopologyMatchArgs) DeepCopy ¶
func (in *NodeResourceTopologyMatchArgs) DeepCopy() *NodeResourceTopologyMatchArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourceTopologyMatchArgs.
func (*NodeResourceTopologyMatchArgs) DeepCopyInto ¶
func (in *NodeResourceTopologyMatchArgs) DeepCopyInto(out *NodeResourceTopologyMatchArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeResourceTopologyMatchArgs) DeepCopyObject ¶
func (in *NodeResourceTopologyMatchArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeResourcesAllocatableArgs ¶
type NodeResourcesAllocatableArgs struct { metav1.TypeMeta `json:",inline"` // Resources to be considered when scoring. // Allowed weights start from 1. // An example resource set might include "cpu" (millicores) and "memory" (bytes) // with weights of 1<<20 and 1 respectfully. That would mean 1 MiB has equivalent // weight as 1 millicore. Resources []schedulerconfigv1.ResourceSpec `json:"resources,omitempty"` // Whether to prioritize nodes with least or most allocatable resources. Mode ModeType `json:"mode,omitempty"` }
NodeResourcesAllocatableArgs holds arguments used to configure NodeResourcesAllocatable plugin.
func (*NodeResourcesAllocatableArgs) DeepCopy ¶
func (in *NodeResourcesAllocatableArgs) DeepCopy() *NodeResourcesAllocatableArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourcesAllocatableArgs.
func (*NodeResourcesAllocatableArgs) DeepCopyInto ¶
func (in *NodeResourcesAllocatableArgs) DeepCopyInto(out *NodeResourcesAllocatableArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeResourcesAllocatableArgs) DeepCopyObject ¶
func (in *NodeResourcesAllocatableArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PreemptionTolerationArgs ¶
type PreemptionTolerationArgs schedulerconfigv1.DefaultPreemptionArgs
PreemptionTolerationArgs reuses DefaultPluginArgs.
func (*PreemptionTolerationArgs) DeepCopy ¶
func (in *PreemptionTolerationArgs) DeepCopy() *PreemptionTolerationArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreemptionTolerationArgs.
func (*PreemptionTolerationArgs) DeepCopyInto ¶
func (in *PreemptionTolerationArgs) DeepCopyInto(out *PreemptionTolerationArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PreemptionTolerationArgs) DeepCopyObject ¶
func (in *PreemptionTolerationArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScoringStrategy ¶
type ScoringStrategy struct { Type ScoringStrategyType `json:"type,omitempty"` Resources []schedulerconfigv1.ResourceSpec `json:"resources,omitempty"` }
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.
type ScoringStrategyType ¶
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" // LeastNUMANodes strategy favors nodes which requires least amount of NUMA nodes to satisfy resource requests for given pod LeastNUMANodes ScoringStrategyType = "LeastNUMANodes" )
type SySchedArgs ¶ added in v0.28.8
type SySchedArgs struct { metav1.TypeMeta `json:",inline"` // CR namespace of the default profile for all system calls DefaultProfileNamespace *string `json:"defaultProfileNamespace,omitempty"` // CR name of the default profile for all system calls DefaultProfileName *string `json:"defaultProfileName,omitempty"` }
func (*SySchedArgs) DeepCopy ¶ added in v0.28.8
func (in *SySchedArgs) DeepCopy() *SySchedArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SySchedArgs.
func (*SySchedArgs) DeepCopyInto ¶ added in v0.28.8
func (in *SySchedArgs) DeepCopyInto(out *SySchedArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SySchedArgs) DeepCopyObject ¶ added in v0.28.8
func (in *SySchedArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TargetLoadPackingArgs ¶
type TargetLoadPackingArgs struct { metav1.TypeMeta `json:",inline"` // Common parameters for trimaran plugins TrimaranSpec `json:",inline"` // Default requests to use for best effort QoS DefaultRequests v1.ResourceList `json:"defaultRequests,omitempty"` // Default requests multiplier for busrtable QoS DefaultRequestsMultiplier *string `json:"defaultRequestsMultiplier,omitempty"` // Node target CPU Utilization for bin packing TargetUtilization *int64 `json:"targetUtilization,omitempty"` }
TargetLoadPackingArgs holds arguments used to configure TargetLoadPacking plugin.
func (*TargetLoadPackingArgs) DeepCopy ¶
func (in *TargetLoadPackingArgs) DeepCopy() *TargetLoadPackingArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetLoadPackingArgs.
func (*TargetLoadPackingArgs) DeepCopyInto ¶
func (in *TargetLoadPackingArgs) DeepCopyInto(out *TargetLoadPackingArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TargetLoadPackingArgs) DeepCopyObject ¶
func (in *TargetLoadPackingArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TopologicalSortArgs ¶
type TopologicalSortArgs struct { metav1.TypeMeta `json:",inline"` // Namespaces to be considered by TopologySort plugin Namespaces []string `json:"namespaces,omitempty"` }
func (*TopologicalSortArgs) DeepCopy ¶
func (in *TopologicalSortArgs) DeepCopy() *TopologicalSortArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TopologicalSortArgs.
func (*TopologicalSortArgs) DeepCopyInto ¶
func (in *TopologicalSortArgs) DeepCopyInto(out *TopologicalSortArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TopologicalSortArgs) DeepCopyObject ¶
func (in *TopologicalSortArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TrimaranSpec ¶
type TrimaranSpec struct { // Metric Provider specification when using load watcher as library MetricProvider MetricProviderSpec `json:"metricProvider,omitempty"` // Address of load watcher service WatcherAddress *string `json:"watcherAddress,omitempty"` }
TrimaranSpec holds common parameters for trimaran plugins
func (*TrimaranSpec) DeepCopy ¶
func (in *TrimaranSpec) DeepCopy() *TrimaranSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrimaranSpec.
func (*TrimaranSpec) DeepCopyInto ¶
func (in *TrimaranSpec) DeepCopyInto(out *TrimaranSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.