reconfigure

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FSMSpec

func FSMSpec(config install.FSMConfig) fsm.FSMSpecFunc

FSMSpec returns a function that returns an appropriate phase executor based on the provided parameters.

func NewFSMFactory

func NewFSMFactory(config install.Config) engine.FSMFactory

NewFSMFactory returns a new factory that can create fsm for the reconfigure operation.

Types

type Config

type Config struct {
	// FieldLogger is the logger for the installer
	logrus.FieldLogger
	// Operator specifies the service operator
	ops.Operator
	// State represents the existing cluster state
	State *localenv.LocalState
}

Config is the reconfigure operation engine configuration.

type Engine

type Engine struct {
	// Config specifies the engine's configuration
	Config
}

Engine implements command line-driven installation workflow

func NewEngine

func NewEngine(config Config) (*Engine, error)

NewEngine returns fsm engine for the reconfigure operation.

func (*Engine) Execute

func (e *Engine) Execute(ctx context.Context, installer install.Interface, config install.Config) (dispatcher.Status, error)

Execute executes the installer steps. Implements installer.Engine

type PlanBuilder

type PlanBuilder struct {
	// PlanBuilder is the embedded installer plan builder.
	*install.PlanBuilder
}

PlanBuilder builds plan for the reconfigure operation.

func (*PlanBuilder) AddChecksPhase

func (b *PlanBuilder) AddChecksPhase(plan *storage.OperationPlan)

AddChecksPhase adds the preflight checks phase to the plan.

func (*PlanBuilder) AddClusterPackagesPhase

func (b *PlanBuilder) AddClusterPackagesPhase(plan *storage.OperationPlan)

AddClusterPackagesPhase adds phase that cleans up packages in the cluster state.

func (*PlanBuilder) AddDirectoriesPhase

func (b *PlanBuilder) AddDirectoriesPhase(plan *storage.OperationPlan)

AddDirectoriesPhase adds phase that cleans up old directories.

func (*PlanBuilder) AddEtcdPhase

func (b *PlanBuilder) AddEtcdPhase(plan *storage.OperationPlan)

AddEtcdPhase updates etcd member's peer advertise URL.

func (*PlanBuilder) AddGravityPhase

func (b *PlanBuilder) AddGravityPhase(plan *storage.OperationPlan)

AddGravityPhase adds phase that waits for gravity to become available.

func (*PlanBuilder) AddLocalPackagesPhase

func (b *PlanBuilder) AddLocalPackagesPhase(plan *storage.OperationPlan)

AddLocalPackagesPhase adds phase that cleans up packages in the local state.

func (*PlanBuilder) AddNetworkPhase

func (b *PlanBuilder) AddNetworkPhase(plan *storage.OperationPlan)

AddNetworkPhase adds phase that cleans up old network interfaces.

func (*PlanBuilder) AddNodePhase

func (b *PlanBuilder) AddNodePhase(plan *storage.OperationPlan)

AddNodePhase adds phase that cleans up old node object.

func (*PlanBuilder) AddPodsPhase

func (b *PlanBuilder) AddPodsPhase(plan *storage.OperationPlan)

AddPodsPhase adds phase that recreates all pods.

func (*PlanBuilder) AddRestartPhase

func (b *PlanBuilder) AddRestartPhase(plan *storage.OperationPlan)

AddRestartPhase adds phase that restarts Teleport and Planet units.

func (*PlanBuilder) AddStatePhase

func (b *PlanBuilder) AddStatePhase(plan *storage.OperationPlan)

AddStatePhase adds phase that updates cluster state in the database.

func (*PlanBuilder) AddTokensPhase

func (b *PlanBuilder) AddTokensPhase(plan *storage.OperationPlan)

AddTokensPhase adds phase that cleans up old service account tokens.

type Planner

type Planner struct {
	// PlanBuilderGetter allows to retrieve install plan builder.
	install.PlanBuilderGetter
	// Cluster is the installed cluster.
	Cluster storage.Site
}

Planner creates operation plans for the reconfigure operation.

func NewPlanner

func NewPlanner(getter install.PlanBuilderGetter, cluster storage.Site) *Planner

NewPlanner returns reconfigure operation plan builder.

func (*Planner) GetOperationPlan

func (p *Planner) GetOperationPlan(operator ops.Operator, cluster ops.Site, operation ops.SiteOperation) (*storage.OperationPlan, error)

GetOperationPlan creates operation plan for the reconfigure operation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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