controller

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelKey          = "status"
	LabelValuePending = "pending"
	LabelValueDone    = "done"
	LabelValueIgnore  = "ignore"
)

Variables

This section is empty.

Functions

func ConfigMapPredicate

func ConfigMapPredicate() predicate.Predicate

Types

type Reconciler

type Reconciler struct {
	Client client.Client
}

Reconciler watches ConfigMaps with the `status=pending` label and sets the `status` label to `done`.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager, controllerRingName, shardName string) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) Reconcile

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

Reconcile reconciles a ConfigMap.

Jump to

Keyboard shortcuts

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