framework

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 11 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
	PresentingServiceAccountInHubClusterName string
	HubURL                                   string
	RestMapper                               meta.RESTMapper
	PricingProvider                          trackers.PricingProvider
}

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

func NewCluster

func NewCluster(name, svcAccountName string, scheme *runtime.Scheme, pp trackers.PricingProvider) *Cluster

Jump to

Keyboard shortcuts

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