Documentation
¶
Index ¶
- func GetClientSet(ctx context.Context, clusterName string) (*kubernetes.Clientset, error)
- func GetConfig(ctx context.Context, clusterName string) (*rest.Config, error)
- func GetConfigFromKubeconfig(ctx context.Context, clusterName string) (*rest.Config, error)
- func GetInClusterConfig(ctx context.Context) (*rest.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientSet ¶
Get the kubernetes.Clientset to communicate with the kubernetes cluster.
If in cluster authentication is available (e.g. running in a pod in the cluster) the returned clientset uses this method.
Otherwise a clientset based on ~/.kube/config is returned.
func GetConfig ¶ added in v0.341.0
Get the rest.Config to communicate with the kubernetes cluster.
If in cluster authentication is available (e.g. running in a pod in the cluster) the returned config uses this method.
Otherwise a config based on ~/.kube/config is returned.
func GetConfigFromKubeconfig ¶ added in v0.341.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.