Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildClientConfig ¶
BuildClientConfig is a helper function that builds client config from a kubeconfig filepath. It overrides the current context with the one provided (empty to use default).
This is a modified version of k8s.io/client-go/tools/clientcmd/BuildConfigFromFlags with the difference that it loads default configs if not running in-cluster.
func CreateClientset ¶
func CreateClientset(kubeconfig, context string) (*kubernetes.Clientset, error)
CreateClientset is a helper function that builds a kubernetes Clienset from a kubeconfig filepath. See `BuildClientConfig` for kubeconfig loading rules.
func CreateInterfaceFromClusterConfig ¶
func CreateInterfaceFromClusterConfig(clusterConfig *clientcmdapi.Config) (kubernetes.Interface, error)
CreateInterfaceFromClusterConfig is a helper function to create Kubernetes interface from in memory cluster config struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.