failuredomainrollout

package
v0.35.1 Latest Latest
Warning

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

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

Documentation

Overview

Package failuredomainrollout provides a controller that monitors cluster.status.failureDomains and triggers rollouts on KubeAdmControlPlane when there are meaningful changes to failure domains that impact the current control plane placement.

A meaningful change is defined as: - A failure domain currently in use by the control plane being disabled (controlPlane: false) - A failure domain currently in use by the control plane being removed - A failure domain is overutilized and can be improved by spreading the control plane across more failure domains

The controller does NOT trigger rollouts when: - New failure domains are added but existing ones remain valid - Changes to failure domains that are not currently in use by the control plane

+kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters,verbs=get;list;watch +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=clusters/status,verbs=get +kubebuilder:rbac:groups=controlplane.cluster.x-k8s.io,resources=kubeadmcontrolplanes,verbs=get;list;watch;update;patch +kubebuilder:rbac:groups=cluster.x-k8s.io,resources=machines,verbs=get;list;watch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Enabled     bool
	Concurrency int
}

func (*Options) AddFlags

func (o *Options) AddFlags(flags *pflag.FlagSet)

type Reconciler

type Reconciler struct {
	client.Client
}

func (*Reconciler) Reconcile

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

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(
	mgr ctrl.Manager,
	options *controller.Options,
) error

Jump to

Keyboard shortcuts

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