k8s

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetK0sClientSet added in v0.2.0

func GetK0sClientSet() (*kubernetes.Clientset, error)

GetK0sClientSet returns the kubernetes Clientset

func GetK0sKubeConfig added in v0.2.0

func GetK0sKubeConfig() string

GetK0sKubeConfig returns the kubeconfig path

func GetK3sClientSet added in v0.2.0

func GetK3sClientSet() (*kubernetes.Clientset, error)

GetK3sClientSet returns the kubernetes Clientset

func GetK3sKubeConfig added in v0.2.0

func GetK3sKubeConfig() string

GetK3sKubeConfig returns the kubeconfig path

func NewClientConfig

func NewClientConfig(configPath string, contextName string) clientcmd.ClientConfig

NewClientConfig returns a new Kubernetes client config set for a context

func NewClientSet

func NewClientSet(clientConfig clientcmd.ClientConfig) (*kubernetes.Clientset, error)

NewClientSet returns a new Kubernetes client for a client config

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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