k8s

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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

func GetK8sClient(cfg, master string) (K8s, error)

GetK8sClient return the k8s client from sandbox kubeconfig

Jump to

Keyboard shortcuts

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