loadbalancerset

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const FINALIZER = "stackit.cloud/loadbalancermachine"

Variables

This section is empty.

Functions

This section is empty.

Types

type LBMStatusReconciler added in v0.19.0

type LBMStatusReconciler struct {
	client.Client
	WorkerCount int
	RateLimiter workqueue.TypedRateLimiter[reconcile.Request]

	DeletionGracePeriod time.Duration
}

LBMStatusReconciler watches LoadBalancerMachines and determines if a machine should be deleted. A machine should be deleted if its conditions are either stale, or have been in a not-healthy state for some time.

Deletion is not performed immediately, instead a new Condition is added, and after `DeletionGracePeriod` has passed (and the machine is still not ready), the object is actually deleted. This ensures that after an e.g. API Server (where both yawollet and the yawol-controllers cannot update the status), the yawollet is given a chance to update the heartbeat.

func (*LBMStatusReconciler) Reconcile added in v0.19.0

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

func (*LBMStatusReconciler) SetupWithManager added in v0.19.0

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

type LoadBalancerSetReconciler

type LoadBalancerSetReconciler struct {
	client.Client
	Log         logr.Logger
	Scheme      *runtime.Scheme
	Recorder    record.EventRecorder
	Metrics     *helpermetrics.LoadBalancerSetMetricList
	WorkerCount int
	RateLimiter workqueue.TypedRateLimiter[reconcile.Request]
}

LoadBalancerSetReconciler reconciles service Objects with type LoadBalancer

func (*LoadBalancerSetReconciler) Reconcile

+kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch

func (*LoadBalancerSetReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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