kind

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 11 Imported by: 1 module, 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 (
	StackName = "stackKind"
	KindID    = "knd"
)
View Source
const (
	// Outputs
	OKHost       = "kndHost"
	OKUsername   = "kndUsername"
	OKPrivateKey = "kndPrivatekey"
	OKKubeconfig = "kndKubeconfig"
	OKSpotPrice  = "kndSpotPrice"
)

Variables

View Source
var (
	PortHTTP  = 8888
	PortHTTPS = 9443
	PortAPI   = 6443
)

TODO check if allow customize this, specially ingress related ports

View Source
var (
	X86_64 kindArch = "amd64"
	Arm64  kindArch = "arm64"
)
View Source
var CloudConfigTemplate []byte
View Source
var KindK8sVersions map[string]KindK8SImages = map[string]KindK8SImages{
	"v1.35": {"v0.31.0", "kindest/node:v1.35.0@sha256:452d707d4862f52530247495d180205e029056831160e22870e37e3f6c1ac31f"},
	"v1.34": {"v0.31.0", "kindest/node:v1.34.3@sha256:08497ee19eace7b4b5348db5c6a1591d7752b164530a36f855cb0f2bdcbadd48"},
	"v1.33": {"v0.31.0", "kindest/node:v1.33.7@sha256:d26ef333bdb2cbe9862a0f7c3803ecc7b4303d8cea8e814b481b09949d353040"},
	"v1.32": {"v0.31.0", "kindest/node:v1.32.11@sha256:5fc52d52a7b9574015299724bd68f183702956aa4a2116ae75a63cb574b35af8"},
	"v1.31": {"v0.31.0", "kindest/node:v1.31.14@sha256:6f86cf509dbb42767b6e79debc3f2c32e4ee01386f0489b3b2be24b0a55aac2b"},
	"v1.30": {"v0.29.0", "kindest/node:v1.30.13@sha256:397209b3d947d154f6641f2d0ce8d473732bd91c87d9575ade99049aa33cd648"},
}

Functions

This section is empty.

Types

type CloudConfigArgs

type CloudConfigArgs struct {
	Arch              kindArch
	KindVersion       string
	KindImage         string
	PublicIP          string
	Username          string
	ExtraPortMappings []PortMapping
}

func (*CloudConfigArgs) CloudConfig

func (args *CloudConfigArgs) CloudConfig() (*string, error)

type KindArgs

type KindArgs struct {
	Prefix            string
	ComputeRequest    *cr.ComputeRequestArgs
	Version           string
	Arch              string
	HostingPlace      string
	Spot              *spotTypes.SpotArgs
	Timeout           string
	ServiceEndpoints  []string
	ExtraPortMappings []PortMapping
}

type KindK8SImages

type KindK8SImages struct {
	KindVersion string
	KindImage   string
}

TODO do some code to get this info from kind source code

type KindResults

type KindResults struct {
	Username   *string  `json:"username"`
	PrivateKey *string  `json:"private_key"`
	Host       *string  `json:"host"`
	Kubeconfig *string  `json:"kubeconfig"`
	SpotPrice  *float64 `json:"spot_price,omitempty"`
}

func Results

func Results(mCtx *mc.Context, stackResult auto.UpResult, prefix *string, spot bool) (*KindResults, error)

type PortMapping

type PortMapping struct {
	ContainerPort int    `json:"containerPort"`
	HostPort      int    `json:"hostPort"`
	Protocol      string `json:"protocol"`
}

func ParseExtraPortMappings

func ParseExtraPortMappings(extraPortMappingsJSON string) ([]PortMapping, error)

Jump to

Keyboard shortcuts

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