kind

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package kind provides utilities for managing Kind clusters in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupCluster

func CleanupCluster(t *testing.T, clusterName string)

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

func SetupCluster(t *testing.T, clusterName, tempDir, kindConfigPath string) string

SetupCluster creates a Kind cluster using the specified configuration file

func SetupClusterWithEmbeddedConfig

func SetupClusterWithEmbeddedConfig(t *testing.T, clusterName, tempDir string) string

SetupClusterWithEmbeddedConfig creates a Kind cluster using the embedded configuration template

Types

type KindConfig

type KindConfig struct {
	ClusterName string
	HostPath    string
}

KindConfig holds the configuration parameters for the Kind cluster

Jump to

Keyboard shortcuts

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