upgraders

package
v0.0.0-...-cb3ae47 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 ManuallyCordonedNodes(metricsClient metrics.Metrics, machinery machinery.Machinery, c client.Client, ug *upgradev1alpha1.UpgradeConfig, logger logr.Logger, version string) (bool, error)

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

func NodeUnschedulableTaints(metricsClient metrics.Metrics, machinery machinery.Machinery, c client.Client, ug *upgradev1alpha1.UpgradeConfig, logger logr.Logger, version string) (bool, error)

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

ClusterUpgraderBuilder enables an implementation of a ClusterUpgraderBuilder

func NewBuilder

func NewBuilder() ClusterUpgraderBuilder

NewBuilder returns a clusterUpgraderBuilder

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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