k8s

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: UPL-1.0 Imports: 9 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

func SetSingleNodeTaints

func SetSingleNodeTaints(ctx context.Context, ki kubernetes.Interface) error

SetSingleNodeTaints will mark control plane nodes for scheduling by removing taints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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