Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDesiredRevisions ¶ added in v0.9.0
func GetDesiredRevisions( ctx context.Context, cl client.Client, stage *kargoapi.Stage, update *kargoapi.ArgoCDAppUpdate, app *argocd.Application, frght []kargoapi.FreightReference, ) ([]string, error)
GetDesiredRevision returns the desired revisions for all sources of the given Application. For a single-source Application, the returned slice will have precisely one value. For a multi-source Application, the returned slice will have the same length as and will be indexed identically to the Application's Sources slice. For any source whose desired revision cannot be determined, the slice will contain an empty string at the corresponding index.
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) Sort ¶ added in v0.6.0
func (a ByOperationPhase) Sort()
Click to show internal directories.
Click to hide internal directories.