Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDesiredRevision ¶ added in v0.6.0
func GetDesiredRevision( ctx context.Context, cl client.Client, stage *kargoapi.Stage, update *kargoapi.ArgoCDAppUpdate, app *argocd.Application, frght []kargoapi.FreightReference, ) (string, error)
GetDesiredRevision returns the desired revision for the given v1alpha1.Application. If that cannot be determined, an empty string is returned.
Types ¶
type ApplicationHealthEvaluator ¶ added in v0.6.0
type ApplicationHealthEvaluator interface { EvaluateHealth( context.Context, *kargoapi.Stage, ) *kargoapi.Health }
ApplicationHealthEvaluator is an interface for evaluating the health of Argo CD Applications.
func NewApplicationHealthEvaluator ¶ added in v0.6.0
func NewApplicationHealthEvaluator(kargoClient, argoClient client.Client) ApplicationHealthEvaluator
NewApplicationHealthEvaluator returns a new ApplicationHealthEvaluator.
type ByOperationPhase ¶ added in v0.6.0
type ByOperationPhase []argocd.OperationPhase
func (ByOperationPhase) Len ¶ added in v0.6.0
func (a ByOperationPhase) Len() int
func (ByOperationPhase) Less ¶ added in v0.6.0
func (a ByOperationPhase) Less(i, j int) bool
func (ByOperationPhase) Sort ¶ added in v0.6.0
func (a ByOperationPhase) Sort()
func (ByOperationPhase) Swap ¶ added in v0.6.0
func (a ByOperationPhase) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.