nodeimage

package
v0.23.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Overview

Package nodeimage implements functionality to build the kind node image

Index

Constants

View Source
const DefaultBaseImage = "docker.io/kindest/base:v20240212-c4cadcab"

DefaultBaseImage is the default base image used TODO: come up with a reasonable solution to digest pinning https://github.com/moby/moby/issues/43188

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

DefaultImage is the default name:tag for the built image

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 WithArch added in v0.11.0

func WithArch(arch string) Option

WithArch sets the architecture to build for

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

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!
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