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

promotions

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: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupReconcilerWithManager

func SetupReconcilerWithManager(
	ctx context.Context,
	kargoMgr manager.Manager,
	argocdMgr manager.Manager,
	promoEngine promotion.Engine,
	cfg ReconcilerConfig,
) error

SetupReconcilerWithManager initializes a reconciler for Promotion resources and registers it with the provided Manager.

Types

type ArgoCDAppOperationCompleted

type ArgoCDAppOperationCompleted[T any] struct {
	// contains filtered or unexported fields
}

ArgoCDAppOperationCompleted is a predicate that filters out ArgoCD Application Update events where the operation has completed. This is useful for triggering a reconciliation of a Promotion only when an ArgoCD Application operation has finished.

func (ArgoCDAppOperationCompleted[T]) Create

func (ArgoCDAppOperationCompleted[T]) Delete

func (ArgoCDAppOperationCompleted[T]) Generic

func (ArgoCDAppOperationCompleted[T]) Update

type PromotionAcknowledgedByStageHandler

type PromotionAcknowledgedByStageHandler[T any] struct {
	// contains filtered or unexported fields
}

PromotionAcknowledgedByStageHandler is an event handler that enqueues a Promotion for reconciliation when it has been acknowledged by the Stage\ it is for.

func (*PromotionAcknowledgedByStageHandler[T]) Create

Create implements TypedEventHandler.

func (*PromotionAcknowledgedByStageHandler[T]) Delete

Delete implements TypedEventHandler.

func (*PromotionAcknowledgedByStageHandler[T]) Generic

Generic implements TypedEventHandler.

func (*PromotionAcknowledgedByStageHandler[T]) Update

Update implements TypedEventHandler.

type ReconcilerConfig

type ReconcilerConfig struct {
	IsDefaultController     bool   `envconfig:"IS_DEFAULT_CONTROLLER"`
	ShardName               string `envconfig:"SHARD_NAME"`
	APIServerBaseURL        string `envconfig:"API_SERVER_BASE_URL"`
	MaxConcurrentReconciles int    `envconfig:"MAX_CONCURRENT_PROMOTION_RECONCILES" default:"4"`
}

ReconcilerConfig represents configuration for the promotion reconciler.

func ReconcilerConfigFromEnv

func ReconcilerConfigFromEnv() ReconcilerConfig

func (ReconcilerConfig) Name

func (c ReconcilerConfig) Name() string

type UpdatedArgoCDAppHandler

type UpdatedArgoCDAppHandler[T any] struct {
	// contains filtered or unexported fields
}

UpdatedArgoCDAppHandler is an event handler that enqueues Promotions for reconciliation when an associated ArgoCD Application is updated.

func (*UpdatedArgoCDAppHandler[T]) Create

Create implements TypedEventHandler.

func (*UpdatedArgoCDAppHandler[T]) Delete

Delete implements TypedEventHandler.

func (*UpdatedArgoCDAppHandler[T]) Generic

Generic implements TypedEventHandler.

func (*UpdatedArgoCDAppHandler[T]) Update

Update implements TypedEventHandler.

Jump to

Keyboard shortcuts

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