kindcluster

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 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

Index

Constants

View Source
const (
	MinCPUs   = 4
	MinMemory = 15 << 30
)

Known-good setup: devcontainer hostRequirements (4 CPUs) and CI's ubuntu-latest runners (16 GB). Docker reports slightly less than the configured memory, hence 15 GiB.

Variables

This section is empty.

Functions

func Config

func Config() *v1alpha4.Cluster

Config mirrors .github/kind-config.yaml; TestConfigMatchesCI guards against drift.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider() *Provider

func (*Provider) Create

func (p *Provider) Create(name string) error

func (*Provider) Delete

func (p *Provider) Delete(name string) error

func (*Provider) Exists

func (p *Provider) Exists(name string) (bool, error)

func (*Provider) RESTConfig

func (p *Provider) RESTConfig(name string) (*rest.Config, error)

type Resources

type Resources struct {
	CPUs   int
	Memory int64
}

func DockerResources

func DockerResources() (Resources, error)

DockerResources also serves as the "is Docker reachable" check; kind itself drives the docker CLI.

func (Resources) String

func (r Resources) String() string

func (Resources) Sufficient

func (r Resources) Sufficient() bool

Jump to

Keyboard shortcuts

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