controller

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 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 added in v0.4.0

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 added in v1.7.0

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 added in v1.7.0

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

Create implements predicate.Predicate.

func (ResponsibleFor[T]) Delete added in v1.7.0

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

Delete implements predicate.Predicate.

func (ResponsibleFor[T]) Generic added in v1.7.0

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

Generic implements predicate.Predicate.

func (ResponsibleFor[T]) IsResponsible added in v1.7.0

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

func (ResponsibleFor[T]) Update added in v1.7.0

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