base

package
v0.0.0-...-435808f Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Docker support was dropped in kind 0.3.0 in favour of containerd.

This package is based on kind 0.2.1, but then the code evolved in order to keep up with kind evolution and to adapt to the kinder specific needs/code organization (e.g. no usage of kindnet).

Documentation

Overview

Package base implements functionality to build the kind base image

Index

Constants

View Source
const DefaultImage = "kindest/base:latest"

DefaultImage is the default name:tag of the built base image

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildContext

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

BuildContext is used to build the kind node base image, and contains build configuration

func NewBuildContext

func NewBuildContext(options ...Option) *BuildContext

NewBuildContext creates a new BuildContext with default configuration

func (*BuildContext) Build

func (c *BuildContext) Build() (err error)

Build builds the cluster node image, the sourcedir must be set on the NodeImageBuildContext

type Option

type Option func(*BuildContext)

Option is BuildContext configuration option supplied to NewBuildContext

func WithImage

func WithImage(image string) Option

WithImage configures a NewBuildContext to tag the built image with `name`

func WithSourceDir

func WithSourceDir(sourceDir string) Option

WithSourceDir configures a NewBuildContext to use the source dir `sourceDir`

Jump to

Keyboard shortcuts

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