From e91cfa487abc0be08249c961f9aef8b667a6c704 Mon Sep 17 00:00:00 2001 From: Sergiy Kulanov Date: Wed, 17 Jan 2024 13:45:02 +0200 Subject: [PATCH] fix(cli): add support for Application in any namespace for `app delete` cmd Use fully qualified application names when operate with Applications Closes: #16896 Signed-off-by: Sergiy Kulanov --- cmd/argocd/commands/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/argocd/commands/app.go b/cmd/argocd/commands/app.go index ccd60d1b20cf1..8e49fbc0e29e1 100644 --- a/cmd/argocd/commands/app.go +++ b/cmd/argocd/commands/app.go @@ -1995,7 +1995,7 @@ func getAppNamesBySelector(ctx context.Context, appIf application.ApplicationSer return []string{}, fmt.Errorf("no apps match selector %v", selector) } for _, i := range list.Items { - appNames = append(appNames, i.Name) + appNames = append(appNames, i.QualifiedName()) } } return appNames, nil