client

package
v0.0.0-...-729cd59 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Client kept for backport compatibility until all tests will be converted
	Client client.Client
	// ControlPlaneClient defines the API client to run CRUD operations on the control plane cluster,
	//that will be used for testing
	ControlPlaneClient client.Client
	// DataPlaneClient defines the API client to run CRUD operations on the data plane cluster,
	//that will be used for testing
	DataPlaneClient client.Client
	// K8sClient defines k8s client to run subresource operations, for example you should use it to get pod logs
	K8sClient *kubernetes.Clientset
	// ClientsEnabled tells if the client from the package can be used
	ClientsEnabled bool
)

Functions

func GetWithRetry

func GetWithRetry(ctx context.Context, cli client.Client, key client.ObjectKey, obj client.Object) error

func NewControlPlane

func NewControlPlane() (client.Client, error)

NewControlPlane returns a new controller-runtime client for ControlPlaneClient cluster.

func NewDataPlane

func NewDataPlane() (client.Client, error)

NewDataPlane returns a new controller-runtime client for DataPlaneClient cluster.

func NewK8s

func NewK8s() (*kubernetes.Clientset, error)

NewK8s returns a kubernetes clientset

Types

This section is empty.

Jump to

Keyboard shortcuts

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