From 2ac6ec478f2057b1e91252c6a41caa7cd17bfee3 Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Tue, 27 Feb 2024 17:08:08 -0800 Subject: [PATCH] fix: -ak.19 server version causing argocd app wait command to hang (#45) Signed-off-by: Alexander Matyushentsev --- server/application/application.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/application/application.go b/server/application/application.go index b4a54b1e4a29a..4dc07f3cb7ca6 100644 --- a/server/application/application.go +++ b/server/application/application.go @@ -1235,7 +1235,7 @@ func (s *Server) Watch(q *application.ApplicationQuery, ws application.Applicati // If watch API is executed for one application when emit event even if resource version is provided // This is required since single app watch API is used for during operations like app syncing and it is // critical to never miss events. - if q.GetName() == "" { + if q.GetResourceVersion() == "" || q.GetName() != "" { apps, err := s.appLister.List(labels.Everything()) if err != nil { return fmt.Errorf("error listing apps with selector: %w", err)