testutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupEnvtestEnv

func SetupEnvtestEnv(t *testing.T) (*runtime.Scheme, *rest.Config)

SetupEnvtestEnv sets up a test environment for the controller tests. Registers a cleanup function to stop the test environment when the test ends. Any managers should be stopped before the test ends by registering a cleanup function or by cancelling the context. Returns the scheme and the config.

func TmpNamespace

func TmpNamespace(t *testing.T, c client.Client) string

TmpNamespace creates a new namespace, with default service account, with a generated name and registers a cleanup function to delete it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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