-
Notifications
You must be signed in to change notification settings - Fork 271
Expand file tree
/
Copy pathdurations.go
More file actions
58 lines (54 loc) · 2.29 KB
/
durations.go
File metadata and controls
58 lines (54 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package durations
import (
"time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const (
AgentRegistrationRetry = time.Minute * 1
AgentSecretTimeout = time.Minute * 1
ClusterImportTokenTTL = time.Hour * 12
ClusterRegisterDelay = time.Second * 15
ClusterRegistrationDeleteDelay = time.Minute * 40
ClusterSecretRetry = time.Second * 2
ContentPurgeInterval = time.Minute * 5
CreateClusterSecretTimeout = time.Minute * 30
DefaultClusterCheckInterval = time.Minute * 15
DefaultImageInterval = time.Minute * 15
DefaultRequeueAfter = time.Second * 5
DefaultResyncAgent = time.Minute * 30
FailureRateLimiterBase = time.Millisecond * 5
FailureRateLimiterMax = time.Second * 60
SlowFailureRateLimiterBase = time.Second * 2
SlowFailureRateLimiterMax = time.Minute * 10 // hit after 10 failures in a row
GarbageCollect = time.Minute * 15
RestConfigTimeout = time.Second * 15
ServiceTokenSleep = time.Second * 2
TokenClusterEnqueueDelay = time.Second * 2
// TriggerSleep is the delay before the driftdetect mini controller
// starts watching deployed resources for changes
TriggerSleep = time.Second * 5
// GitRepoStatusDelay gives the gitjob controller some time to update
// the gitrepo status first, before the status controller looks at
// bundledeployments.
GitRepoStatusDelay = time.Second * 5
// HelmOpStatusDelay gives the helmop controller some time to update
// the helmop status first, before the status controller looks at
// bundledeployments.
HelmOpStatusDelay = time.Second * 5
// GitPollingStaleTimeout is how long the reconciler waits for the git API
// to return the webhook-announced commit before surfacing an error on the
// GitPolling condition.
GitPollingStaleTimeout = time.Minute * 5
// WaitForDependenciesReadyRequeueInterval is the wait time after the Fleet agent finds a BundleDeployment has non-ready dependencies
WaitForDependenciesReadyRequeueInterval = time.Second * 15
)
// Equal reports whether the duration t is equal to u.
func Equal(t *metav1.Duration, u *metav1.Duration) bool {
if t == nil && u == nil {
return true
}
if t != nil && u != nil {
return t.Duration == u.Duration
}
return false
}