kind

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceLocalStack = "localstack"
)

Variables

This section is empty.

Functions

func SetupIngress added in v0.1.2

func SetupIngress(client *kubernetes.Client) error

Types

type Kind

type Kind struct {
	Version     string `yaml:"version"`
	Name        string `yaml:"name"`
	UseExisting bool   `yaml:"use_existing"`
	ColorOutput bool   `yaml:"color_output"`

	Services []string
	// contains filtered or unexported fields
}

func NewKind

func NewKind(name string) *Kind

NewKind creates a new Kind cluster manager

func (*Kind) Delete

func (k *Kind) Delete() *Kind

Delete deletes the kind cluster

func (*Kind) Error

func (k *Kind) Error() error

Error returns the last error

func (*Kind) Exists

func (k *Kind) Exists() bool

Exists checks if the kind cluster exists

func (*Kind) GetKubeconfig

func (k *Kind) GetKubeconfig() (string, error)

GetKubeconfig returns the kubeconfig for the kind cluster

func (*Kind) GetOrCreate

func (k *Kind) GetOrCreate() *Kind

GetOrCreate gets an existing kind cluster or creates a new one

func (Kind) Kubectl

func (k Kind) Kubectl() exec.WrapperFunc

func (*Kind) LoadImage

func (k *Kind) LoadImage(image string) *Kind

LoadImage loads a docker image into the kind cluster

func (*Kind) MustSucceed

func (k *Kind) MustSucceed() *Kind

MustSucceed panics if there was an error

func (*Kind) NoColor

func (k *Kind) NoColor() *Kind

NoColor disables colored output

func (*Kind) Result

func (k *Kind) Result() command.Result

Result returns the last command result

func (*Kind) SetKubeconfig

func (k *Kind) SetKubeconfig() *Kind

SetKubeconfig sets the KUBECONFIG environment variable to use the kind cluster

func (*Kind) Use

func (k *Kind) Use() *Kind

Use updates KUBECONFIG to use the kind cluster

func (*Kind) WithServices added in v0.1.9

func (k *Kind) WithServices(svcs ...string) *Kind

func (*Kind) WithVersion

func (k *Kind) WithVersion(version string) *Kind

WithVersion sets the kind version to use

Jump to

Keyboard shortcuts

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