promotions

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 32 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,
	directivesEngine directives.Engine,
	cfg ReconcilerConfig,
) error

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

Types

type ArgoCDAppOperationCompleted added in v0.6.0

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 added in v0.6.0

func (ArgoCDAppOperationCompleted[T]) Delete added in v0.6.0

func (ArgoCDAppOperationCompleted[T]) Generic added in v0.6.0

func (ArgoCDAppOperationCompleted[T]) Update added in v0.6.0

type PromotionAcknowledgedByStageHandler added in v1.0.0

type PromotionAcknowledgedByStageHandler[T any] struct{}

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

Create implements TypedEventHandler.

func (*PromotionAcknowledgedByStageHandler[T]) Delete added in v1.0.0

Delete implements TypedEventHandler.

func (*PromotionAcknowledgedByStageHandler[T]) Generic added in v1.0.0

Generic implements TypedEventHandler.

func (*PromotionAcknowledgedByStageHandler[T]) Update added in v1.0.0

Update implements TypedEventHandler.

type ReconcilerConfig added in v0.6.0

type ReconcilerConfig struct {
	ShardName        string `envconfig:"SHARD_NAME"`
	APIServerBaseURL string `envconfig:"API_SERVER_BASE_URL"`
}

ReconcilerConfig represents configuration for the promotion reconciler.

func ReconcilerConfigFromEnv added in v0.6.0

func ReconcilerConfigFromEnv() ReconcilerConfig

func (ReconcilerConfig) Name added in v0.6.0

func (c ReconcilerConfig) Name() string

type UpdatedArgoCDAppHandler added in v0.6.0

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 added in v0.6.0

Create implements TypedEventHandler.

func (*UpdatedArgoCDAppHandler[T]) Delete added in v0.6.0

Delete implements TypedEventHandler.

func (*UpdatedArgoCDAppHandler[T]) Generic added in v0.6.0

Generic implements TypedEventHandler.

func (*UpdatedArgoCDAppHandler[T]) Update added in v0.6.0

Update implements TypedEventHandler.

Jump to

Keyboard shortcuts

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