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 ¶
RunUpgrade uses the OpenShift extended suite to upgrade a cluster to the image provided in cfg.
func TriggerManagedUpgrade ¶
TriggerManagedUpgrade initiates an upgrade using the managed-upgrade-operator
func VersionToChannel ¶
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.
Click to show internal directories.
Click to hide internal directories.