upgrade

package
v0.0.0-...-93e563e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package upgrade provides utilities to per

Index

Constants

View Source
const (
	// ClusterVersionName is used to identify the default ClusterVersion.
	ClusterVersionName = "version"
)

Variables

View Source
var (
	// ActiveConditions have true statuses when an upgrade is ongoing.
	ActiveConditions = []configv1.ClusterStatusConditionType{
		configv1.OperatorProgressing,
		configv1.OperatorDegraded,
		configv1.ClusterStatusConditionType("Failing"),
	}

	// MaxDuration is how long an upgrade will run before failing.
	MaxDuration = 90 * time.Minute
)

Functions

func IsUpgradeDone

func IsUpgradeDone(h *helper.H, desired *configv1.Update) (done bool, msg string, err error)

IsUpgradeDone returns with done true when an upgrade is complete at desired and any available msg.

func LatestRelease

func LatestRelease(releaseStream string) (name, pullSpec string, err error)

LatestRelease retrieves latest release information for given releaseStream.

func RunUpgrade

func RunUpgrade(cfg *config.Config) error

RunUpgrade uses the OpenShift extended suite to upgrade a cluster to the image provided in cfg.

func TriggerUpgrade

func TriggerUpgrade(h *helper.H, cfg *config.Config) (*configv1.ClusterVersion, error)

TriggerUpgrade uses a helper to perform an upgrade.

Types

This section is empty.

Jump to

Keyboard shortcuts

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