kubeenv

package
v0.34.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureNamespace

func EnsureNamespace(ctx context.Context, client runtimeclient.Client, namespace string) error

//EnsureNamespace creates a namespace if it doesn't already exist. It returns an error if the namespace cannot be created.

func StartEnvironment

func StartEnvironment(crdPaths []string) (runtimeclient.Client, *envtest.Environment, error)

StartEnvironment creates k8s client and test environment. It returns an error if it fails to initialize the environment or create the client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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