node

package
v1.32.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 82 Imported by: 17

README

WARNING: Do not add tests in this directory

There are two types of end-to-end tests in Kubernetes:

Tests located in ${KUBE_ROOT}/test/e2e/common are shared by both Cluster and Node E2E test jobs. Tests in ${KUBE_ROOT}/test/e2e_node are exclusively owned by Node E2E. If you want to add a test, most likely than not, you want to add the test to one of the two directories mentioned above. If you are unsure, please check with the OWNER of the directory. This directory currently contains misplaced and legacy tests; they will be cleaned up in the future.

Documentation

Index

Constants

View Source
const ProcSelfStatusPath = "/proc/self/status"

ProcSelfStatusPath is the path to /proc/self/status.

View Source
const SeccompProcStatusField = "Seccomp:"

SeccompProcStatusField is the field of /proc/$PID/status referencing the seccomp filter type.

Variables

View Source
var SIGDescribe = framework.SIGDescribe("node")

SIGDescribe annotates the test with the SIG label.

Functions

func SetupEnvironmentAndSkipIfNeeded added in v1.31.2

func SetupEnvironmentAndSkipIfNeeded(ctx context.Context, f *framework.Framework, clientSet clientset.Interface)

func SetupNVIDIAGPUNode added in v1.31.2

func SetupNVIDIAGPUNode(ctx context.Context, f *framework.Framework)

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

func StartJob

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

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

func VerifyJobNCompletions

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

VerifyJobNCompletions verifies that the job has completions number of successful pods

Types

type State added in v1.9.0

type State struct {
	Received map[string]int
}

State partially cloned from webserver.go

Jump to

Keyboard shortcuts

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