Skip to content

Commit

Permalink
fix(cli): add support for Application in any namespace for app wait (a…
Browse files Browse the repository at this point in the history
…rgoproj#16812) (argoproj#16816)

Use fully qualified application names in ApplicationWaitCommand

Closes: argoproj#16812

Signed-off-by: Sergiy Kulanov <[email protected]>
Signed-off-by: Adrian Aneci <[email protected]>
  • Loading branch information
SergK authored and adriananeci committed Feb 25, 2024
1 parent a105750 commit d39d9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/argocd/commands/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1624,7 +1624,7 @@ func NewApplicationWaitCommand(clientOpts *argocdclient.ClientOptions) *cobra.Co
list, err := appIf.List(ctx, &application.ApplicationQuery{Selector: pointer.String(selector)})
errors.CheckError(err)
for _, i := range list.Items {
appNames = append(appNames, i.Name)
appNames = append(appNames, i.QualifiedName())
}
}
for _, appName := range appNames {
Expand Down

0 comments on commit d39d9f9

Please sign in to comment.