scheduling

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 61 Imported by: 114

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHostPortPods

func CreateHostPortPods(f *framework.Framework, id string, replicas int, expectRunning bool)

CreateHostPortPods creates RC with host port 4321

func CreateNodeSelectorPods added in v1.8.0

func CreateNodeSelectorPods(f *framework.Framework, id string, replicas int, nodeSelector map[string]string, expectRunning bool) error

CreateNodeSelectorPods creates RC with host port 4321 and defines node selector

func Get2NodesThatCanRunPod added in v1.18.0

func Get2NodesThatCanRunPod(f *framework.Framework) []string

Get2NodesThatCanRunPod return a 2-node slice where can run pod.

func GetNodeThatCanRunPod

func GetNodeThatCanRunPod(f *framework.Framework) string

GetNodeThatCanRunPod trying to launch a pod without a label to get a node which can launch it

func GetPodsScheduled added in v1.18.0

func GetPodsScheduled(workerNodes sets.String, pods *v1.PodList) (scheduledPods, notScheduledPods []v1.Pod)

GetPodsScheduled returns a number of currently scheduled and not scheduled Pods on worker nodes.

func SIGDescribe added in v1.8.0

func SIGDescribe(text string, body func()) bool

SIGDescribe annotates the test with the SIG label.

func SetupNVIDIAGPUNode added in v1.10.0

func SetupNVIDIAGPUNode(f *framework.Framework, setupResourceGatherer bool) *e2edebug.ContainerResourceGatherer

SetupNVIDIAGPUNode install Nvidia Drivers and wait for Nvidia GPUs to be available on nodes

func SpreadRCOrFail added in v1.10.0

func SpreadRCOrFail(f *framework.Framework, replicaCount int32, zoneNames sets.String, image string, args []string)

SpreadRCOrFail Check that the pods comprising a replication controller get spread evenly across available zones

func SpreadServiceOrFail added in v1.10.0

func SpreadServiceOrFail(f *framework.Framework, replicaCount int, zoneNames sets.String, image string)

SpreadServiceOrFail check that the pods comprising a service get spread evenly across available zones

func StartJob added in v1.15.0

func StartJob(f *framework.Framework, completions int32)

StartJob starts a simple CUDA job that requests gpu and the specified number of completions

func VerifyJobNCompletions added in v1.15.0

func VerifyJobNCompletions(f *framework.Framework, completions int32)

VerifyJobNCompletions verifies that the job has completions number of successful pods

func WaitForSchedulerAfterAction

func WaitForSchedulerAfterAction(f *framework.Framework, action Action, ns, podName string, expectSuccess bool)

WaitForSchedulerAfterAction performs the provided action and then waits for scheduler to act on the given pod.

func WaitForStableCluster added in v1.17.0

func WaitForStableCluster(c clientset.Interface, workerNodes sets.String) int

WaitForStableCluster waits until all existing pods are scheduled and returns their amount.

Types

type Action added in v1.18.0

type Action func() error

Action is a function to be performed by the system.

type Resource added in v1.7.0

type Resource struct {
	MilliCPU int64
	Memory   int64
}

Resource is a collection of compute resource.

Jump to

Keyboard shortcuts

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