kind: sigs.k8s.io/kind/pkg/build/node Index | Files | Directories

package node

import "sigs.k8s.io/kind/pkg/build/node"

Package node implements functionality to build the kind node image

Index

Package Files

cni.go import.go node.go systemd.go

Constants

const DefaultBaseImage = "kindest/base:v20191115-cd8a1c9b@sha256:adc956e10590293ccb10d3c45161daa2be110612b7d1a3eb9cd4836d8f44b284"

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

type BuildContext Uses

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

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

func NewBuildContext Uses

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 Uses

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

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

type Option Uses

type Option func(*BuildContext)

Option is BuildContext configuration option supplied to NewBuildContext

func WithBaseImage Uses

func WithBaseImage(image string) Option

WithBaseImage configures a NewBuildContext to use `image` as the base image

func WithImage Uses

func WithImage(image string) Option

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

func WithKuberoot Uses

func WithKuberoot(root string) Option

WithKuberoot sets the path to the Kubernetes source directory (if empty, the path will be autodetected)

func WithLogger Uses

func WithLogger(logger log.Logger) Option

WithLogger sets the logger

func WithMode Uses

func WithMode(mode string) Option

WithMode sets the kubernetes build mode for the build context

Directories

PathSynopsis
internal/container/dockerPackage docker contains helpers for working with docker This package has no stability guarantees whatsoever!
internal/kubePackage kube implements functionality to build Kubernetes for the purposes of installing into the kind node image

Package node imports 16 packages (graph) and is imported by 1 packages. Updated 2019-11-20. Refresh now. Tools for package owners.