Documentation
¶
Overview ¶
Package phase is all the various phases used for bootstrapping a cluster. The phase files are named in a rough order used during and install; - 0x are for preconnection resources, along with ssh-ing into the node - 1x are used to gather information and start the prep-work for the cluster - 2x are for installing files for the distro engine, e.i. rpm's, apt's, or binary files - 3x are for starting the engine or for upgrading an existing install - 5x are for resetting the engine from the nodes - 9x are last minute things and finally disconnecting from a node - ext are files that are currently not used but may be incorporated later
Index ¶
- Constants
- Variables
- type APTUploadFiles
- type BINUploadFiles
- type ConfigureEngine
- type ConfigureFirewall
- func (p *ConfigureFirewall) Explanation() string
- func (p *ConfigureFirewall) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
- func (p *ConfigureFirewall) Run(ctx context.Context) error
- func (p *ConfigureFirewall) ShouldRun() bool
- func (p *ConfigureFirewall) Title() string
- type ConfigureFirewallPorts
- func (p *ConfigureFirewallPorts) Explanation() string
- func (p *ConfigureFirewallPorts) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
- func (p *ConfigureFirewallPorts) Run(ctx context.Context) error
- func (p *ConfigureFirewallPorts) ShouldRun() bool
- func (p *ConfigureFirewallPorts) Title() string
- type Connect
- type DaemonReload
- type DeleteCommon
- type DeleteControllers
- func (p *DeleteControllers) Explanation() string
- func (p *DeleteControllers) Prepare(ctx context.Context, c *cluster.ZarfCluster, d *distro.ZarfDistro) error
- func (p *DeleteControllers) Run(ctx context.Context) error
- func (p *DeleteControllers) ShouldRun() bool
- func (p *DeleteControllers) Title() string
- type DeleteWorkers
- type DetectOS
- type Disconnect
- type FirewallNodeConfig
- type FirewallPortConfig
- type GatherFacts
- type GatherFactsDistro
- type GenericPhase
- func (p *GenericPhase) GetConfig() *cluster.ZarfCluster
- func (p *GenericPhase) GetDistro() *distro.ZarfDistro
- func (p *GenericPhase) Prepare(c *cluster.ZarfCluster, d *distro.ZarfDistro) error
- func (p *GenericPhase) SetManager(m *Manager)
- func (p *GenericPhase) VersionGreater(host *cluster.ZarfHost, version string) bool
- func (p *GenericPhase) VersionLess(host *cluster.ZarfHost, version string) bool
- func (p *GenericPhase) Wet(host fmt.Stringer, msg string, funcs ...errorfunc) error
- type InitializeControllers
- func (p *InitializeControllers) Explanation() string
- func (p *InitializeControllers) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
- func (p *InitializeControllers) Run(ctx context.Context) error
- func (p *InitializeControllers) ShouldRun() bool
- func (p *InitializeControllers) Title() string
- type InitializeWorkers
- func (p *InitializeWorkers) Explanation() string
- func (p *InitializeWorkers) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
- func (p *InitializeWorkers) Run(ctx context.Context) error
- func (p *InitializeWorkers) ShouldRun() bool
- func (p *InitializeWorkers) Title() string
- type InstallFapolicy
- type KubeConfig
- type Lock
- func (p *Lock) Cancel(_ context.Context)
- func (p *Lock) CleanUp()
- func (p *Lock) Explanation() string
- func (p *Lock) Prepare(ctx context.Context, c *cluster.ZarfCluster, _ *distro.ZarfDistro) error
- func (p *Lock) Run(ctx context.Context) error
- func (p *Lock) Title() string
- func (p *Lock) UnlockPhase() Phase
- type Manager
- func (m *Manager) AddPhase(p ...Phase)
- func (m *Manager) GetDistroOSFiles() v1alpha1.ZarfFiles
- func (m *Manager) RetryTimeout(ctx context.Context, f func(ctx context.Context) error) error
- func (m *Manager) Run(ctx context.Context) error
- func (m *Manager) SetPhases(p Phases)
- func (m *Manager) SetTimout(tm time.Duration)
- func (m *Manager) Wet(_ fmt.Stringer, _ string, funcs ...errorfunc) error
- type ManagerDistroConfig
- type ModifyHosts
- type Phase
- type Phases
- type PrepareFapolicy
- type PrepareHosts
- type PrepareSelinux
- type RPMUploadFiles
- type UninstallEngine
- type Unlock
- type UpgradeController
- type UpgradeHosts
- type UpgradeWorkers
- type UploadFiles
- type UploadFilesCommon
- type ValidateHosts
Constants ¶
const (
// ContainerSELinux package name
ContainerSELinux = "container-selinux"
)
const (
// FAPOLICYD name of the service for fapolicyd
FAPOLICYD = "fapolicyd"
)
const (
// FAPolicydRuleFile path on the host
FAPolicydRuleFile = "/etc/fapolicyd/rules.d/31-cargoship.rules"
)
const (
// FIREWALLD name of the service for firewalld
FIREWALLD = "firewalld"
)
const (
// UnknownVersion for when the version is not set
UnknownVersion = "v0.0.0"
)
Variables ¶
var ErrNoControllers = errors.New("no controllers are running")
ErrNoControllers an error for when no controllers are running
var Force bool
Force is used by various phases to attempt a forced installation
var ( // Interval is the time to wait between retry attempts Interval = 10 * time.Second )
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 APTUploadFiles ¶
type APTUploadFiles struct {
UploadFilesCommon
}
APTUploadFiles implements a phase which upload files to hosts
func (*APTUploadFiles) Explanation ¶
func (p *APTUploadFiles) Explanation() string
Explanation about the current phase, used for documentation generation
func (*APTUploadFiles) Prepare ¶
func (p *APTUploadFiles) Prepare(ctx context.Context, c *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
type BINUploadFiles ¶
type BINUploadFiles struct {
UploadFilesCommon
Distro distrocfg.Distro
}
BINUploadFiles implements a phase which upload files to hosts
func (*BINUploadFiles) Explanation ¶
func (p *BINUploadFiles) Explanation() string
Explanation about the current phase, used for documentation generation
func (*BINUploadFiles) Prepare ¶
func (p *BINUploadFiles) Prepare(ctx context.Context, c *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
type ConfigureEngine ¶
type ConfigureEngine struct {
GenericPhase
Distro distrocfg.Distro
// contains filtered or unexported fields
}
ConfigureEngine writes the engine configuration to host engine config dir
func (*ConfigureEngine) Explanation ¶
func (p *ConfigureEngine) Explanation() string
Explanation about the current phase, used for documentation generation
func (*ConfigureEngine) Prepare ¶
func (p *ConfigureEngine) Prepare(ctx context.Context, c *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
func (*ConfigureEngine) Run ¶
func (p *ConfigureEngine) Run(ctx context.Context) error
Run the phase title
func (*ConfigureEngine) Title ¶
func (p *ConfigureEngine) Title() string
Title returns the phase title
type ConfigureFirewall ¶
type ConfigureFirewall struct {
GenericPhase
Distro distrocfg.Distro
Enabled bool
// contains filtered or unexported fields
}
ConfigureFirewall state
func (*ConfigureFirewall) Explanation ¶
func (p *ConfigureFirewall) Explanation() string
Explanation about the current phase, used for documentation generation
func (*ConfigureFirewall) Prepare ¶
func (p *ConfigureFirewall) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*ConfigureFirewall) Run ¶
func (p *ConfigureFirewall) Run(ctx context.Context) error
Run the phase
func (*ConfigureFirewall) ShouldRun ¶
func (p *ConfigureFirewall) ShouldRun() bool
ShouldRun is true when there is a host with selinux or fapolicyd on the hosts
type ConfigureFirewallPorts ¶
type ConfigureFirewallPorts struct {
GenericPhase
Enabled bool
// contains filtered or unexported fields
}
ConfigureFirewallPorts gathers information about hosts, such as if the engine is already up and running
func (*ConfigureFirewallPorts) Explanation ¶
func (p *ConfigureFirewallPorts) Explanation() string
Explanation about the current phase, used for documentation generation
func (*ConfigureFirewallPorts) Prepare ¶
func (p *ConfigureFirewallPorts) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*ConfigureFirewallPorts) Run ¶
func (p *ConfigureFirewallPorts) Run(ctx context.Context) error
Run the phase
func (*ConfigureFirewallPorts) ShouldRun ¶
func (p *ConfigureFirewallPorts) ShouldRun() bool
ShouldRun is true when there is a host with selinux or fapolicyd on the hosts
func (*ConfigureFirewallPorts) Title ¶
func (p *ConfigureFirewallPorts) Title() string
Title for the phase
type Connect ¶
type Connect struct {
GenericPhase
}
Connect connects to each of the hosts
func (*Connect) Explanation ¶
Explanation about the current phase, used for documentation generation
type DaemonReload ¶
type DaemonReload struct {
GenericPhase
}
DaemonReload phase runs `systemctl daemon-reload` or equivalent on all hosts.
func (*DaemonReload) Explanation ¶
func (p *DaemonReload) Explanation() string
Explanation about the current phase, used for documentation generation
func (*DaemonReload) ShouldRun ¶
func (p *DaemonReload) ShouldRun() bool
ShouldRun is true when there are controllers that needs to be reset
type DeleteCommon ¶
type DeleteCommon struct {
GenericPhase
Distro distrocfg.Distro
// contains filtered or unexported fields
}
DeleteCommon phase state
func (*DeleteCommon) Prepare ¶
func (p *DeleteCommon) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
type DeleteControllers ¶
type DeleteControllers struct {
DeleteCommon
NoDrain bool
// contains filtered or unexported fields
}
DeleteControllers phase state
func (*DeleteControllers) Explanation ¶
func (p *DeleteControllers) Explanation() string
Explanation about the current phase, used for documentation generation
func (*DeleteControllers) Prepare ¶
func (p *DeleteControllers) Prepare(ctx context.Context, c *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
func (*DeleteControllers) Run ¶
func (p *DeleteControllers) Run(ctx context.Context) error
Run the phase
func (*DeleteControllers) ShouldRun ¶
func (p *DeleteControllers) ShouldRun() bool
ShouldRun is true when this phase is enabled
type DeleteWorkers ¶
type DeleteWorkers struct {
DeleteCommon
NoDrain bool
WorkerConcurrent int
// contains filtered or unexported fields
}
DeleteWorkers phase state
func (*DeleteWorkers) Explanation ¶
func (p *DeleteWorkers) Explanation() string
Explanation about the current phase, used for documentation generation
func (*DeleteWorkers) Prepare ¶
func (p *DeleteWorkers) Prepare(ctx context.Context, c *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
func (*DeleteWorkers) ShouldRun ¶
func (p *DeleteWorkers) ShouldRun() bool
ShouldRun is true when this phase is enabled
type DetectOS ¶
type DetectOS struct {
GenericPhase
}
DetectOS performs remote OS detection
func (*DetectOS) Explanation ¶
Explanation about the current phase, used for documentation generation
type Disconnect ¶
type Disconnect struct {
GenericPhase
}
Disconnect disconnects from the hosts
func (*Disconnect) DryRun ¶
func (p *Disconnect) DryRun() error
DryRun cleans up the temporary binary from the hosts
func (*Disconnect) Explanation ¶
func (p *Disconnect) Explanation() string
Explanation about the current phase, used for documentation generation
type FirewallNodeConfig ¶
type FirewallNodeConfig struct {
XMLName xml.Name `xml:"ipset"`
Type string `xml:"type,attr"`
Short string `xml:"short"`
Long string `xml:"description"`
Entries []string `xml:"entry"`
}
FirewallNodeConfig used to create firewalld config for an array of node ip address
type FirewallPortConfig ¶
type FirewallPortConfig struct {
XMLName xml.Name `xml:"service"`
Short string `xml:"short"`
Ports []cluster.ZarfHostPort `xml:"port"`
}
FirewallPortConfig used to create firewalld config for an array of port(s)
type GatherFacts ¶
type GatherFacts struct {
GenericPhase
}
GatherFacts gathers information about hosts
func (*GatherFacts) Explanation ¶
func (p *GatherFacts) Explanation() string
Explanation about the current phase, used for documentation generation
type GatherFactsDistro ¶
type GatherFactsDistro struct {
GenericPhase
Distro distrocfg.Distro
// contains filtered or unexported fields
}
GatherFactsDistro state
func (*GatherFactsDistro) Explanation ¶
func (p *GatherFactsDistro) Explanation() string
Explanation about the current phase, used for documentation generation
func (*GatherFactsDistro) Prepare ¶
func (p *GatherFactsDistro) Prepare(_ context.Context, _ *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
type GenericPhase ¶
type GenericPhase struct {
// contains filtered or unexported fields
}
GenericPhase state
func (*GenericPhase) GetConfig ¶
func (p *GenericPhase) GetConfig() *cluster.ZarfCluster
GetConfig is an accessor to phase Config
func (*GenericPhase) GetDistro ¶
func (p *GenericPhase) GetDistro() *distro.ZarfDistro
GetDistro is an accessor to phase Distro
func (*GenericPhase) Prepare ¶
func (p *GenericPhase) Prepare(c *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
func (*GenericPhase) SetManager ¶
func (p *GenericPhase) SetManager(m *Manager)
SetManager adds a reference to the phase manager
func (*GenericPhase) VersionGreater ¶
func (p *GenericPhase) VersionGreater(host *cluster.ZarfHost, version string) bool
VersionGreater if host version is greater then the distro version
func (*GenericPhase) VersionLess ¶
func (p *GenericPhase) VersionLess(host *cluster.ZarfHost, version string) bool
VersionLess if host version is less then the distro version
type InitializeControllers ¶
type InitializeControllers struct {
GenericPhase
Distro distrocfg.Distro
// contains filtered or unexported fields
}
InitializeControllers phase state
func (*InitializeControllers) Explanation ¶
func (p *InitializeControllers) Explanation() string
Explanation about the current phase, used for documentation generation
func (*InitializeControllers) Prepare ¶
func (p *InitializeControllers) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*InitializeControllers) Run ¶
func (p *InitializeControllers) Run(ctx context.Context) error
Run the phase
func (*InitializeControllers) ShouldRun ¶
func (p *InitializeControllers) ShouldRun() bool
ShouldRun is true when there are workers
func (*InitializeControllers) Title ¶
func (p *InitializeControllers) Title() string
Title for the phase
type InitializeWorkers ¶
type InitializeWorkers struct {
GenericPhase
Distro distrocfg.Distro
WorkerConcurrent int
// contains filtered or unexported fields
}
InitializeWorkers phase state
func (*InitializeWorkers) Explanation ¶
func (p *InitializeWorkers) Explanation() string
Explanation about the current phase, used for documentation generation
func (*InitializeWorkers) Prepare ¶
func (p *InitializeWorkers) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*InitializeWorkers) Run ¶
func (p *InitializeWorkers) Run(ctx context.Context) error
Run the phase
func (*InitializeWorkers) ShouldRun ¶
func (p *InitializeWorkers) ShouldRun() bool
ShouldRun is true when there are workers
type InstallFapolicy ¶
type InstallFapolicy struct {
GenericPhase
Enabled bool
// contains filtered or unexported fields
}
InstallFapolicy installs required packages and so on on the hosts.
func (*InstallFapolicy) Prepare ¶
func (p *InstallFapolicy) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*InstallFapolicy) Run ¶
func (p *InstallFapolicy) Run(ctx context.Context) error
Run the phase
func (*InstallFapolicy) ShouldRun ¶
func (p *InstallFapolicy) ShouldRun() bool
ShouldRun is true when there is a host with selinux or fapolicyd on the hosts
type KubeConfig ¶
type KubeConfig struct {
GenericPhase
Distro distrocfg.Distro
ClusterID string
Enabled bool
// contains filtered or unexported fields
}
KubeConfig phase state
func (*KubeConfig) Explanation ¶
func (p *KubeConfig) Explanation() string
Explanation about the current phase, used for documentation generation
func (*KubeConfig) Prepare ¶
func (p *KubeConfig) Prepare(ctx context.Context, c *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
type Lock ¶
type Lock struct {
GenericPhase
// contains filtered or unexported fields
}
Lock phase state
func (*Lock) Explanation ¶
Explanation about the current phase, used for documentation generation
func (*Lock) Prepare ¶
func (p *Lock) Prepare(ctx context.Context, c *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*Lock) UnlockPhase ¶
UnlockPhase returns an unlock phase for this lock phase
type Manager ¶
type Manager struct {
Config *cluster.ZarfCluster
Distro *distro.ZarfDistro
DistroID string
Concurrency int
ConcurrentUploads int
DryRun bool
Writer io.Writer
TempDirectory string
Timeout time.Duration
// contains filtered or unexported fields
}
Manager executes phases to construct the cluster
func NewManager ¶
NewManager creates a new Manager
func (*Manager) GetDistroOSFiles ¶
GetDistroOSFiles returns the ZarfFiles for a distro
func (*Manager) RetryTimeout ¶
RetryTimeout wraps retry Timeout logic
type ManagerDistroConfig ¶
type ManagerDistroConfig struct {
BinaryDir string
Binary string
Config string
Token string
Data string
Version string
}
ManagerDistroConfig stores some values for manager distro config
type ModifyHosts ¶
type ModifyHosts struct {
GenericPhase
Enabled bool
// contains filtered or unexported fields
}
ModifyHosts state
func (*ModifyHosts) Explanation ¶
func (p *ModifyHosts) Explanation() string
Explanation about the current phase, used for documentation generation
func (*ModifyHosts) Prepare ¶
func (p *ModifyHosts) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*ModifyHosts) ShouldRun ¶
func (p *ModifyHosts) ShouldRun() bool
ShouldRun is true when this phase is enabled
type Phases ¶
type Phases []Phase
Phases is a slice of Phases
func (Phases) Index ¶
Index returns the index of the first occurrence matching the given phase title or -1 if not found
func (*Phases) InsertAfter ¶
InsertAfter inserts a phase after the first occurrence of a phase with the given title
func (*Phases) InsertBefore ¶
InsertBefore inserts a phase before the first occurrence of a phase with the given title
type PrepareFapolicy ¶
type PrepareFapolicy struct {
GenericPhase
// contains filtered or unexported fields
}
PrepareFapolicy installs required packages and so on on the hosts.
func (*PrepareFapolicy) Explanation ¶
func (p *PrepareFapolicy) Explanation() string
Explanation about the current phase, used for documentation generation
func (*PrepareFapolicy) Prepare ¶
func (p *PrepareFapolicy) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*PrepareFapolicy) Run ¶
func (p *PrepareFapolicy) Run(ctx context.Context) error
Run the phase
func (*PrepareFapolicy) ShouldRun ¶
func (p *PrepareFapolicy) ShouldRun() bool
ShouldRun is true when there is a host with selinux or fapolicyd on the hosts
type PrepareHosts ¶
type PrepareHosts struct {
GenericPhase
}
PrepareHosts installs required packages and so on on the hosts.
func (*PrepareHosts) Explanation ¶
func (p *PrepareHosts) Explanation() string
Explanation about the current phase, used for documentation generation
type PrepareSelinux ¶
type PrepareSelinux struct {
GenericPhase
// contains filtered or unexported fields
}
PrepareSelinux installs required packages and so on on the hosts.
func (*PrepareSelinux) Explanation ¶
func (p *PrepareSelinux) Explanation() string
Explanation about the current phase, used for documentation generation
func (*PrepareSelinux) Prepare ¶
func (p *PrepareSelinux) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*PrepareSelinux) ShouldRun ¶
func (p *PrepareSelinux) ShouldRun() bool
ShouldRun is true when there is a host with selinux on the hosts
type RPMUploadFiles ¶
type RPMUploadFiles struct {
UploadFilesCommon
}
RPMUploadFiles implements a phase which upload files to hosts
func (*RPMUploadFiles) Explanation ¶
func (p *RPMUploadFiles) Explanation() string
Explanation about the current phase, used for documentation generation
func (*RPMUploadFiles) Prepare ¶
func (p *RPMUploadFiles) Prepare(ctx context.Context, c *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
type UninstallEngine ¶
type UninstallEngine struct {
GenericPhase
Distro distrocfg.Distro
WorkerConcurrent int
// contains filtered or unexported fields
}
UninstallEngine state
func (*UninstallEngine) Explanation ¶
func (p *UninstallEngine) Explanation() string
Explanation about the current phase, used for documentation generation
func (*UninstallEngine) Prepare ¶
func (p *UninstallEngine) Prepare(ctx context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
type Unlock ¶
type Unlock struct {
GenericPhase
Cancel func(context.Context)
}
Unlock phase state
func (*Unlock) Explanation ¶
Explanation about the current phase, used for documentation generation
func (*Unlock) Prepare ¶
func (p *Unlock) Prepare(_ context.Context, c *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
type UpgradeController ¶
type UpgradeController struct {
UpgradeHosts
}
UpgradeController phase state
func (*UpgradeController) Explanation ¶
func (p *UpgradeController) Explanation() string
Explanation about the current phase, used for documentation generation
func (*UpgradeController) Prepare ¶
func (p *UpgradeController) Prepare(ctx context.Context, _ *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
type UpgradeHosts ¶
type UpgradeHosts struct {
GenericPhase
Distro distrocfg.Distro
// contains filtered or unexported fields
}
UpgradeHosts phase state
func (*UpgradeHosts) ShouldRun ¶
func (p *UpgradeHosts) ShouldRun() bool
ShouldRun is true when there are workers
type UpgradeWorkers ¶
type UpgradeWorkers struct {
UpgradeHosts
WorkerConcurrent int
}
UpgradeWorkers phase state
func (*UpgradeWorkers) Explanation ¶
func (p *UpgradeWorkers) Explanation() string
Explanation about the current phase, used for documentation generation
func (*UpgradeWorkers) Prepare ¶
func (p *UpgradeWorkers) Prepare(ctx context.Context, _ *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
type UploadFiles ¶
type UploadFiles struct {
GenericPhase
// contains filtered or unexported fields
}
UploadFiles implements a phase which upload files to hosts
func (*UploadFiles) Explanation ¶
func (p *UploadFiles) Explanation() string
Explanation about the current phase, used for documentation generation
func (*UploadFiles) Prepare ¶
func (p *UploadFiles) Prepare(ctx context.Context, c *cluster.ZarfCluster, d *distro.ZarfDistro) error
Prepare the phase
func (*UploadFiles) ShouldRun ¶
func (p *UploadFiles) ShouldRun() bool
ShouldRun is true when there are workers
type UploadFilesCommon ¶
type UploadFilesCommon struct {
GenericPhase
// contains filtered or unexported fields
}
UploadFilesCommon implements a phase which upload files to hosts
func (*UploadFilesCommon) CleanUp ¶
func (p *UploadFilesCommon) CleanUp(ctx context.Context)
CleanUp the phase
func (*UploadFilesCommon) Prepare ¶
func (p *UploadFilesCommon) Prepare(_ context.Context, _ *cluster.ZarfCluster, _ *distro.ZarfDistro) error
Prepare the phase
func (*UploadFilesCommon) Run ¶
func (p *UploadFilesCommon) Run(ctx context.Context) (err error)
Run the phase
func (*UploadFilesCommon) ShouldRun ¶
func (p *UploadFilesCommon) ShouldRun() bool
ShouldRun is true when there are workers
type ValidateHosts ¶
type ValidateHosts struct {
GenericPhase
// contains filtered or unexported fields
}
ValidateHosts performs remote OS detection
func (*ValidateHosts) Explanation ¶
func (p *ValidateHosts) Explanation() string
Explanation about the current phase, used for documentation generation
Source Files
¶
- 00_generic_phase.go
- 01_generic_phase_file.go
- 05_manager.go
- 09_connect.go
- 10_detect_os.go
- 11_gather_facts.go
- 12_validate_hosts.go
- 13_prepare_host.go
- 14_prepare_selinux.go
- 15_prepare_fapolicyd.go
- 16_gather_facts_distro.go
- 17_modify_hosts_file.go
- 18_configure_firewalld.go
- 19_configure_firewalld_ports.go
- 20_uploadfiles.go
- 25_files_common.go
- 27_rpm_install.go
- 28_apt_install.go
- 29_bin_install.go
- 30_configure_engine.go
- 31_initialize_controller.go
- 32_initialize_worker.go
- 35_upgrade_common.go
- 36_upgrade_controller.go
- 37_upgrade_worker.go
- 40_kubeconfig.go
- 50_delete_common.go
- 51_delete_worker.go
- 52_delete_controller.go
- 55_uninstall_engine.go
- 91_lock.go
- 92_unlock.go
- 95_daemon_reload.go
- 99_disconnect.go
- ext_install_fapolicyd.go