klient

package
v0.0.1-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(img, platform, dockerFilePath string) error

BuildImage - uses docker cli to build an image

func CreateCluster

func CreateCluster(clusterName string) error

CreateCluster - creates a kind cluster with the given name if the cluster already exists, it sets the context to the existing cluster

func CreateNamespace

func CreateNamespace(namespaceName, kubeconfig string) error

CreateNamespace - creates a namespace with the given name

func DeleteCluster

func DeleteCluster(clusterName string) error

DeleteCluster - deletes a kind cluster with the given name if the cluster does not exist, it does nothing

func GetKubeCfg

func GetKubeCfg(clusterName string, internal bool) (string, error)

GetKubeCfg - get kind cluster kubeconfig if internal is true, it returns the internal kubeconfig of the cluster

func LoadImage

func LoadImage(image, clusterName string) error

LoadImage - loads a docker image into a kind cluster

func NewKubeClientFromConfig

func NewKubeClientFromConfig(configStr string) (client.Client, error)

NewKubeClientFromConfig - creates a new Kubernetes CRUD client from a given kubeconfig

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL