Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsSchedulerFromVirtualCluster = func(_ string, virtualSchedulerEnabled, _ bool, _ []string) bool {
return virtualSchedulerEnabled
}
IsSchedulerFromVirtualCluster checks if the pod uses a scheduler from the virtual cluster.
View Source
var NewConfig = func(virtualSchedulerEnabled, hybridSchedulingEnabled bool, _ []string) (Config, error) { if hybridSchedulingEnabled { return Config{}, pro.NewFeatureError(string(licenseapi.HybridScheduling)) } return Config{ VirtualSchedulerEnabled: virtualSchedulerEnabled, }, nil }
NewConfig creates a new scheduling config with specified vCluster scheduling options. In the case of vcluster OSS when Hybrid Scheduling is enabled, this func returns an error, because Hybrid Scheduling is a Pro-only feature.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.