nodeimage

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Overview

package nodeimage implements functionality to build the kind node image

Index

Constants

View Source
const DefaultBaseImage = "kindest/base:v20200430-bd9e12ab"

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

Variables

This section is empty.

Functions

func Build

func Build(options ...Option) error

Build builds a node image using the supplied options

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is a configuration option supplied to Build

func WithBaseImage

func WithBaseImage(image string) Option

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

func WithImage

func WithImage(image string) Option

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

func WithKuberoot

func WithKuberoot(root string) Option

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

func WithLogger

func WithLogger(logger log.Logger) Option

WithLogger sets the logger

func WithMode

func WithMode(mode string) Option

WithMode sets the kubernetes build mode

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

Jump to

Keyboard shortcuts

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