Documentation ¶
Overview ¶
Package upgrade provides utilities to per
Index ¶
- Constants
- Variables
- func IsUpgradeDone(h *helper.H, desired *configv1.Update) (done bool, msg string, err error)
- func LatestRelease(releaseStream string) (name, pullSpec string, err error)
- func RunUpgrade(cfg *config.Config) error
- func TriggerUpgrade(h *helper.H, cfg *config.Config) (*configv1.ClusterVersion, error)
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 ¶
IsUpgradeDone returns with done true when an upgrade is complete at desired and any available msg.
func LatestRelease ¶
LatestRelease retrieves latest release information for given releaseStream.
func RunUpgrade ¶
RunUpgrade uses the OpenShift extended suite to upgrade a cluster to the image provided in cfg.
func TriggerUpgrade ¶
TriggerUpgrade uses a helper to perform an upgrade.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.