bootstrapper

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 32 Imported by: 82

Documentation

Index

Constants

View Source
const (
	// Kubeadm is the kubeadm bootstrapper type
	Kubeadm = "kubeadm"
)

Variables

This section is empty.

Functions

func GetCachedBinaryList added in v1.0.1

func GetCachedBinaryList() []string

GetCachedBinaryList returns the list of binaries

func GetCachedImageList added in v0.22.2

func GetCachedImageList(imageRepository, version string) ([]string, error)

GetCachedImageList returns the list of images for a version

func SetupCerts

func SetupCerts(k8s config.ClusterConfig, n config.Node, pcpCmd command.Runner, cmd command.Runner) error

SetupCerts gets the generated credentials required to talk to the APIServer.

Types

type Bootstrapper

type Bootstrapper interface {
	// LabelAndUntaintNode applies minikube labels to node and removes NoSchedule taints from control-plane nodes.
	LabelAndUntaintNode(config.ClusterConfig, config.Node) error
	StartCluster(config.ClusterConfig) error
	UpdateCluster(config.ClusterConfig) error
	DeleteCluster(config.KubernetesConfig) error
	WaitForNode(config.ClusterConfig, config.Node, time.Duration) error
	JoinCluster(config.ClusterConfig, config.Node, string) error
	UpdateNode(config.ClusterConfig, config.Node, cruntime.Manager) error
	GenerateToken(config.ClusterConfig) (string, error)
	// LogCommands returns a map of log type to a command which will display that log.
	LogCommands(config.ClusterConfig, LogOptions) map[string]string
	// SetupCerts gets the generated credentials required to talk to the APIServer.
	SetupCerts(config.ClusterConfig, config.Node, cruntime.CommandRunner) error
	GetAPIServerStatus(string, int) (string, error)
}

Bootstrapper contains all the methods needed to bootstrap a Kubernetes cluster

type LogOptions added in v0.34.0

type LogOptions struct {
	// Lines is the number of recent log lines to include, as in tail -n.
	Lines int
	// Follow is whether or not to actively follow the logs, as in tail -f.
	Follow bool
}

LogOptions are options to be passed to LogCommands

Directories

Path Synopsis
Package bsutil package will eventually be renamed to kubeadm package after getting rid of older one
Package bsutil package will eventually be renamed to kubeadm package after getting rid of older one
kverify
Package kverify verifies a running Kubernetes cluster is healthy
Package kverify verifies a running Kubernetes cluster is healthy
Package images implements helpers for getting image names
Package images implements helpers for getting image names

Jump to

Keyboard shortcuts

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