test

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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