etcd

package
v0.36.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "etcd-controller"

ControllerName is the name of the etcd controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler reconciles the Etcd resource spec and status.

func NewReconciler

NewReconciler creates a new reconciler for Etcd.

func NewReconcilerWithImageVector

func NewReconcilerWithImageVector(mgr manager.Manager, controllerName string, config druidconfigv1alpha1.EtcdControllerConfiguration, iv imagevector.ImageVector) (*Reconciler, error)

NewReconcilerWithImageVector creates a new reconciler for Etcd with the given image vector.

func (*Reconciler) GetOperatorRegistry

func (r *Reconciler) GetOperatorRegistry() component.Registry

GetOperatorRegistry returns the component registry.

func (*Reconciler) Reconcile

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

Reconcile manages the reconciliation of the Etcd component to align it with its desired specifications.

The reconciliation process involves the following steps:

  1. Deletion Handling: If the Etcd component has a deletionTimestamp, initiate the deletion workflow. On error, requeue the request.
  2. Spec Reconciliation : Determine whether the Etcd spec should be reconciled based on annotations and flags, and if there is a need then reconcile spec.
  3. Status Reconciliation: Always update the status of the Etcd component to reflect its current state, as well as status fields derived from spec reconciliation.
  4. Remove operation-reconcile annotation if it was set and if spec reconciliation had succeeded.
  5. Scheduled Requeue: Requeue the reconciliation request after a defined period (EtcdStatusSyncPeriod) to maintain sync.

func (*Reconciler) RegisterWithManager

func (r *Reconciler) RegisterWithManager(mgr ctrl.Manager, controllerName string) error

RegisterWithManager registers the Etcd Controller with the given controller manager.

Jump to

Keyboard shortcuts

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