executor

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

CheckError prints err to stderr and exits with code 1 if err is not nil. Otherwise, it is a no-op.

func NewJob

func NewJob() *cobra.Command

NewJob will setup a new upgrade job

func NewUpgradeCStorCSPCJob

func NewUpgradeCStorCSPCJob() *cobra.Command

NewUpgradeCStorCSPCJob upgrades all the cStor Pools associated with a given Storage Pool Claim

func NewUpgradeCStorVolumeJob

func NewUpgradeCStorVolumeJob() *cobra.Command

NewUpgradeCStorVolumeJob upgrades all the cStor Pools associated with a given Storage Pool Claim

func NewUpgradeResourceJob added in v1.11.1

func NewUpgradeResourceJob() *cobra.Command

NewUpgradeResourceJob upgrade a resource from upgradeTask

func PreRun

func PreRun(cmd *cobra.Command, args []string)

PreRun will check for environement variables to be read and intialized.

Types

type ResourceOptions added in v1.11.1

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

ResourceOptions stores information required for upgradeTask upgrade

type UpgradeOptions

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

UpgradeOptions stores information required for upgrade

func (*UpgradeOptions) InitializeDefaults

func (u *UpgradeOptions) InitializeDefaults(cmd *cobra.Command) error

InitializeDefaults will ensure the default values for optional options are set.

func (*UpgradeOptions) InitializeFromUpgradeTaskResource added in v1.11.1

func (u *UpgradeOptions) InitializeFromUpgradeTaskResource(
	upgradeTaskCRObj v1Alpha1API.UpgradeTask) error

InitializeFromUpgradeTaskResource will populate the UpgradeOptions from given UpgradeTask

func (*UpgradeOptions) RunCStorCSPCUpgrade

func (u *UpgradeOptions) RunCStorCSPCUpgrade(cmd *cobra.Command, name string) error

RunCStorCSPCUpgrade upgrades the given Jiva Volume.

func (*UpgradeOptions) RunCStorVolumeUpgrade

func (u *UpgradeOptions) RunCStorVolumeUpgrade(cmd *cobra.Command, name string) error

RunCStorVolumeUpgrade upgrades the given Jiva Volume.

func (*UpgradeOptions) RunPreFlightChecks

func (u *UpgradeOptions) RunPreFlightChecks(cmd *cobra.Command) error

RunPreFlightChecks will ensure the sanity of the common upgrade options

func (*UpgradeOptions) RunResourceUpgrade added in v1.11.1

func (u *UpgradeOptions) RunResourceUpgrade(cmd *cobra.Command) error

RunResourceUpgrade upgrades the given upgradeTask

func (*UpgradeOptions) RunResourceUpgradeChecks added in v1.11.1

func (u *UpgradeOptions) RunResourceUpgradeChecks(cmd *cobra.Command) error

RunResourceUpgradeChecks will ensure the sanity of the upgradeTask upgrade options

Jump to

Keyboard shortcuts

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