Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromoPhaseChanged ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.