components

package
v0.0.0-...-4dac789 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 ClustersHaveSameTopologyKey

func ClustersHaveSameTopologyKey(clusterA, clusterB *corev1.Secret, topologyKey string) bool

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 Min

func Min(x, y int) int

Min returns the minimum between two integers

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.

Jump to

Keyboard shortcuts

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