kind

package
v0.10.0 Latest Latest
Warning

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

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

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.34": {"v0.30.0", "kindest/node:v1.34.0@sha256:7416a61b42b1662ca6ca89f02028ac133a309a2a30ba309614e8ec94d976dc5a"},
	"v1.33": {"v0.30.0", "kindest/node:v1.33.4@sha256:25a6018e48dfcaee478f4a59af81157a437f15e6e140bf103f85a2e7cd0cbbf2"},
	"v1.32": {"v0.30.0", "kindest/node:v1.32.8@sha256:abd489f042d2b644e2d033f5c2d900bc707798d075e8186cb65e3f1367a9d5a1"},
	"v1.31": {"v0.30.0", "kindest/node:v1.31.12@sha256:0f5cc49c5e73c0c2bb6e2df56e7df189240d83cf94edfa30946482eb08ec57d2"},
	"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
	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) (*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