Documentation ¶
Index ¶
- Variables
- func CreateSecretFromEnv(t *testing.T, kubectlOptions *k8s.KubectlOptions, apiKeyEnv, appKeyEnv string) (cleanupFunc func())
- func InstallChart(t *testing.T, kubectlOptions *k8s.KubectlOptions, cmd HelmCommand) (cleanupFunc func())
- func ListNodes(namespace string, client kubernetes.Interface) (*corev1.NodeList, error)
- func ListPods(namespace string, podLabelSelector string, client *kubernetes.Clientset) (*corev1.PodList, error)
- func LoadFromFile[T any](t *testing.T, filepath string, destObj *T) string
- func NewClientFromKubeconfig(kc map[string]interface{}) (clientcmd.ClientConfig, *rest.Config, *kubernetes.Clientset, error)
- func ParseArgs()
- func RenderChart(t *testing.T, cmd HelmCommand) (string, error)
- func SetupConfig() (runner.ConfigMap, error)
- func TeardownE2EStack(e2eEnv *E2EEnv, preserveStacks bool) error
- func Unmarshal[T any](t *testing.T, manifest string, destObj *T)
- func WriteToFile(t *testing.T, filepath, content string)
- type E2EEnv
- type HelmCommand
- type K8sExec
Constants ¶
This section is empty.
Variables ¶
View Source
var DestroyStacks bool
View Source
var PreserveStacks bool
View Source
var UpdateBaselines bool
Functions ¶
func CreateSecretFromEnv ¶
func CreateSecretFromEnv(t *testing.T, kubectlOptions *k8s.KubectlOptions, apiKeyEnv, appKeyEnv string) (cleanupFunc func())
func InstallChart ¶
func InstallChart(t *testing.T, kubectlOptions *k8s.KubectlOptions, cmd HelmCommand) (cleanupFunc func())
func NewClientFromKubeconfig ¶
func NewClientFromKubeconfig(kc map[string]interface{}) (clientcmd.ClientConfig, *rest.Config, *kubernetes.Clientset, error)
func RenderChart ¶
func RenderChart(t *testing.T, cmd HelmCommand) (string, error)
func SetupConfig ¶
func TeardownE2EStack ¶
func WriteToFile ¶
Types ¶
type HelmCommand ¶
type K8sExec ¶
type K8sExec struct { ClientSet kubernetes.Interface RestConfig *rest.Config }
func NewK8sExec ¶
func NewK8sExec(clientSet *kubernetes.Clientset, restConfig *rest.Config) K8sExec
Click to show internal directories.
Click to hide internal directories.