v040_041

package
v1.4.1-RC2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpgradeTask

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

UpgradeTask is the struct which implements the Task interface which can be used to perform the upgrade

func NewUpgradeTask

func NewUpgradeTask(from, to string, c client.Client) *UpgradeTask

NewUpgradeTask creates a new pre-upgrade with given client and specified `from` and `to` version

func (*UpgradeTask) IsSuccess

func (p *UpgradeTask) IsSuccess() error

IsSuccess returns error if the upgrade failed, at any step. Else nil will be returned

func (*UpgradeTask) PreUpgrade

func (p *UpgradeTask) PreUpgrade() bool

PreUpgrade runs the pre-upgrade tasks and returns whether it succeeded or not

Jump to

Keyboard shortcuts

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