mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
36 lines
1.7 KiB
Go
36 lines
1.7 KiB
Go
package v1alpha1
|
|
|
|
import "time"
|
|
|
|
const (
|
|
DefaultSyncRetryMaxDuration time.Duration = 180000000000 // 3m0s
|
|
DefaultSyncRetryDuration time.Duration = 5000000000 // 5s
|
|
DefaultSyncRetryFactor = int64(2)
|
|
// ResourcesFinalizerName is the finalizer value which we inject to finalize deletion of an application
|
|
ResourcesFinalizerName string = "resources-finalizer.argocd.argoproj.io"
|
|
|
|
// PreDeleteFinalizerName is the finalizer that controls pre-delete hooks execution
|
|
PreDeleteFinalizerName string = "pre-delete-finalizer.argocd.argoproj.io"
|
|
|
|
// PostDeleteFinalizerName is the finalizer that controls post-delete hooks execution
|
|
PostDeleteFinalizerName string = "post-delete-finalizer.argocd.argoproj.io"
|
|
|
|
// ForegroundPropagationPolicyFinalizer is the finalizer we inject to delete application with foreground propagation policy
|
|
ForegroundPropagationPolicyFinalizer string = "resources-finalizer.argocd.argoproj.io/foreground"
|
|
|
|
// BackgroundPropagationPolicyFinalizer is the finalizer we inject to delete application with background propagation policy
|
|
BackgroundPropagationPolicyFinalizer = "resources-finalizer.argocd.argoproj.io/background"
|
|
|
|
// DefaultAppProjectName contains name of 'default' app project, which is available in every Argo CD installation
|
|
DefaultAppProjectName = "default"
|
|
|
|
// RevisionHistoryLimit is the max number of successful sync to keep in history
|
|
RevisionHistoryLimit = 10
|
|
|
|
// KubernetesInternalAPIServerAddr is address of the k8s API server when accessing internal to the cluster
|
|
KubernetesInternalAPIServerAddr = "https://kubernetes.default.svc"
|
|
|
|
// KubernetesInClusterName is the default name for the in-cluster configuration
|
|
KubernetesInClusterName = "in-cluster"
|
|
)
|