kube

package
v2.10.1-prerelease-cha... Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Pause = time.Second
)

Variables

This section is empty.

Functions

func AssertCRDs added in v2.11.0

func AssertCRDs(ctx context.Context, kubeClient client.Client, crds ...*apiextensionsv1.CustomResourceDefinition) error

AssertCRDs check that the given CRDs are installed in the accesible cluster

func NewTestClient added in v2.11.0

func NewTestClient() (client.Client, error)

NewTestClient returns a Kubernetes client for tests. It requires a running Kubernetes cluster and a local configuration to it. It supports core Kubernetes types, production and experimental CRDs.

func WithRenamedNamespace

func WithRenamedNamespace(obj client.Object, ns string) client.Object

Types

type ObjectWithStatus

type ObjectWithStatus interface {
	client.Object
	GetConditions() []metav1.Condition
}

Jump to

Keyboard shortcuts

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