Documentation
¶
Index ¶
- func CreateOrUpdate(ctx context.Context, c client.Client, obj client.Object) error
- 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.WithWatch, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdate ¶
CreateOrUpdate attempts to update an existing Kubernetes object, or creates it if it doesn't exist. This implements an "upsert" operation for Kubernetes resources.
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.