kube

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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 NewK8sTest

NewK8sTest initializes a test environment on Kubernetes. It requires: - A running Kubernetes cluster with a local configuration bound to it. - The given set CRDs installed in that cluster

func TestKubeClient

func TestKubeClient() (client.Client, error)

TestKubeClient 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