package scheduling
import "k8s.io/kubernetes/test/e2e/scheduling"
Index ¶
- func CreateHostPortPods(f *framework.Framework, id string, replicas int, expectRunning bool)
- func CreateNodeSelectorPods(f *framework.Framework, id string, replicas int, nodeSelector map[string]string, expectRunning bool) error
- func GetNodeThatCanRunPod(f *framework.Framework) string
- func OnlyAllowNodeZones(f *framework.Framework, zoneCount int, image string)
- func PodsUseStaticPVsOrFail(f *framework.Framework, podCount int, image string)
- func SIGDescribe(text string, body func()) bool
- func SetupNVIDIAGPUNode(f *framework.Framework, setupResourceGatherer bool) *framework.ContainerResourceGatherer
- func SpreadRCOrFail(f *framework.Framework, replicaCount int32, image string, args []string)
- func SpreadServiceOrFail(f *framework.Framework, replicaCount int, image string)
- func StartJob(f *framework.Framework, completions int32)
- func VerifyJobNCompletions(f *framework.Framework, completions int32)
- func WaitForSchedulerAfterAction(f *framework.Framework, action common.Action, ns, podName string, expectSuccess bool)
- type Resource
Functions ¶
func CreateHostPortPods ¶
CreateHostPortPods creates RC with host port 4321
func CreateNodeSelectorPods ¶
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 GetNodeThatCanRunPod ¶
GetNodeThatCanRunPod trying to launch a pod without a label to get a node which can launch it
func OnlyAllowNodeZones ¶
OnlyAllowNodeZones tests that GetAllCurrentZones returns only zones with Nodes
func PodsUseStaticPVsOrFail ¶
PodsUseStaticPVsOrFail Check that the pods using statically created PVs get scheduled to the same zone that the PV is in.
func SIGDescribe ¶
SIGDescribe annotates the test with the SIG label.
func SetupNVIDIAGPUNode ¶
func SetupNVIDIAGPUNode(f *framework.Framework, setupResourceGatherer bool) *framework.ContainerResourceGatherer
SetupNVIDIAGPUNode install Nvidia Drivers and wait for Nvidia GPUs to be available on nodes
func SpreadRCOrFail ¶
SpreadRCOrFail Check that the pods comprising a replication controller get spread evenly across available zones
func SpreadServiceOrFail ¶
SpreadServiceOrFail check that the pods comprising a service get spread evenly across available zones
func StartJob ¶
StartJob starts a simple CUDA job that requests gpu and the specified number of completions
func VerifyJobNCompletions ¶
VerifyJobNCompletions verifies that the job has completions number of successful pods
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 ¶
Resource is a collection of compute resource.
Source Files ¶
events.go framework.go limit_range.go nvidia-gpus.go predicates.go preemption.go priorities.go taints.go ubernetes_lite.go ubernetes_lite_volumes.go
- Version
- v1.16.9-beta.0
- Published
- Mar 12, 2020
- Platform
- js/wasm
- Imports
- 47 packages
- Last checked
- 1 minute ago –
Tools for package owners.