clusterring

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ControllerName = "clusterring"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

func MapLeaseToClusterRing

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

func RuleForResource

RuleForResource returns the sharder's webhook rule for the given resource.

Types

type Reconciler

type Reconciler struct {
	Client   client.Client
	Recorder record.EventRecorder
	Clock    clock.PassiveClock
	Config   *configv1alpha1.SharderConfig
}

Reconciler reconciles ClusterRings.

func (*Reconciler) AddToManager

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

AddToManager adds Reconciler to the given manager.

func (*Reconciler) ClusterRingPredicate

func (r *Reconciler) ClusterRingPredicate() 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 ClusterRing object.

Jump to

Keyboard shortcuts

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