testenv

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testenv isolates kubeconfig-related process and client-go global state for unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWithIsolatedKubeconfig

func RunWithIsolatedKubeconfig(m *testing.M) (code int)

RunWithIsolatedKubeconfig runs m with HOME and client-go recommended kubeconfig paths pointed at a temporary directory. KUBECONFIG is unset so default resolution is used. Process and client-go state are restored after m returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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