upgradecontrollers

package
v0.0.0-...-c473c0e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControlPlaneActiveVersionController

func NewControlPlaneActiveVersionController(
	cosmosClient database.DBClient,
	activeOperationLister listers.ActiveOperationLister,
	informers informers.BackendInformers,
) controllerutils.Controller

NewControlPlaneActiveVersionController creates a new controller that updates Status.ControlPlaneVersion.ActiveVersions from the management cluster content (HostedCluster status stored in ManagementClusterContent).

func NewControlPlaneDesiredVersionController

func NewControlPlaneDesiredVersionController(
	cosmosClient database.DBClient,
	clusterServiceClient ocm.ClusterServiceClientSpec,
	activeOperationLister listers.ActiveOperationLister,
	informers informers.BackendInformers,
) controllerutils.Controller

NewControlPlaneDesiredVersionController creates a new controller that manages the desired control plane version. It periodically checks each cluster and sets the desired version based on the OCPVersion logic documented in the ServiceProviderCluster type. The controller name remains "ControlPlaneVersion" for compatibility.

func NewNodePoolVersionController

func NewNodePoolVersionController(
	cosmosClient database.DBClient,
	clusterServiceClient ocm.ClusterServiceClientSpec,
	activeOperationLister listers.ActiveOperationLister,
	informers informers.BackendInformers,
) controllerutils.Controller

NewNodePoolVersionController creates a new syncer that reads node pool versions from Cluster Service. TODO: improve this description

func NewTriggerControlPlaneUpgradeController

func NewTriggerControlPlaneUpgradeController(
	cosmosClient database.DBClient,
	clusterServiceClient ocm.ClusterServiceClientSpec,
	activeOperationLister listers.ActiveOperationLister,
	informers informers.BackendInformers,
) controllerutils.Controller

NewTriggerControlPlaneUpgradeController creates a new controller that triggers control plane upgrades. It monitors clusters where the desired version differs from the actual version and calls the version service API to initiate the upgrade.

The version service API is idempotent:

  • If desiredVersion == current cluster version: NOOP
  • Otherwise: Initiate the upgrade to desiredVersion

func NewTriggerNodePoolUpgradeController

func NewTriggerNodePoolUpgradeController(
	cosmosClient database.DBClient,
	clusterServiceClient ocm.ClusterServiceClientSpec,
	activeOperationLister listers.ActiveOperationLister,
	informers informers.BackendInformers,
) controllerutils.Controller

NewTriggerNodePoolUpgradeController creates a new controller that triggers node pool upgrades. It monitors node pools where the desired version differs from the actual version and creates a NodePoolUpgradePolicy in Cluster Service to initiate the upgrade.

Types

This section is empty.

Jump to

Keyboard shortcuts

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