Documentation ¶
Index ¶
Constants ¶
const ( // PromotionAliasSeparator is the separator used in the Promotion step alias // to separate the task alias from the step alias. PromotionAliasSeparator = "::" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 PromotionBuilder ¶ added in v1.2.0
type PromotionBuilder struct {
// contains filtered or unexported fields
}
func NewPromotionBuilder ¶ added in v1.2.0
func NewPromotionBuilder(c client.Client) *PromotionBuilder
NewPromotionBuilder creates a new PromotionBuilder with the given client.
func (*PromotionBuilder) Build ¶ added in v1.2.0
func (b *PromotionBuilder) Build( ctx context.Context, stage kargoapi.Stage, freight string, ) (*kargoapi.Promotion, error)
Build creates a new Promotion for the Freight based on the PromotionTemplate of the given Stage.
func (*PromotionBuilder) InflateSteps ¶ added in v1.2.0
InflateSteps inflates the Promotion steps by resolving any references to PromotionTasks and expanding them into their individual steps. The inflated steps are then set on the Promotion, replacing the original steps.
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.