upgrade

package
v0.0.0-...-33d5a37 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 25 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 = 180 * time.Minute
)

Functions

func RunUpgrade

func RunUpgrade(h *helper.H) error

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

func TriggerManagedUpgrade

func TriggerManagedUpgrade(h *helper.H) (*configv1.Update, error)

TriggerManagedUpgrade initiates an upgrade using the managed-upgrade-operator

func VersionToChannel

func VersionToChannel(version *semver.Version) (string, error)

VersionToChannel creates a Cincinnati channel version out of an OpenShift version. If the config.Instance.Upgrade.OnlyUpgradeToZReleases flag is set, this will use the install version in the global state object to determine the channel. The provider will be queried for the appropriate Cincinnati channel to use unless a prelease version is being used, in which case the candidate channel will be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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