Help us shape the future of Go! Take the 2026 Go Developer Survey

controller

package
v1.8.19 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonOptions

func CommonOptions(maxConcurrentReconciles int) controller.Options

func GetShardRequirement

func GetShardRequirement(
	shard string,
	isDefaultController bool,
) (*labels.Requirement, error)

GetShardRequirement considers the provided shard name and boolean indicating whether this controller is the default controller and attempts to distill this information down to a labels.Requirement. In cases where it is unable to do so, it will return a nil labels.Requirement.

Types

type ResponsibleFor

type ResponsibleFor[T any] struct {
	IsDefaultController bool
	ShardName           string
}

ResponsibleFor is an implementation of predicate.Predicate used by reconcilers to narrow the set of client.Objects they watch according to how they are labeled.

func (ResponsibleFor[T]) Create

func (i ResponsibleFor[T]) Create(e event.TypedCreateEvent[T]) bool

Create implements predicate.Predicate.

func (ResponsibleFor[T]) Delete

func (i ResponsibleFor[T]) Delete(e event.TypedDeleteEvent[T]) bool

Delete implements predicate.Predicate.

func (ResponsibleFor[T]) Generic

func (i ResponsibleFor[T]) Generic(e event.TypedGenericEvent[T]) bool

Generic implements predicate.Predicate.

func (ResponsibleFor[T]) IsResponsible

func (i ResponsibleFor[T]) IsResponsible(obj client.Object) bool

func (ResponsibleFor[T]) Update

func (i ResponsibleFor[T]) Update(e event.TypedUpdateEvent[T]) bool

Update implements predicate.Predicate.

Directories

Path Synopsis
argocd
api/v1alpha1
+kubebuilder:object:generate=true +groupName=argoproj.io
+kubebuilder:object:generate=true +groupName=argoproj.io
git
management

Jump to

Keyboard shortcuts

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