sharder

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "sharder"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

func MapLeaseToControllerRing added in v0.9.0

func MapLeaseToControllerRing(ctx context.Context, obj client.Object) []reconcile.Request

Types

type Reconciler

type Reconciler struct {
	Client client.Client
	Reader client.Reader
	Clock  clock.PassiveClock
	Config *configv1alpha1.SharderConfig
}

Reconciler reconciles ControllerRings.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) ControllerRingPredicate added in v0.9.0

func (r *Reconciler) ControllerRingPredicate() predicate.Predicate

func (*Reconciler) LeasePredicate

func (r *Reconciler) LeasePredicate() predicate.Predicate

func (*Reconciler) Reconcile

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

Reconcile reconciles a ControllerRing object.

Jump to

Keyboard shortcuts

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