alter

package
v0.0.0-...-435808f Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

DefaultBaseImage is the default base image used

View Source
const DefaultImage = DefaultBaseImage

DefaultImage is the default name:tag for the alter image

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

Context is used to alter the kind node image, and contains alter configuration

func NewContext

func NewContext(options ...Option) (ctx *Context, err error)

NewContext creates a new Context with default configuration, overridden by the options supplied in the order that they are supplied

func (*Context) Alter

func (c *Context) Alter() (err error)

Alter alters the cluster node image

type Option

type Option func(*Context)

Option is Context configuration option supplied to NewContext

func WithBaseImage

func WithBaseImage(image string) Option

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

func WithImage

func WithImage(image string) Option

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

func WithImageNamePrefix

func WithImageNamePrefix(namePrefix string) Option

WithImageNamePrefix configures a NewContext to add a name prefix to included images tars

func WithImageTars

func WithImageTars(srcs []string) Option

WithImageTars configures a NewContext to include additional images tars

func WithInitArtifacts

func WithInitArtifacts(src string) Option

WithInitArtifacts configures a NewContext to include binaries & images for init

func WithKubeadm

func WithKubeadm(src string) Option

WithKubeadm configures a NewContext to override the kubeadm binary

func WithKubelet

func WithKubelet(src string) Option

WithKubelet configures a NewContext to override the kubelet binary

func WithPath

func WithPath(paths []string) Option

WithPath configures a NewContext to include a file/dir on the host

func WithPrePullAdditionalImages

func WithPrePullAdditionalImages(pull bool) Option

WithPrePullAdditionalImages configures a NewContext to pre-pull kubeadm additional required images

func WithUpgradeArtifacts

func WithUpgradeArtifacts(src string) Option

WithUpgradeArtifacts configures a NewContext to include binaries & images for upgrade

Jump to

Keyboard shortcuts

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