Skip to content

Commit

Permalink
fix: -ak.19 server version causing argocd app wait command to hang (a…
Browse files Browse the repository at this point in the history
…rgoproj#45)

Signed-off-by: Alexander Matyushentsev <[email protected]>
  • Loading branch information
alexmt committed May 20, 2024
1 parent 11337f1 commit 2ac6ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ac6ec4

Please sign in to comment.