Documentation
¶
Overview ¶
Package kind provides utilities for managing Kind clusters in tests.
Index ¶
- func CleanupCluster(t *testing.T, clusterName string)
- func CreateKubernetesClient(kubeconfig string) (kubernetes.Interface, error)
- func GetCurrentFile() string
- func SetupCluster(t *testing.T, clusterName, tempDir, kindConfigPath string) string
- func SetupClusterWithEmbeddedConfig(t *testing.T, clusterName, tempDir string) string
- type KindConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupCluster ¶
CleanupCluster deletes the Kind cluster
func CreateKubernetesClient ¶
func CreateKubernetesClient(kubeconfig string) (kubernetes.Interface, error)
CreateKubernetesClient creates a Kubernetes client from kubeconfig file
func GetCurrentFile ¶
func GetCurrentFile() string
GetCurrentFile returns the current file path (useful for finding test configuration files)
func SetupCluster ¶
SetupCluster creates a Kind cluster using the specified configuration file
Types ¶
type KindConfig ¶
KindConfig holds the configuration parameters for the Kind cluster
Click to show internal directories.
Click to hide internal directories.