nodes

package
v0.0.0-...-a51a915 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionHelper

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

ActionHelper helper provides CRI specific methods used by kind(er) actions

func NewActionHelper

func NewActionHelper(cri status.ContainerRuntime) (*ActionHelper, error)

NewActionHelper returns a new AlterHelper

func (*ActionHelper) GetImages

func (h *ActionHelper) GetImages(n *status.Node) ([]string, error)

GetImages prints the images available in the node

func (*ActionHelper) PreLoadUpgradeImages

func (h *ActionHelper) PreLoadUpgradeImages(n *status.Node, srcFolder string) error

PreLoadUpgradeImages preload images required by kubeadm-update into the selected container runtime that exists inside a kind(er) node

type AlterHelper

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

AlterHelper provides CRI specific methods for altering a kind(er) images

func NewAlterHelper

func NewAlterHelper(cri status.ContainerRuntime) (*AlterHelper, error)

NewAlterHelper returns a new AlterHelper

func (*AlterHelper) Commit

func (h *AlterHelper) Commit(containerID, targetImage string) error

Commit a kind(er) node image that uses the selected container runtime internally

func (*AlterHelper) GetAlterContainerArgs

func (h *AlterHelper) GetAlterContainerArgs() ([]string, []string)

GetAlterContainerArgs ...

func (*AlterHelper) GetImagesForKubeadmBinary

func (h *AlterHelper) GetImagesForKubeadmBinary(bc *bits.BuildContext, binaryPath string) ([]string, error)

GetImagesForKubeadmBinary runs a kubeadm binary located at "binaryPath" and gets the images it returns

func (*AlterHelper) ImportImage

func (h *AlterHelper) ImportImage(bc *bits.BuildContext, tar string) error

ImportImage imports a set of TAR files into the CR

func (*AlterHelper) PreLoadInitImages

func (h *AlterHelper) PreLoadInitImages(bc *bits.BuildContext, srcFolder string) error

PreLoadInitImages preload images required by kubeadm-init into the selected container runtime that exists inside a kind(er) node

func (*AlterHelper) SetupCRI

func (h *AlterHelper) SetupCRI(bc *bits.BuildContext) error

SetupCRI setups the container runtime.

func (*AlterHelper) StartCRI

func (h *AlterHelper) StartCRI(bc *bits.BuildContext) error

StartCRI starts the CRI engine

func (*AlterHelper) StopCRI

func (h *AlterHelper) StopCRI(bc *bits.BuildContext) error

StopCRI stops the CRI engine

type ConfigHelper

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

ConfigHelper provides CRI specific methods for creating the kubeadm config

func NewConfigHelper

func NewConfigHelper(cri status.ContainerRuntime) (*ConfigHelper, error)

NewConfigHelper returns a new ConfigHelper

func (*ConfigHelper) GetKubeadmConfigPatches

func (h *ConfigHelper) GetKubeadmConfigPatches(kubeadmConfigVersion string, controlPlane bool) ([]string, error)

GetKubeadmConfigPatches returns kustomize patches for configuring the kubeadm config file for using the selected container runtime

type CreateHelper

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

CreateHelper provides CRI specific methods for node create

func NewCreateHelper

func NewCreateHelper(cri status.ContainerRuntime) (*CreateHelper, error)

NewCreateHelper returns a new CreateHelper

func (*CreateHelper) CreateExternalEtcd

func (h *CreateHelper) CreateExternalEtcd(cluster, name, image string) error

CreateExternalEtcd creates a container hosting a single node, insecure, external etcd cluster

func (*CreateHelper) CreateExternalLoadBalancer

func (h *CreateHelper) CreateExternalLoadBalancer(cluster, name string) error

CreateExternalLoadBalancer creates a container hosting an external load balancer

func (*CreateHelper) CreateNode

func (h *CreateHelper) CreateNode(cluster, name, image, role string, volumes []string) error

CreateNode creates a container that internally hosts the selected cri runtime

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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