package runtimeclass
import "k8s.io/kubernetes/test/e2e/framework/node/runtimeclass"
Index ¶
- Constants
- func NewRuntimeClassPod(runtimeClassName string) *v1.Pod
- func NodeSupportsPreconfiguredRuntimeClassHandler(ctx context.Context, f *framework.Framework) error
Constants ¶
const ( // PreconfiguredRuntimeClassHandler is the name of the runtime handler // that is expected to be preconfigured in the test environment. PreconfiguredRuntimeClassHandler = "test-handler" )
Functions ¶
func NewRuntimeClassPod ¶
NewRuntimeClassPod returns a test pod with the given runtimeClassName
func NodeSupportsPreconfiguredRuntimeClassHandler ¶
func NodeSupportsPreconfiguredRuntimeClassHandler(ctx context.Context, f *framework.Framework) error
Check 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.
Source Files ¶
runtimeclass.go
- Version
- v1.27.8
- Published
- Nov 15, 2023
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 24 minutes ago –
Tools for package owners.