argocd

package
v0.6.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDesiredRevision added in v0.6.0

func GetDesiredRevision(app *argocd.Application, freight kargoapi.FreightReference) string

GetDesiredRevision returns the desired revision for the given v1alpha1.Application by traversing the given v1alpha1.FreightReference for a matching source. If no match is found, an empty string is returned.

func Namespace added in v0.4.4

func Namespace() string

Types

type ApplicationHealthEvaluator added in v0.6.0

type ApplicationHealthEvaluator interface {
	EvaluateHealth(context.Context, kargoapi.FreightReference, []kargoapi.ArgoCDAppUpdate) *kargoapi.Health
}

ApplicationHealthEvaluator is an interface for evaluating the health of Argo CD Applications.

func NewApplicationHealthEvaluator added in v0.6.0

func NewApplicationHealthEvaluator(c 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)

Jump to

Keyboard shortcuts

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