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 NewInitialisationStep ¶
func NewInitialisationStep(os storage.Operations, ors storage.Orchestrations, pc provisioner.Client, b input.CreatorForPlan, em *avs.EvaluationManager, timeSchedule *TimeSchedule, bundleBuilder notification.BundleBuilder) *InitialisationStep
func (*InitialisationStep) Name ¶
func (s *InitialisationStep) Name() string
func (*InitialisationStep) Run ¶
func (s *InitialisationStep) Run(operation internal.UpgradeClusterOperation, log logrus.FieldLogger) (internal.UpgradeClusterOperation, time.Duration, error)
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
func (*LogSkippingUpgradeStep) Run ¶
func (s *LogSkippingUpgradeStep) Run(operation internal.UpgradeClusterOperation, log logrus.FieldLogger) (internal.UpgradeClusterOperation, time.Duration, error)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(storage storage.Operations, pub event.Publisher, logger logrus.FieldLogger) *Manager
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
func (*SendNotificationStep) Run ¶
func (s *SendNotificationStep) Run(operation internal.UpgradeClusterOperation, log logrus.FieldLogger) (internal.UpgradeClusterOperation, time.Duration, error)
type Step ¶
type Step interface { Name() string Run(operation internal.UpgradeClusterOperation, logger logrus.FieldLogger) (internal.UpgradeClusterOperation, time.Duration, error) }
type StepCondition ¶
type StepWithCondition ¶
type StepWithCondition struct { Step // contains filtered or unexported fields }
type TimeSchedule ¶
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
func (*UpgradeClusterStep) Run ¶
func (s *UpgradeClusterStep) Run(operation internal.UpgradeClusterOperation, log logrus.FieldLogger) (internal.UpgradeClusterOperation, time.Duration, error)
Click to show internal directories.
Click to hide internal directories.