scheduling

package
v1.13.7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeletPodDeletionDelaySeconds = 60
	AdditionalWaitPerDeleteSeconds = 5
)

Variables

This section is empty.

Functions

func CreateHostPortPods

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

func CreateNodeSelectorPods added in v1.8.0

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

func GetNodeThatCanRunPod

func GetNodeThatCanRunPod(f *framework.Framework) string

func OnlyAllowNodeZones added in v1.10.0

func OnlyAllowNodeZones(f *framework.Framework, zoneCount int, image string)

OnlyAllowNodeZones tests that GetAllCurrentZones returns only zones with Nodes

func PodsUseStaticPVsOrFail added in v1.10.0

func PodsUseStaticPVsOrFail(f *framework.Framework, podCount int, image string)

Check that the pods using statically created PVs get scheduled to the same zone that the PV is in.

func SIGDescribe added in v1.8.0

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

func SetupNVIDIAGPUNode added in v1.10.0

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

func SpreadRCOrFail added in v1.10.0

func SpreadRCOrFail(f *framework.Framework, replicaCount int32, image string)

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, image string)

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

func WaitForSchedulerAfterAction

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

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

Types

type Resource added in v1.7.0

type Resource struct {
	MilliCPU int64
	Memory   int64
}

Jump to

Keyboard shortcuts

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