kind

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageLoadTimeout = 30 * time.Minute
)

Variables

View Source
var ClusterConfigFile []byte
View Source
var NodeImagesByVersion = map[string]string{
	"1.28": "kindest/node:v1.28.0@sha256:b7a4cad12c197af3ba43202d3efe03246b3f0793f162afb40a33c923952d5b31",
	"1.27": "kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72",
	"1.26": "kindest/node:v1.26.6@sha256:6e2d8b28a5b601defe327b98bd1c2d1930b49e5d8c512e1895099e4504007adb",
	"1.25": "kindest/node:v1.25.11@sha256:227fa11ce74ea76a0474eeefb84cb75d8dad1b08638371ecf0e86259b35be0c8",
	"1.24": "kindest/node:v1.24.15@sha256:7db4f8bea3e14b82d12e044e25e34bd53754b7f2b0e9d56df21774e6f66a70ab",
	"1.23": "kindest/node:v1.23.17@sha256:59c989ff8a517a93127d4a536e7014d28e235fb3529d9fba91b3951d461edfdb",
	"1.22": "kindest/node:v1.22.17@sha256:f5b2e5698c6c9d6d0adc419c0deae21a425c07d81bbf3b6a6834042f25d4fba2",
	"1.21": "kindest/node:v1.21.14@sha256:8a4e9bb3f415d2bb81629ce33ef9c76ba514c14d707f9797a01e3216376ba093",
}

NodeImagesByVersion contains the list of available node images in Kind v0.20.0.

Functions

This section is empty.

Types

type DockerImageLoader

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

func (*DockerImageLoader) Load

func (l *DockerImageLoader) Load(ctx context.Context, nodes []nodes.Node) error

func (DockerImageLoader) String

func (l DockerImageLoader) String() string

func (DockerImageLoader) Type

type ImageLoader

type ImageLoader interface {
	fmt.Stringer

	Load(ctx context.Context, nodes []nodes.Node) error
	Type() ImageLoaderType
}

func NewDockerImageLoader

func NewDockerImageLoader(images []string, timeout time.Duration) (ImageLoader, error)

type ImageLoaderType

type ImageLoaderType string
const (
	ImageLoaderTypeDocker ImageLoaderType = "docker"
)

type Logger

type Logger struct {
	*logrus.Entry
}

func NewLogger

func NewLogger(logger *logrus.Entry) *Logger

func (*Logger) Enabled

func (l *Logger) Enabled() bool

func (*Logger) Error

func (l *Logger) Error(message string)

func (*Logger) Info

func (l *Logger) Info(message string)

func (*Logger) V

func (l *Logger) V(level kindlog.Level) kindlog.InfoLogger

func (*Logger) Warn

func (l *Logger) Warn(message string)

type Provider

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

func New

func New(config *k8senvtypes.ProviderConfig, opts ...ProviderOptFn) (*Provider, error)

func (*Provider) ClusterName

func (p *Provider) ClusterName() string

func (*Provider) ExportKubeConfig

func (p *Provider) ExportKubeConfig(_ context.Context, explicitPath string) error

func (*Provider) KubeConfig

func (p *Provider) KubeConfig(_ context.Context) (string, error)

func (*Provider) SetUp

func (p *Provider) SetUp(ctx context.Context) error

func (*Provider) TearDown

func (p *Provider) TearDown(_ context.Context) error

type ProviderOptFn

type ProviderOptFn func(*Provider) error

ProviderOptFn defines transformer function for Provider.

func WithKindLogger

func WithKindLogger(logger *logrus.Entry) ProviderOptFn

func WithLoadingImages

func WithLoadingImages(images []string) ProviderOptFn

Jump to

Keyboard shortcuts

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