controllerring

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "controllerring"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

func RuleForResource

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

func WebhookConfigForControllerRing added in v0.10.0

func WebhookForControllerRing added in v0.10.0

Types

type Reconciler

type Reconciler struct {
	Client   client.Client
	Recorder record.EventRecorder
	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) LeasePredicate

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

func (*Reconciler) OptionallyUpdateStatus added in v0.10.0

func (r *Reconciler) OptionallyUpdateStatus(ctx context.Context, controllerRing, before *shardingv1alpha1.ControllerRing, mutate func(ready *metav1.Condition)) error

func (*Reconciler) Reconcile

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

Reconcile reconciles a ControllerRing object.

func (*Reconciler) WebhookConfigForControllerRing added in v0.10.0

func (r *Reconciler) WebhookConfigForControllerRing(controllerRing *shardingv1alpha1.ControllerRing) (*admissionregistrationv1.MutatingWebhookConfiguration, error)

Jump to

Keyboard shortcuts

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