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 ¶
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.
Click to show internal directories.
Click to hide internal directories.