kargo

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPromotion

func NewPromotion(stage kargoapi.Stage, freight string) kargoapi.Promotion

NewPromotion returns a new Promotion from a given stage and freight with our naming convention. Ensures the owner reference is set to be the stage, and carries over any shard labels

Types

type IgnoreClearRefreshUpdates added in v0.3.0

type IgnoreClearRefreshUpdates struct {
	predicate.Funcs
}

IgnoreClearRefreshUpdates is a predicate that filters out update events if the update was only to clear the refresh annotation. This prevents the extra reconciliation that happens when reconcilers respond to refresh by updating the object's annotations.

func (IgnoreClearRefreshUpdates) Update added in v0.3.0

Update returns false if the update event cleared the refresh annotation. NOTE: this predicate assumes that the update was to clear the annotation and nothing else. This is safe to assume as long as the ClearXxxxRefresh helpers are always used to clear the refresh annotation.

type PromoWentTerminal added in v0.2.0

type PromoWentTerminal struct {
	predicate.Funcs
	// contains filtered or unexported fields
}

PromoWentTerminal is a predicate that returns true if a promotion went terminal. Used by stage reconciler to enqueue a stage when it's associated promo is complete. Also used by promo reconciler to enqueue the next highest priority promotion.

func NewPromoWentTerminalPredicate added in v0.2.0

func NewPromoWentTerminalPredicate(logger *log.Entry) PromoWentTerminal

func (PromoWentTerminal) Create added in v0.2.0

func (PromoWentTerminal) Delete added in v0.2.0

func (PromoWentTerminal) Generic added in v0.2.0

func (PromoWentTerminal) Update added in v0.2.0

Update implements default UpdateEvent filter for checking if a promotion went terminal

Jump to

Keyboard shortcuts

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