maintenancecontroller

package
v4.60.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaintenanceReconciler

type MaintenanceReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

MaintenanceReconciler handles the maintenance window detection for the current cluster. It watches the `UpgradeJob` CRs on the cluster and determines the current state of the maintenance.

func (*MaintenanceReconciler) IsMaintenanceRunning

func (r *MaintenanceReconciler) IsMaintenanceRunning() bool

IsMaintenanceRunning returns the current state of the maintenance.

func (*MaintenanceReconciler) Reconcile

func (r *MaintenanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile reconciles on OpenShift upgradeJob objects and tracks if it's currently running or not.

func (*MaintenanceReconciler) SetupWithManager

func (r *MaintenanceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type MaintenanceStatus

type MaintenanceStatus interface {
	IsMaintenanceRunning() bool
}

MaintenanceStatus returns the current state of the maintenance.

Jump to

Keyboard shortcuts

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