Documentation ¶
Overview ¶
Package node implements functionality to build the kind node image
Index ¶
Constants ¶
const DefaultBaseImage = "kindest/base:v20200109-d9c81a89@sha256:3e7cbf766fa8661d879f8acc415b0c700788b6d0fdffe4505196d9d3718a3dfa"
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
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
func WithKuberoot ¶ added in v0.1.0
WithKuberoot sets the path to the Kubernetes source directory (if empty, the path will be autodetected)
func WithLogger ¶ added in v0.6.0
WithLogger sets the logger
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
container/docker
Package docker contains helpers for working with docker This package has no stability guarantees whatsoever! Package docker contains helpers for working with docker This package has no stability guarantees whatsoever!
|
Package docker contains helpers for working with docker This package has no stability guarantees whatsoever! Package docker contains helpers for working with docker This package has no stability guarantees whatsoever! |
kube
Package kube implements functionality to build Kubernetes for the purposes of installing into the kind node image
|
Package kube implements functionality to build Kubernetes for the purposes of installing into the kind node image |