From 42eb921edbedf267f02f26e97d155309046313c0 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 6ac1b7107c9ef..bee7db7479e08 100644 --- a/server/application/application.go +++ b/server/application/application.go @@ -1233,7 +1233,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)