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