scheduling

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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

type Config

type Config struct {
	VirtualSchedulerEnabled bool
	HybridSchedulingEnabled bool
	HostSchedulers          []string
}

func (*Config) IsSchedulerFromVirtualCluster

func (c *Config) IsSchedulerFromVirtualCluster(schedulerName string) bool

IsSchedulerFromVirtualCluster checks if the pod uses a scheduler from the virtual cluster.

Jump to

Keyboard shortcuts

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