Documentation ¶
Overview ¶
Package node implements functionality to build the kind node image
Index ¶
Constants ¶
const BuildContainerLabelKey = "io.k8s.sigs.kind.build"
BuildContainerLabelKey is applied to each build container
const DefaultBaseImage = "kindest/base:v20181107-6f628d7"
DefaultBaseImage is the default base image used
const DefaultImage = "kindest/node:latest"
DefaultImage is the default name:tag for the built image
const DefaultMode = "docker"
DefaultMode is the default kubernetes build mode for the built image see pkg/build/kube.Bits
const DockerImageArchives = "/kind/images"
DockerImageArchives is the path within the node image where image archives will be stored.
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 image, and contains build configuration
func NewBuildContext ¶
func NewBuildContext(options ...Option) (ctx *BuildContext, err error)
NewBuildContext creates a new BuildContext with default configuration, overridden by the options supplied in the order that they are supplied
func (*BuildContext) Build ¶
func (c *BuildContext) Build() (err error)
Build builds the cluster node image, the sourcedir must be set on the BuildContext
type Option ¶
type Option func(*BuildContext)
Option is BuildContext configuration option supplied to NewBuildContext
func WithBaseImage ¶
WithBaseImage configures a NewBuildContext to use `image` as the base image