controller

package
v1.12.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 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
legacysecrets
Package legacysecrets contains a one-time startup cleanup for a hazard left behind by the removal (in v1.12.0) of the automatic Secret migration that used to bridge the deprecated global.clusterSecretsNamespace and controller.globalCredentials.namespaces settings to their replacements, global.systemResources.namespace and global.sharedResources.namespace.
Package legacysecrets contains a one-time startup cleanup for a hazard left behind by the removal (in v1.12.0) of the automatic Secret migration that used to bridge the deprecated global.clusterSecretsNamespace and controller.globalCredentials.namespaces settings to their replacements, global.systemResources.namespace and global.sharedResources.namespace.
Package metrics defines the Prometheus metrics exported by Kargo's controller.
Package metrics defines the Prometheus metrics exported by Kargo's controller.
Package promotionrequests contains the PromotionRequest reconciler.
Package promotionrequests contains the PromotionRequest reconciler.

Jump to

Keyboard shortcuts

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