kargo

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromoPhaseChanged

type PromoPhaseChanged[T any] struct {
	predicate.Funcs
	// contains filtered or unexported fields
}

PromoPhaseChanged is a predicate that returns true if the phase of a promotion has changed. It can be used to trigger the reconciliation of an associated object when the phase of a Promotion changes. A concrete example is to trigger the reconciliation of a Stage when the phase of a Promotion for that Stage changes, so that the Stage can update the last Promotion reference in its status.

func NewPromoPhaseChangedPredicate

func NewPromoPhaseChangedPredicate(logger *logging.Logger) PromoPhaseChanged[*kargoapi.Promotion]

func (PromoPhaseChanged[T]) Create

func (p PromoPhaseChanged[T]) Create(event.TypedCreateEvent[T]) bool

func (PromoPhaseChanged[T]) Delete

func (p PromoPhaseChanged[T]) Delete(e event.TypedDeleteEvent[T]) bool

func (PromoPhaseChanged[T]) Generic

func (p PromoPhaseChanged[T]) Generic(event.TypedGenericEvent[T]) bool

func (PromoPhaseChanged[T]) Update

func (p PromoPhaseChanged[T]) Update(e event.TypedUpdateEvent[T]) bool

type PromotionAbortRequested

type PromotionAbortRequested struct {
	predicate.Funcs
}

PromotionAbortRequested is a predicate that returns true if the abort annotation has been set on a resource, or the action of the request has changed compared to the previous state.

func (PromotionAbortRequested) Update

Update returns true if the abort annotation has been set on the new object, or if the action of the request has changed compared to the old object.

type RefreshRequested

type RefreshRequested struct {
	predicate.Funcs
}

RefreshRequested is a predicate that returns true if the refresh annotation has been set on a resource, or the value of the annotation has changed compared to the previous state.

func (RefreshRequested) Update

func (p RefreshRequested) Update(e event.UpdateEvent) bool

Update returns true if the refresh annotation has been set on the new object, or if the value of the annotation has changed compared to the old object.

type ReverifyRequested

type ReverifyRequested struct {
	predicate.Funcs
}

ReverifyRequested is a predicate that returns true if the reverify annotation has been set on a resource, or the ID of the request has changed compared to the previous state.

func (ReverifyRequested) Update

Update returns true if the reverify annotation has been set on the new object, or if the ID of the request has changed compared to the old object.

type VerificationAbortRequested

type VerificationAbortRequested struct {
	predicate.Funcs
}

VerificationAbortRequested is a predicate that returns true if the abort annotation has been set on a resource, or the ID of the request has changed compared to the previous state.

func (VerificationAbortRequested) Update

Update returns true if the abort annotation has been set on the new object, or if the ID of the request has changed compared to the old object.

Jump to

Keyboard shortcuts

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