Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PromoPhaseChanged ¶ added in v0.7.0
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 ¶ added in v0.7.0
func NewPromoPhaseChangedPredicate(logger *logging.Logger) PromoPhaseChanged[*kargoapi.Promotion]
func (PromoPhaseChanged[T]) Create ¶ added in v0.7.0
func (p PromoPhaseChanged[T]) Create(event.TypedCreateEvent[T]) bool
func (PromoPhaseChanged[T]) Delete ¶ added in v0.7.0
func (p PromoPhaseChanged[T]) Delete(e event.TypedDeleteEvent[T]) bool
func (PromoPhaseChanged[T]) Generic ¶ added in v0.7.0
func (p PromoPhaseChanged[T]) Generic(event.TypedGenericEvent[T]) bool
func (PromoPhaseChanged[T]) Update ¶ added in v0.7.0
func (p PromoPhaseChanged[T]) Update(e event.TypedUpdateEvent[T]) bool
type PromoWentTerminal ¶ added in v0.2.0
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 *logging.Logger) PromoWentTerminal[*kargoapi.Promotion]
func (PromoWentTerminal[T]) Create ¶ added in v0.2.0
func (p PromoWentTerminal[T]) Create(event.TypedCreateEvent[T]) bool
func (PromoWentTerminal[T]) Delete ¶ added in v0.2.0
func (p PromoWentTerminal[T]) Delete(e event.TypedDeleteEvent[T]) bool
func (PromoWentTerminal[T]) Generic ¶ added in v0.2.0
func (p PromoWentTerminal[T]) Generic(event.TypedGenericEvent[T]) bool
func (PromoWentTerminal[T]) Update ¶ added in v0.2.0
func (p PromoWentTerminal[T]) Update(e event.TypedUpdateEvent[T]) bool
Update implements default TypedUpdateEvent filter for checking if a promotion went terminal
type PromotionAbortRequested ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (p PromotionAbortRequested) Update(e event.UpdateEvent) bool
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 ¶ added in v0.6.0
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 ¶ added in v0.6.0
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 ¶ added in v0.6.0
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 ¶ added in v0.6.0
func (r ReverifyRequested) Update(e event.UpdateEvent) bool
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 ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (p VerificationAbortRequested) Update(e event.UpdateEvent) bool
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.