Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClientSet ¶
func CreateClientSet(kubeConfig string) (*kubernetes.Clientset, error)
CreateClientSet creates a clientset based on the given kubeConfig. If the kubeConfig is empty, it will creates the clientset based on the in-cluster config
func CreateClientSetApiserverAddr ¶
func CreateClientSetApiserverAddr(apiserverAddr string) (*kubernetes.Clientset, error)
CreateClientSetApiserverAddr creates a clientset based on the given apiserverAddr. The clientset uses the serviceaccount's CA and Token for authentication and authorization.
func CreateClientSetKubeConfig ¶
func CreateClientSetKubeConfig(kubeConfig string) (*kubernetes.Clientset, error)
CreateClientSet creates a clientset based on the given kubeconfig
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.