sched

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultProfileName         = "topology-aware-scheduler"
	DefaultResyncPeriod        = 5 * time.Second
	DefaultVerbose             = 4
	DefaultCtrlPlaneAffinity   = true
	DefaultLeaderElectResource = manifests.LeaderElectionDefaultNamespace + "/" + manifests.LeaderElectionDefaultName
)
View Source
const (
	NamespaceOpenShift = "openshift-topology-aware-scheduler"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifests

type Manifests struct {
	// common
	Crd       *apiextensionv1.CustomResourceDefinition
	Namespace *corev1.Namespace
	// controller
	SAController  *corev1.ServiceAccount
	CRController  *rbacv1.ClusterRole
	CRBController *rbacv1.ClusterRoleBinding
	RBController  *rbacv1.RoleBinding
	DPController  *appsv1.Deployment
	// scheduler proper
	SAScheduler      *corev1.ServiceAccount
	CRScheduler      *rbacv1.ClusterRole
	RSchedulerElect  *rbacv1.Role
	CRBScheduler     *rbacv1.ClusterRoleBinding
	RBSchedulerAuth  *rbacv1.RoleBinding
	RBSchedulerElect *rbacv1.RoleBinding
	DPScheduler      *appsv1.Deployment
	ConfigMap        *corev1.ConfigMap
	// contains filtered or unexported fields
}

func GetManifests

func GetManifests(plat platform.Platform, namespace string) (Manifests, error)

func New added in v0.0.9

func New(plat platform.Platform) Manifests

func (Manifests) Clone

func (mf Manifests) Clone() Manifests

func (Manifests) Render added in v0.2.0

func (mf Manifests) Render(logger logr.Logger, opts options.Scheduler) (Manifests, error)

func (Manifests) ToObjects

func (mf Manifests) ToObjects() []client.Object

Jump to

Keyboard shortcuts

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