runtimeclass

package
v1.29.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PreconfiguredRuntimeClassHandler is the name of the runtime handler
	// that is expected to be preconfigured in the test environment.
	PreconfiguredRuntimeClassHandler = "test-handler"
)

Variables

This section is empty.

Functions

func NewRuntimeClassPod

func NewRuntimeClassPod(runtimeClassName string) *v1.Pod

NewRuntimeClassPod returns a test pod with the given runtimeClassName

func NodeSupportsPreconfiguredRuntimeClassHandler

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

NodeSupportsPreconfiguredRuntimeClassHandler checks if test-handler is configured by reading the configuration from container runtime config. If no error is returned, the container runtime is assumed to support the test-handler, otherwise an error will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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