Help us shape the future of Go! Take the 2026 Go Developer Survey

highavailabilityconfig

package
v1.143.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ControllerName = "node-high-availability-config"

ControllerName is the name of the controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

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

Reconciler patches HA-relevant Deployments and StatefulSets when the number of nodes in the cluster crosses the single-node threshold. This re-triggers the HA config webhook which adjusts the topology spread constraints based on the current node count.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager, targetCluster cluster.Cluster) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, _ reconcile.Request) (reconcile.Result, error)

Reconcile checks the current node count and, if it changed across the >1 threshold, patches HA-relevant Deployments and StatefulSets whose hostname topology spread constraint requires adaptation to re-trigger the HA config webhook.

Jump to

Keyboard shortcuts

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