node

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package node implements functionality to build the kind node image

Index

Constants

View Source
const BuildContainerLabelKey = "io.k8s.sigs.kind.build"

BuildContainerLabelKey is applied to each build container

View Source
const DefaultBaseImage = "kindest/base:v20181107-6f628d7"

DefaultBaseImage is the default base image used

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

DefaultImage is the default name:tag for the built image

View Source
const DefaultMode = "docker"

DefaultMode is the default kubernetes build mode for the built image see pkg/build/kube.Bits

View Source
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

func WithBaseImage(image string) Option

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

func WithImage

func WithImage(image string) Option

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

func WithMode

func WithMode(mode string) Option

WithMode sets the kubernetes build mode for the build context

Jump to

Keyboard shortcuts

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