Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
func Action(n string, f actionFunction) actionStep
Action returns a actionStep of name `n` which will execute the action function `f`. Errors from `f` are returned directly.
func Run ¶
func Run(ctx context.Context, upgradeConfig *upgradev1alpha1.UpgradeConfig, logger logr.Logger, steps []UpgradeStep) (upgradev1alpha1.UpgradePhase, error)
Run executes the provided steps in order until one fails or all steps are completed. The function returns an indication of the last-completed UpgradePhase any associated error.
Types ¶
type UpgradeStep ¶
type UpgradeStep interface { String() string // contains filtered or unexported methods }
UpgradeStep is the interface for steps that the upgrade runner can execute.
Click to show internal directories.
Click to hide internal directories.