Skip to content

Commit 36e3df9

Browse files
committed
Adds sync timeout for applications
Adds sync timeouts to several applications within the ArgoCD ApplicationSet. This ensures that ArgoCD waits for the specified duration for each application to sync before considering it as failed. The timeouts vary based on the application's complexity and expected sync duration. This avoids sync staying in limbo when there is a race condition and the presync hooks cannot even be created.
1 parent 89ef78b commit 36e3df9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bootstrap/applicationset/applicationset-bootstrap.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,43 @@ spec:
1010
- cluster: in-cluster
1111
name: ic-rhoai-operator
1212
path: bootstrap/ic-rhoai-operator/overlays/main
13+
syncTimeout: 300s
1314
- cluster: in-cluster
1415
name: ic-rhoai-installation
1516
path: bootstrap/ic-rhoai-installation/overlays/main
17+
syncTimeout: 600s
1618
- cluster: in-cluster
1719
name: ic-rhoai-configuration
1820
path: bootstrap/ic-rhoai-configuration/overlays/main
21+
syncTimeout: 300s
1922
- cluster: in-cluster
2023
name: ic-shared-minio-app
2124
path: bootstrap/ic-shared-minio/overlays/main
25+
syncTimeout: 900s
2226
- cluster: in-cluster
2327
name: ic-shared-database-app
2428
path: bootstrap/ic-shared-database/overlays/main
29+
syncTimeout: 300s
2530
- cluster: in-cluster
2631
name: ic-shared-milvus
2732
path: bootstrap/ic-shared-milvus/overlays/main
33+
syncTimeout: 900s
2834
- cluster: in-cluster
2935
name: ic-shared-llm
3036
path: bootstrap/ic-shared-llm/overlays/main
37+
syncTimeout: 600s
3138
- cluster: in-cluster
3239
name: ic-shared-img-det
3340
path: bootstrap/ic-shared-img-det/overlays/main
41+
syncTimeout: 300s
3442
- cluster: in-cluster
3543
name: ic-user-projects
3644
path: bootstrap/ic-user-projects/overlays/main
45+
syncTimeout: 900s
3746
- cluster: in-cluster
3847
name: ic-shared-app
3948
path: bootstrap/ic-shared-app/overlays/main
49+
syncTimeout: 1800s
4050
template:
4151
metadata:
4252
name: "{{name}}"
@@ -59,6 +69,7 @@ spec:
5969
syncOptions:
6070
- RespectIgnoreDifferences=true
6171
- Retry=true
72+
- syncTimeout="{{syncTimeout}}"
6273
retry:
6374
limit: 50
6475
backoff:

0 commit comments

Comments
 (0)