kargo

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPromotion

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

NewPromotion returns a new Promotion from a given stage and freight with our naming convention.

Types

type AbortRequested added in v0.6.0

type AbortRequested struct {
	predicate.Funcs
}

AbortRequested 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 (AbortRequested) Update added in v0.6.0

func (p AbortRequested) 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.

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

type RefreshRequested added in v0.6.0

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 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

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 added in v0.6.0

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.

Jump to

Keyboard shortcuts

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