k3s

package
v0.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExists = errors.New("k3s already installed")
)
View Source
var (
	ErrNoTLS = errors.New("no tls files")
)
View Source
var ErrNotExist = errors.New("k3s not exists")

Functions

func Cleanup

func Cleanup(debug bool)

Cleanup runs k3s-uninstall and removes copied files if debug flag is not enabled

func ImportBundleImages

func ImportBundleImages(ctx context.Context, failFast bool) error

func ImportImages

func ImportImages(ctx context.Context, imagePaths []string, failFast bool) error

func Install

func Install(ctx context.Context, c InstallConfig) error

Install runs K3S installation process

func Upgrade

func Upgrade(ctx context.Context, c UpgradeConfig) (retErr error)

func Wait

func Wait(ctx context.Context) error

Wait waits for k3s to be up

Types

type InstallConfig

type InstallConfig struct {
	*config_v1.Configuration

	Iface     string // interface for k3s network to work on
	IfaceAddr string // ip addr for k3s to use as node ip

	Debug bool
}

type UpgradeConfig

type UpgradeConfig struct {
	Debug bool
}

Jump to

Keyboard shortcuts

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