Documentation ¶
Overview ¶
Package kube provides functions to interact with Kubernetes clusters
Index ¶
- func GetAPIConfig(kubeconfig string) (*clientcmdapi.Config, error)
- func GetCRDClient(groupVersion schema.GroupVersion, crd Crd) (dynamic.NamespaceableResourceInterface, error)
- func GetGroupVersion(group, version string) schema.GroupVersion
- func GetKubeClientset(kubeconfigPath string) (kubernetes.Interface, error)
- func KubectlCommand(params []string, kConfig string) (out, stderr string, err error)
- type Crd
- type KubectlCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIConfig ¶
func GetAPIConfig(kubeconfig string) (*clientcmdapi.Config, error)
GetAPIConfig returns the API configuration from the kubeconfig file
func GetCRDClient ¶
func GetCRDClient(groupVersion schema.GroupVersion, crd Crd) (dynamic.NamespaceableResourceInterface, error)
GetCRDClient returns a dynamic client for the given CRD
func GetGroupVersion ¶
func GetGroupVersion(group, version string) schema.GroupVersion
GetGroupVersion returns a GroupVersion object
func GetKubeClientset ¶
func GetKubeClientset(kubeconfigPath string) (kubernetes.Interface, error)
GetKubeClientset returns a Kubernetes clientset
Types ¶
Click to show internal directories.
Click to hide internal directories.