context

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrentConfig = getCurrentConfig
)

For testing

Functions

func GetRestClientConfig added in v0.36.0

func GetRestClientConfig() (*restclient.Config, error)

GetRestClientConfig returns a REST client config for API calls against the Kubernetes API. If UseKubeContext was called before, the CurrentContext will be overridden. The result will be cached after the first call.

func UseKubeContext added in v0.36.0

func UseKubeContext(overrideKubeContext string)

UseKubeContext sets an override for the current context in the k8s config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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