testutil

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnvTestAvailable

func IsEnvTestAvailable() bool

IsEnvTestAvailable checks if envtest binaries are available

func SetupEnv

func SetupEnv(t *testing.T) (*envtest.Environment, *kubernetes.Clientset, func())

SetupEnv starts envtest, creates a clientset, populates the cluster with sample Deployments, and returns env, clientset, and cleanup. If envtest is not available, it skips the test.

func StartTestManager added in v0.1.4

func StartTestManager(t *testing.T) (mgr manager.Manager, k8sClient client.Client, restCfg *rest.Config, cleanup func())

StartTestManager sets up envtest, scheme, manager, and returns them with cleanup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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