kind

package
v0.26.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMinVersion

func IsMinVersion(ver string) bool

IsMinVersion checks if pass ver is the min required kind version

func SetFlags

func SetFlags(flags *pflag.FlagSet)

Types

type Kind

type Kind struct {
	Provider *cluster.Provider
	// contains filtered or unexported fields
}

Kind provides a thin abstraction layer for a KIND cluster.

func NewKind

func NewKind(kindContext string, explicitPath string, logger testutils.Logger) Kind

func (*Kind) AddContainers

func (k *Kind) AddContainers(docker testutils.DockerClient, containers []string, t *testing.T) error

AddContainers loads the named Docker containers into a KIND cluster. The cluster must be running for this to work.

func (*Kind) CollectLogs

func (k *Kind) CollectLogs(dir string) error

CollectLogs saves the cluster logs to a directory.

func (*Kind) IsRunning

func (k *Kind) IsRunning() bool

IsRunning checks if a KIND cluster is already running for the current context.

func (*Kind) Run

func (k *Kind) Run(config *v1alpha4.Cluster) error

Run starts a KIND cluster from a given configuration.

func (*Kind) Stop

func (k *Kind) Stop() error

Stop stops the KIND cluster.

Jump to

Keyboard shortcuts

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