Documentation ¶
Index ¶
- func GetClusterKubeConfigFromSecret(ctx context.Context, hubClient client.Client, clusterName string) ([]byte, error)
- func GetSchemeForCluster() *runtime.Scheme
- func GetSchemeForHub() *runtime.Scheme
- func NewClientForCluster(ctx context.Context, hubClient client.Client, clusterName string) (client.Client, error)
- func NewClientForHub() (client.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterKubeConfigFromSecret ¶
func GetClusterKubeConfigFromSecret(ctx context.Context, hubClient client.Client, clusterName string) ([]byte, error)
GetClusterKubeConfigFromSecret retrieves the cluster kubeconfig from a secret
func GetSchemeForCluster ¶
GetSchemeForCluster returns the scheme for the managed cluster client
func GetSchemeForHub ¶
GetSchemeForHub returns the scheme for the hub cluster client
func NewClientForCluster ¶
func NewClientForCluster(ctx context.Context, hubClient client.Client, clusterName string) (client.Client, error)
NewClientForCluster creates a new client for a managed cluster
func NewClientForHub ¶
NewClientForHub creates a new client for the hub cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.