k8s

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: UPL-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InjectedKubeConfig []byte

Functions

func InjectedDynamic

func InjectedDynamic() (dynamic.Interface, error)

InjectedDynamic creates a new dynamic.Interface using the injected kubeconfig

func InjectedInterface

func InjectedInterface() (kubernetes.Interface, error)

InjectedInterface creates a new kubernetes.Interface using the injected kubeconfig

func MustSetKubeconfigFromEnv

func MustSetKubeconfigFromEnv()

MustSetKubeconfigFromEnv sets the current kubeconfig from the environment. If the kubeconfig cannot be set, panic.

func NewDynamicForKubeconfig

func NewDynamicForKubeconfig(kubeconfig []byte) (dynamic.Interface, error)

func NewInterfaceForKubeconfig

func NewInterfaceForKubeconfig(kubeconfig []byte) (kubernetes.Interface, error)

NewInterfaceForKubeconfig creates a kubernetes.Interface given a kubeconfig string

Types

This section is empty.

Jump to

Keyboard shortcuts

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