upgrade_cluster

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UpgradeInitSteps int = iota + 1
	UpgradeFinishSteps
)
View Source
const (
	// the time after which the operation is marked as expired
	CheckStatusTimeout = 3 * time.Hour
)
View Source
const DryRunPrefix = "dry_run-"

Variables

This section is empty.

Functions

This section is empty.

Types

type InitialisationStep

type InitialisationStep struct {
	// contains filtered or unexported fields
}

func (*InitialisationStep) Name

func (s *InitialisationStep) Name() string

type LogSkippingUpgradeStep

type LogSkippingUpgradeStep struct {
	// contains filtered or unexported fields
}

func NewLogSkippingUpgradeStep

func NewLogSkippingUpgradeStep(os storage.Operations) *LogSkippingUpgradeStep

func (*LogSkippingUpgradeStep) Name

func (s *LogSkippingUpgradeStep) Name() string

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(storage storage.Operations, pub event.Publisher, logger logrus.FieldLogger) *Manager

func (*Manager) AddStep

func (m *Manager) AddStep(weight int, step Step, condition StepCondition)

func (*Manager) Execute

func (m *Manager) Execute(operationID string) (time.Duration, error)

func (*Manager) InitStep

func (m *Manager) InitStep(step Step)

func (Manager) Reschedule

func (m Manager) Reschedule(operationID string, maintenanceWindowBegin, maintenanceWindowEnd time.Time) error

type SendNotificationStep

type SendNotificationStep struct {
	// contains filtered or unexported fields
}

func NewSendNotificationStep

func NewSendNotificationStep(os storage.Operations, bundleBuilder notification.BundleBuilder) *SendNotificationStep

func (*SendNotificationStep) Name

func (s *SendNotificationStep) Name() string

type Step

type Step interface {
	Name() string
	Run(operation internal.UpgradeClusterOperation, logger logrus.FieldLogger) (internal.UpgradeClusterOperation, time.Duration, error)
}

type StepCondition

type StepCondition func(operation internal.Operation) bool

type StepWithCondition

type StepWithCondition struct {
	Step
	// contains filtered or unexported fields
}

type TimeSchedule

type TimeSchedule struct {
	Retry                 time.Duration
	StatusCheck           time.Duration
	UpgradeClusterTimeout time.Duration
}

type UpgradeClusterStep

type UpgradeClusterStep struct {
	// contains filtered or unexported fields
}

func NewUpgradeClusterStep

func NewUpgradeClusterStep(
	os storage.Operations,
	runtimeStorage storage.RuntimeStates,
	cli provisioner.Client,
	timeSchedule *TimeSchedule) *UpgradeClusterStep

func (*UpgradeClusterStep) Name

func (s *UpgradeClusterStep) Name() string

Jump to

Keyboard shortcuts

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