Documentation ¶
Index ¶
- Constants
- func ClustersHaveSameTopologyKey(clusterA, clusterB *corev1.Secret, topologyKey string) bool
- func GetAppsByHealthStatus(apps []*argov1alpha1.Application, h health.HealthStatusCode) []*argov1alpha1.Application
- func GetAppsByNotHealthStatus(apps []*argov1alpha1.Application, h health.HealthStatusCode) []*argov1alpha1.Application
- func GetAppsBySyncStatus(apps []*argov1alpha1.Application, status argov1alpha1.SyncStatusCode) []*argov1alpha1.Application
- func GetAppsFromOwner(ctx context.Context, c client.Client, owner *corev1.TypedLocalObjectReference) ([]*argov1alpha1.Application, error)
- func GetDoneApps(apps []*argov1alpha1.Application) []*argov1alpha1.Application
- func GetRequeueAnnotation(ctx context.Context, c client.Client, app *argov1alpha1.Application) (int, error)
- func GetSecretListFromSelector(ctx context.Context, c client.Client, selector *metav1.LabelSelector) (corev1.SecretList, error)
- func GetSecretListFromSelectorWithTopology(ctx context.Context, c client.Client, selector *metav1.LabelSelector, ...) (corev1.SecretList, error)
- func HasRequeueAtAnnotation(app *argov1alpha1.Application) bool
- func HasRequeueAttemptsAnnotation(app *argov1alpha1.Application) bool
- func IncrementRequeueAnnotation(ctx context.Context, c client.Client, app *argov1alpha1.Application) error
- func MatchSecretListWithApps(apps []*argov1alpha1.Application, list *corev1.SecretList) []*argov1alpha1.Application
- func Min(x, y int) int
- func SortAppsByName(apps []*argov1alpha1.Application)
- func SortClustersByName(clusters *corev1.SecretList)
- func SortClustersByTopologyKey(key string, clusters *corev1.SecretList) corev1.SecretList
Constants ¶
View Source
const ( ArgoCDSecretTypeLabel = "argocd.argoproj.io/secret-type" ArgoCDSecretTypeCluster = "cluster" ProgressiveRolloutRequeueTimeKey = "aprc.skyscanner.net/requeued-at" ProgressiveRolloutRequeueAttemptKey = "aprc.skyscanner.net/attempt" )
Variables ¶
This section is empty.
Functions ¶
func GetAppsByHealthStatus ¶
func GetAppsByHealthStatus(apps []*argov1alpha1.Application, h health.HealthStatusCode) []*argov1alpha1.Application
func GetAppsByNotHealthStatus ¶
func GetAppsByNotHealthStatus(apps []*argov1alpha1.Application, h health.HealthStatusCode) []*argov1alpha1.Application
func GetAppsBySyncStatus ¶
func GetAppsBySyncStatus(apps []*argov1alpha1.Application, status argov1alpha1.SyncStatusCode) []*argov1alpha1.Application
func GetAppsFromOwner ¶
func GetAppsFromOwner(ctx context.Context, c client.Client, owner *corev1.TypedLocalObjectReference) ([]*argov1alpha1.Application, error)
func GetDoneApps ¶
func GetDoneApps(apps []*argov1alpha1.Application) []*argov1alpha1.Application
func GetRequeueAnnotation ¶
func GetRequeueAnnotation(ctx context.Context, c client.Client, app *argov1alpha1.Application) (int, error)
GetRequeueAnnotation returns the requeue annotation key value
func GetSecretListFromSelector ¶
func GetSecretListFromSelector(ctx context.Context, c client.Client, selector *metav1.LabelSelector) (corev1.SecretList, error)
func GetSecretListFromSelectorWithTopology ¶
func GetSecretListFromSelectorWithTopology(ctx context.Context, c client.Client, selector *metav1.LabelSelector, topology string) (corev1.SecretList, error)
func HasRequeueAtAnnotation ¶
func HasRequeueAtAnnotation(app *argov1alpha1.Application) bool
func HasRequeueAttemptsAnnotation ¶
func HasRequeueAttemptsAnnotation(app *argov1alpha1.Application) bool
func IncrementRequeueAnnotation ¶
func IncrementRequeueAnnotation(ctx context.Context, c client.Client, app *argov1alpha1.Application) error
IncrementRequeueAnnotation increment by one the requeue annotation key
func MatchSecretListWithApps ¶
func MatchSecretListWithApps(apps []*argov1alpha1.Application, list *corev1.SecretList) []*argov1alpha1.Application
func SortAppsByName ¶
func SortAppsByName(apps []*argov1alpha1.Application)
SortAppsByName sort a list of applications in alphabetical order
func SortClustersByName ¶
func SortClustersByName(clusters *corev1.SecretList)
SortClustersByName sort a list of cluster in alphabetical order
func SortClustersByTopologyKey ¶
func SortClustersByTopologyKey(key string, clusters *corev1.SecretList) corev1.SecretList
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.