Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyKubeContext ¶ added in v0.4.9
func CopyKubeContext(fromConfigAccess, toConfigAccess clientcmd.ConfigAccess, fromContext, toContext string) error
CopyKubeContext copies context fromContext part of fromConfigAccess to toContext part of toConfigAccess.
func RemoveKubeContext ¶ added in v0.4.9
func RemoveKubeContext(fromConfigAccess clientcmd.ConfigAccess, contextToRemove string) error
RemoveKubeContext removes the contextToRemove from the kubeContext pointed to be fromConfigAccess
Types ¶
type K8s ¶
type K8s interface {
CoreV1() corev1.CoreV1Interface
}
var Client K8s
func GetK8sClient ¶
GetK8sClient return the k8s client from sandbox kubeconfig
Click to show internal directories.
Click to hide internal directories.