cluster

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities added in v0.8.0

type Capabilities struct {
	IsOnOpenshift, HasMachineAPI, IsSupportedControlPlaneTopology bool
}

func NewCapabilities added in v0.8.0

func NewCapabilities(config *rest.Config, reader client.Reader, logger logr.Logger, ctx context.Context) (Capabilities, error)

NewCapabilities returns a Capabilities struct with the following fields: - IsOnOpenshift: true if the cluster is an OpenShift cluster - HasMachineAPI: true if the cluster has the Machine API installed - IsSupportedControlPlaneTopology: true if the cluster has a supported control plane topology

type UpgradeChecker

type UpgradeChecker interface {
	// Check if the cluster is currently under upgrade.
	// error should be thrown if it can't reliably determine if it's under upgrade or not.
	Check() (bool, error)
}

UpgradeChecker checks if the cluster is currently under upgrade. error should be thrown if it can't reliably determine if it's under upgrade or not.

func NewClusterUpgradeStatusChecker

func NewClusterUpgradeStatusChecker(mgr manager.Manager, caps Capabilities) (UpgradeChecker, error)

NewClusterUpgradeStatusChecker will return some implementation of a checker or err in case it can't reliably detect which implementation to use.

Jump to

Keyboard shortcuts

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