package profile
import "k8s.io/kubernetes/pkg/scheduler/profile"
Package profile holds the definition of a scheduling Profile.
Index ¶
- type Map
- func NewMap(ctx context.Context, cfgs []config.KubeSchedulerProfile, r frameworkruntime.Registry, recorderFact RecorderFactory, opts ...frameworkruntime.Option) (Map, error)
- func (m Map) Close() error
- func (m Map) HandlesSchedulerName(name string) bool
- type RecorderFactory
Types ¶
type Map ¶
Map holds frameworks indexed by scheduler name.
func NewMap ¶
func NewMap(ctx context.Context, cfgs []config.KubeSchedulerProfile, r frameworkruntime.Registry, recorderFact RecorderFactory, opts ...frameworkruntime.Option) (Map, error)
NewMap builds the frameworks given by the configuration, indexed by name.
func (Map) Close ¶
Close closes all frameworks registered in this map.
func (Map) HandlesSchedulerName ¶
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.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 3 hours ago –
Tools for package owners.