kubernetesk8s.io/kubernetes/pkg/scheduler/profile Index | Files

package profile

import "k8s.io/kubernetes/pkg/scheduler/profile"

Package profile holds the definition of a scheduling Profile.

Index

Types

type Map

type Map map[string]framework.Framework

Map holds frameworks indexed by scheduler name.

func NewMap

func NewMap(cfgs []config.KubeSchedulerProfile, r frameworkruntime.Registry, recorderFact RecorderFactory,
	stopCh <-chan struct{}, opts ...frameworkruntime.Option) (Map, error)

NewMap builds the frameworks given by the configuration, indexed by name.

func (Map) HandlesSchedulerName

func (m Map) HandlesSchedulerName(name string) bool

HandlesSchedulerName returns whether a profile handles the given scheduler name.

type RecorderFactory

type RecorderFactory func(string) events.EventRecorder

RecorderFactory builds an EventRecorder for a given scheduler name.

func NewRecorderFactory

func NewRecorderFactory(b events.EventBroadcaster) RecorderFactory

NewRecorderFactory returns a RecorderFactory for the broadcaster.

Source Files

profile.go

Version
v1.26.4
Published
Apr 12, 2023
Platform
linux/amd64
Imports
9 packages
Last checked
11 minutes ago

Tools for package owners.