Documentation ¶
Index ¶
- Variables
- type Backup
- type ConfigureK0s
- type Connect
- type DetectOS
- type Disconnect
- type DownloadBinaries
- type DownloadK0s
- type GatherFacts
- type GatherK0sFacts
- type GenericPhase
- type GetKubeconfig
- type InitializeK0s
- type InstallControllers
- type InstallWorkers
- type Manager
- type PrepareArm
- type PrepareHosts
- type Reset
- type Restore
- type RunHooks
- type UpgradeControllers
- type UpgradeWorkers
- type UploadBinaries
- type UploadFiles
- type ValidateFacts
- type ValidateHosts
Constants ¶
This section is empty.
Variables ¶
var Colorize = aurora.NewAurora(false)
var NoWait bool
NoWait is used by various phases to decide if node ready state should be waited for or not
Functions ¶
This section is empty.
Types ¶
type Backup ¶ added in v0.8.5
type Backup struct { GenericPhase // contains filtered or unexported fields }
Backup connect to one of the controllers and takes a backup
type ConfigureK0s ¶
type ConfigureK0s struct {
GenericPhase
}
ConfigureK0s writes the k0s configuration to host k0s config dir
type DownloadBinaries ¶
type DownloadBinaries struct { GenericPhase // contains filtered or unexported fields }
DownloadBinaries downloads k0s binaries to localohost temp files
func (*DownloadBinaries) Prepare ¶
func (p *DownloadBinaries) Prepare(config *config.Cluster) error
Prepare the phase
func (*DownloadBinaries) ShouldRun ¶
func (p *DownloadBinaries) ShouldRun() bool
ShouldRun is true when the phase should be run
type DownloadK0s ¶
type DownloadK0s struct { GenericPhase // contains filtered or unexported fields }
DownloadK0s performs k0s online download on the hosts
func (*DownloadK0s) Prepare ¶
func (p *DownloadK0s) Prepare(config *config.Cluster) error
Prepare the phase
func (*DownloadK0s) ShouldRun ¶
func (p *DownloadK0s) ShouldRun() bool
ShouldRun is true when the phase should be run
type GatherFacts ¶
type GatherFacts struct {
GenericPhase
}
GatherFacts gathers information about hosts, such as if k0s is already up and running
type GatherK0sFacts ¶
type GatherK0sFacts struct { GenericPhase // contains filtered or unexported fields }
GatherK0sFacts gathers information about hosts, such as if k0s is already up and running
type GenericPhase ¶
GenericPhase is a basic phase which gets a config via prepare, sets it into p.Config
func (*GenericPhase) GetConfig ¶
func (p *GenericPhase) GetConfig() *config.Cluster
GetConfig is an accessor to phase Config
type GetKubeconfig ¶
type GetKubeconfig struct {
GenericPhase
}
GetKubeconfig is a phase to get and dump the admin kubeconfig
type InitializeK0s ¶
type InitializeK0s struct { GenericPhase // contains filtered or unexported fields }
InitializeK0s sets up the "initial" k0s controller
func (*InitializeK0s) CleanUp ¶ added in v0.10.0
func (p *InitializeK0s) CleanUp()
CleanUp cleans up the environment override file
func (*InitializeK0s) Prepare ¶
func (p *InitializeK0s) Prepare(config *config.Cluster) error
Prepare the phase
func (*InitializeK0s) ShouldRun ¶
func (p *InitializeK0s) ShouldRun() bool
ShouldRun is true when there is a leader host
type InstallControllers ¶
type InstallControllers struct { GenericPhase // contains filtered or unexported fields }
InstallControllers installs k0s controllers and joins them to the cluster
func (*InstallControllers) CleanUp ¶ added in v0.10.0
func (p *InstallControllers) CleanUp()
CleanUp cleans up the environment override files on hosts
func (*InstallControllers) Prepare ¶
func (p *InstallControllers) Prepare(config *config.Cluster) error
Prepare the phase
func (*InstallControllers) ShouldRun ¶
func (p *InstallControllers) ShouldRun() bool
ShouldRun is true when there are controllers
type InstallWorkers ¶
type InstallWorkers struct { GenericPhase // contains filtered or unexported fields }
InstallWorkers installs k0s on worker hosts and joins them to the cluster
func (*InstallWorkers) CleanUp ¶ added in v0.10.0
func (p *InstallWorkers) CleanUp()
CleanUp cleans up the environment override files on hosts
func (*InstallWorkers) Prepare ¶
func (p *InstallWorkers) Prepare(config *config.Cluster) error
Prepare the phase
func (*InstallWorkers) ShouldRun ¶
func (p *InstallWorkers) ShouldRun() bool
ShouldRun is true when there are workers
type PrepareArm ¶ added in v0.10.0
type PrepareArm struct { GenericPhase // contains filtered or unexported fields }
PrepareArm implements a phase which fixes arm quirks
func (*PrepareArm) Prepare ¶ added in v0.10.0
func (p *PrepareArm) Prepare(config *config.Cluster) error
Prepare the phase
func (*PrepareArm) ShouldRun ¶ added in v0.10.0
func (p *PrepareArm) ShouldRun() bool
ShouldRun is true when there are arm controllers
type PrepareHosts ¶
type PrepareHosts struct {
GenericPhase
}
PrepareHosts installs required packages and so on on the hosts.
type Reset ¶ added in v0.5.0
type Reset struct { GenericPhase // contains filtered or unexported fields }
Reset uninstalls k0s from the hosts
type Restore ¶ added in v0.8.5
type Restore struct { GenericPhase RestoreFrom string // contains filtered or unexported fields }
type RunHooks ¶ added in v0.9.0
RunHooks phase runs a set of hooks configured for the host
type UpgradeControllers ¶ added in v0.5.0
type UpgradeControllers struct { GenericPhase // contains filtered or unexported fields }
UpgradeControllers upgrades the controllers one-by-one
func (*UpgradeControllers) CleanUp ¶ added in v0.10.0
func (p *UpgradeControllers) CleanUp()
CleanUp cleans up the environment override files on hosts
func (*UpgradeControllers) Prepare ¶ added in v0.5.0
func (p *UpgradeControllers) Prepare(config *config.Cluster) error
Prepare the phase
func (*UpgradeControllers) Run ¶ added in v0.5.0
func (p *UpgradeControllers) Run() error
Run the phase
func (*UpgradeControllers) ShouldRun ¶ added in v0.5.0
func (p *UpgradeControllers) ShouldRun() bool
ShouldRun is true when there are controllers that needs to be upgraded
func (*UpgradeControllers) Title ¶ added in v0.5.0
func (p *UpgradeControllers) Title() string
Title for the phase
type UpgradeWorkers ¶ added in v0.5.0
type UpgradeWorkers struct { GenericPhase NoDrain bool // contains filtered or unexported fields }
UpgradeWorkers upgrades workers in batches
func (*UpgradeWorkers) CleanUp ¶ added in v0.10.0
func (p *UpgradeWorkers) CleanUp()
CleanUp cleans up the environment override files on hosts
func (*UpgradeWorkers) Prepare ¶ added in v0.5.0
func (p *UpgradeWorkers) Prepare(config *config.Cluster) error
Prepare the phase
func (*UpgradeWorkers) ShouldRun ¶ added in v0.5.0
func (p *UpgradeWorkers) ShouldRun() bool
ShouldRun is true when there are workers that needs to be upgraded
func (*UpgradeWorkers) Title ¶ added in v0.5.0
func (p *UpgradeWorkers) Title() string
Title for the phase
type UploadBinaries ¶
type UploadBinaries struct { GenericPhase // contains filtered or unexported fields }
UploadBinaries uploads k0s binaries from localhost to target
func (*UploadBinaries) Prepare ¶
func (p *UploadBinaries) Prepare(config *config.Cluster) error
Prepare the phase
func (*UploadBinaries) ShouldRun ¶
func (p *UploadBinaries) ShouldRun() bool
ShouldRun is true when there are hosts that need binary uploading
type UploadFiles ¶ added in v0.6.0
type UploadFiles struct { GenericPhase // contains filtered or unexported fields }
UploadFiles implements a phase which upload files to hosts
func (*UploadFiles) Prepare ¶ added in v0.6.0
func (p *UploadFiles) Prepare(config *config.Cluster) error
Prepare the phase
func (*UploadFiles) ShouldRun ¶ added in v0.6.0
func (p *UploadFiles) ShouldRun() bool
ShouldRun is true when there are workers
func (*UploadFiles) Title ¶ added in v0.6.0
func (p *UploadFiles) Title() string
Title for the phase
type ValidateFacts ¶ added in v0.5.0
type ValidateFacts struct { GenericPhase SkipDowngradeCheck bool }
ValidateFacts performs remote OS detection
func (*ValidateFacts) Title ¶ added in v0.5.0
func (p *ValidateFacts) Title() string
Title for the phase
type ValidateHosts ¶
type ValidateHosts struct { GenericPhase // contains filtered or unexported fields }
ValidateHosts performs remote OS detection
Source Files ¶
- arm_prepare.go
- backup.go
- configure_k0s.go
- connect.go
- detect_os.go
- disconnect.go
- download_binaries.go
- download_k0s.go
- gather_facts.go
- gather_k0s_facts.go
- generic_phase.go
- get_kubeconfig.go
- initialize_k0s.go
- install_controllers.go
- install_workers.go
- manager.go
- prepare_hosts.go
- reset.go
- restore.go
- runhooks.go
- upgrade_controllers.go
- upgrade_workers.go
- upload_binaries.go
- uploadfiles.go
- validate_facts.go
- validate_hosts.go