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 }
Cluster object defines the required clients based on the kubeconfig of the test cluster.
Click to show internal directories.
Click to hide internal directories.