argocd

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeploymentURL

func GetDeploymentURL(a argocdv1alpha1.Application) string

GetDeploymentURL returns the deployment URL in annotations

func GetExternalURL

func GetExternalURL(ctx context.Context, c client.Client, namespace string) (string, error)

GetExternalURL returns the URL of Argo CD if available. See https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/argocd-cm.yaml

func GetLastOperationAt

func GetLastOperationAt(a argocdv1alpha1.Application) metav1.Time

GetLastOperationAt returns OperationState.FinishedAt, OperationState.StartedAt or zero Time.

func GetSyncOperationFinishedAt added in v1.17.0

func GetSyncOperationFinishedAt(a argocdv1alpha1.Application) *metav1.Time

func GetSyncOperationPhase added in v1.16.1

func GetSyncOperationPhase(a argocdv1alpha1.Application) synccommon.OperationPhase

GetSyncOperationPhase returns OperationState.Phase or empty string.

Types

type SourceRevision

type SourceRevision struct {
	Source   argocdv1alpha1.ApplicationSource
	Revision string
}

func GetSourceRevisions

func GetSourceRevisions(app argocdv1alpha1.Application) []SourceRevision

GetSourceRevisions returns the last synced revisions

Jump to

Keyboard shortcuts

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