Documentation ¶
Index ¶
- func ClusterOperators(metricsClient metrics.Metrics, cvClient cv.ClusterVersion, ...) (bool, error)
- func CriticalAlerts(metricsClient metrics.Metrics, cfg *upgraderConfig, ...) (bool, error)
- func HealthCheckPDB(metricsClient metrics.Metrics, c client.Client, dvo dvo.DvoClientBuilder, ...) (bool, error)
- func ManuallyCordonedNodes(metricsClient metrics.Metrics, machinery machinery.Machinery, c client.Client, ...) (bool, error)
- func NewAROUpgrader(c client.Client, cfm configmanager.ConfigManager, mc metrics.Metrics, ...) (*aroUpgrader, error)
- func NewOSDUpgrader(c client.Client, cfm configmanager.ConfigManager, mc metrics.Metrics, ...) (*osdUpgrader, error)
- func NodeUnschedulableTaints(metricsClient metrics.Metrics, machinery machinery.Machinery, c client.Client, ...) (bool, error)
- type ClusterUpgrader
- type ClusterUpgraderBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterOperators ¶
func ClusterOperators(metricsClient metrics.Metrics, cvClient cv.ClusterVersion, ug *upgradev1alpha1.UpgradeConfig, logger logr.Logger, version string) (bool, error)
ClusterOperators function will check the degraded ClusterOperators and if there are any found then error is reported.
func CriticalAlerts ¶
func CriticalAlerts(metricsClient metrics.Metrics, cfg *upgraderConfig, ug *upgradev1alpha1.UpgradeConfig, logger logr.Logger, version string) (bool, error)
CriticalAlerts function will check the list of alerts and namespaces to be ignored for healthcheck and filter the critical open firing alerts via the ALERTS metric.
func HealthCheckPDB ¶
func HealthCheckPDB(metricsClient metrics.Metrics, c client.Client, dvo dvo.DvoClientBuilder, ug *upgradev1alpha1.UpgradeConfig, logger logr.Logger, version string) (bool, error)
HealthCheckPDB performs a health check on the PodDisruptionBudget (PDB) metrics. It returns true if the health check passes, false otherwise. It also returns an error if there was an issue performing the health check.
func ManuallyCordonedNodes ¶
func NewAROUpgrader ¶
func NewAROUpgrader(c client.Client, cfm configmanager.ConfigManager, mc metrics.Metrics, notifier eventmanager.EventManager) (*aroUpgrader, error)
NewAROUpgrader creates a new instance of an aroUpgrader
func NewOSDUpgrader ¶
func NewOSDUpgrader(c client.Client, cfm configmanager.ConfigManager, mc metrics.Metrics, notifier eventmanager.EventManager) (*osdUpgrader, error)
NewOSDUpgrader creates a new instance of an osdUpgrader
func NodeUnschedulableTaints ¶
Types ¶
type ClusterUpgrader ¶
type ClusterUpgrader interface { HealthCheck(ctx context.Context, upgradeConfig *upgradev1alpha1.UpgradeConfig, logger logr.Logger) (bool, error) UpgradeCluster(ctx context.Context, upgradeConfig *upgradev1alpha1.UpgradeConfig, logger logr.Logger) (upgradev1alpha1.UpgradePhase, error) }
ClusterUpgrader enables an implementation of a ClusterUpgrader Interface describing the functions of a cluster upgrader.
type ClusterUpgraderBuilder ¶
type ClusterUpgraderBuilder interface {
NewClient(client.Client, configmanager.ConfigManager, metrics.Metrics, eventmanager.EventManager, upgradev1alpha1.UpgradeType) (ClusterUpgrader, error)
}
ClusterUpgraderBuilder enables an implementation of a ClusterUpgraderBuilder
func NewBuilder ¶
func NewBuilder() ClusterUpgraderBuilder
NewBuilder returns a clusterUpgraderBuilder
Source Files ¶
- aroupgrader.go
- availabilitycheckstep.go
- builder.go
- config.go
- controlplanestep.go
- delaystep.go
- healthcheck_alerts.go
- healthcheck_clusteroperators.go
- healthcheck_nodes.go
- healthcheck_pdb.go
- healthcheckstep.go
- maintenancestep.go
- notifierstep.go
- osdupgrader.go
- postupgradestep.go
- scalerstep.go
- upgradeable.go
- upgrader.go
- workerstep.go