Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OverrideDefaultKubeConfig ¶
func OverrideDefaultKubeConfig() (kubeconfigfile string, rollbackEnvOverride func())
OverrideDefaultKubeConfig overrides the default KUBECONFIG env var to point to a temporary file, does not create any context.
func OverrideDefaultKubeConfigEmptyContext ¶
func OverrideDefaultKubeConfigEmptyContext() (kubeconfigfile string, rollbackEnvOverride func())
OverrideDefaultKubeConfigEmptyContext same as OverrideDefaultKubeConfigWithNamespace, but sets default namespace to "default"
func OverrideDefaultKubeConfigWithNamespace ¶
func OverrideDefaultKubeConfigWithNamespace(namespace string) (kubeconfigfile string, rollbackEnvOverride func())
OverrideDefaultKubeConfigWithNamespace overrides the env var variable meant to point to the kube config file with a temporary file to be used in tests You must call defer with rollbackEnvOverride func to switch back to the original value and not jeopardize the local configuration
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.