framework

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConfig

func GetClientConfig(cluster *Cluster) clientcmd.ClientConfig

func GetClusterClient

func GetClusterClient(cluster *Cluster)

GetClusterClient returns a Cluster client for the cluster.

func GetImpersonateClientConfig added in v0.6.4

func GetImpersonateClientConfig(cluster *Cluster) clientcmd.ClientConfig

Types

type Cluster

type Cluster struct {
	Scheme                *runtime.Scheme
	KubeClient            client.Client
	ImpersonateKubeClient client.Client
	DynamicClient         dynamic.Interface
	ClusterName           string
	HubURL                string
	RestMapper            meta.RESTMapper
}

Cluster object defines the required clients based on the kubeconfig of the test cluster.

func NewCluster

func NewCluster(name string, scheme *runtime.Scheme) *Cluster

Jump to

Keyboard shortcuts

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