envtestutil

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendRandomNameTo

func AppendRandomNameTo(base string) string

func FindProjectRoot

func FindProjectRoot() (string, error)

Types

type Cleaner

type Cleaner struct {
	// contains filtered or unexported fields
}

Cleaner is a struct to perform deletion of resources, enforcing removal of finalizers. Otherwise, deletion of namespaces wouldn't be possible. See: https://book.kubebuilder.io/reference/envtest.html#namespace-usage-limitation Based on https://github.com/kubernetes-sigs/controller-runtime/issues/880#issuecomment-749742403

func CreateCleaner

func CreateCleaner(c client.Client, config *rest.Config, timeout, interval time.Duration) *Cleaner

func (*Cleaner) DeleteAll

func (c *Cleaner) DeleteAll(ctx context.Context, objects ...client.Object)

Jump to

Keyboard shortcuts

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