kind: Index | Files | Directories

package node

import ""

Package node implements functionality to build the kind node image


Package Files

cni.go const.go import.go node.go storage.go systemd.go


const DefaultBaseImage = "kindest/base:v20200124-2986f3b3@sha256:af163dda75761b1b3e8d7bd01abb67bb49b34ea6a44c4fd4644dc1395f83b1f4"

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


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 2 packages. Updated 2020-01-29. Refresh now. Tools for package owners.