Skip to content

Commit be7fab0

Browse files
vbukogithub-actions[bot]
vbuko
authored andcommitted
Set reconciliation timeout 5 min for application controller
Signed-off-by: vbuko <[email protected]> (cherry picked from commit 2851c85)
1 parent cf7c689 commit be7fab0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/controller/applications/controller.go

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package applications
1818

1919
import (
2020
"context"
21+
"time"
2122

2223
"github.com/argoproj/argo-cd/v2/pkg/apiclient"
2324
"github.com/argoproj/argo-cd/v2/pkg/apiclient/application"
@@ -64,6 +65,7 @@ func SetupApplication(mgr ctrl.Manager, o xpcontroller.Options) error {
6465
managed.WithLogger(o.Logger.WithValues("controller", name)),
6566
managed.WithRecorder(event.NewAPIRecorder(mgr.GetEventRecorderFor(name))),
6667
managed.WithConnectionPublishers(cps...),
68+
managed.WithTimeout(5 * time.Minute),
6769
}
6870

6971
if o.Features.Enabled(features.EnableBetaManagementPolicies) {

0 commit comments

Comments
 (0)