kubeclient

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCreatingKubeClient = errors.New("unable to parse ~/.kube/config")

ErrCreatingKubeClient is returned when ~/.kube/config cannot be parsed.

View Source
var ErrMissingHomeDir = errors.New("unable to find home directory")

ErrMissingHomeDir is returned when the home directory for the current user cannot be found.

View Source
var ErrNamespaceResolution = errors.New("current namespace could not be resolved")

ErrNamespaceResolution is returned when the current namespace cannot be resolved.

View Source
var ErrReadingKubeConfig = errors.New("unable to read ~/.kube/config")

ErrReadingKubeConfig is returned when ~/.kube/config cannot be read.

Functions

func CurrentNamespace

func CurrentNamespace() (string, error)

CurrentNamespace returns the namespace from `~/.kube/config`.

func GetDefault added in v1.3.0

func GetDefault() (kubernetes.Interface, error)

GetDefault returns a kubernetes clientset by reading the current users ~/.kube/config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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