Documentation ¶
Index ¶
- Variables
- func Cleanup(debug bool)
- func ImportBundleImages(ctx context.Context, failFast bool) error
- func ImportImages(ctx context.Context, imgs map[string]string, failFast bool) error
- func Install(ctx context.Context, c Config) error
- func Upgrade(ctx context.Context, c Config) (retErr error)
- func Wait(ctx context.Context) error
- type Config
- type FirewallType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExists = errors.New("k3s already installed") ErrNMCS = errors.New("nm-cloud-setup is enabled, please run systemctl disable nm-cloud-setup.service nm-cloud-setup.timer and reboot") DefaultLocalStoragePath = filepath.Join(dataDir, "local-storage") )
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 ImportImages ¶
Types ¶
type Config ¶
type Config struct { *config_v1.Configuration Iface string // interface for k3s network to work on ProxyKubernetes bool // use proxy for k3s Debug bool // contains filtered or unexported fields }
type FirewallType ¶
type FirewallType string
var ( FirewallTypeFirewalld FirewallType = "firewalld" FirewallTypeUFW FirewallType = "ufw" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.