kind

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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