Documentation ¶
Index ¶
- func BuildImage(img, platform, dockerFilePath string) error
- func CreateCluster(clusterName string) error
- func CreateNamespace(namespaceName, kubeconfig string) error
- func DeleteCluster(clusterName string) error
- func GetKubeCfg(clusterName string, internal bool) (string, error)
- func LoadImage(image, clusterName string) error
- func NewKubeClientFromConfig(configStr string) (client.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
BuildImage - uses docker cli to build an image
func CreateCluster ¶
CreateCluster - creates a kind cluster with the given name if the cluster already exists, it sets the context to the existing cluster
func CreateNamespace ¶
CreateNamespace - creates a namespace with the given name
func DeleteCluster ¶
DeleteCluster - deletes a kind cluster with the given name if the cluster does not exist, it does nothing
func GetKubeCfg ¶
GetKubeCfg - get kind cluster kubeconfig if internal is true, it returns the internal kubeconfig of the cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.