kubernetesk8s.io/kubernetes/test/integration/scheduler Index | Files | Directories

package scheduler

import "k8s.io/kubernetes/test/integration/scheduler"

Index

Functions

func InitRegistryAndConfig

InitRegistryAndConfig returns registry and plugins config based on give plugins.

func InitTestSchedulerForFrameworkTest

func InitTestSchedulerForFrameworkTest(t *testing.T, testCtx *testutils.TestContext, nodeCount int, runScheduler bool, opts ...scheduler.Option) (*testutils.TestContext, testutils.ShutdownFunc)

The returned shutdown func will delete created resources and scheduler, resources should be those that will affect the scheduling result, like nodes, pods, etc.. Namespaces should not be deleted here because it's created together with the apiserver, they should be deleted simultaneously or we'll have no namespace. This should only be called when you want to kill the scheduler alone, away from apiserver. For example, in scheduler integration tests, recreating apiserver is performance consuming, then shutdown the scheduler and recreate it between each test case is a better approach.

func NewPlugin

NewPlugin returns a plugin factory with specified Plugin.

Source Files

util.go

Directories

PathSynopsis
test/integration/scheduler/bind
test/integration/scheduler/eventhandler
test/integration/scheduler/extender
test/integration/scheduler/filters
test/integration/scheduler/plugins
test/integration/scheduler/preemption
test/integration/scheduler/queueing
test/integration/scheduler/queueing/former
test/integration/scheduler/queueing/queueinghint
test/integration/scheduler/scoring
test/integration/scheduler/serving
test/integration/scheduler/taint
Version
v1.33.1 (latest)
Published
May 15, 2025
Platform
linux/amd64
Imports
18 packages
Last checked
9 hours ago

Tools for package owners.