Skip to content

Commit

Permalink
fix(cli): add support for Application in any namespace for `app delet…
Browse files Browse the repository at this point in the history
…e` cmd (argoproj#16898)

Use fully qualified application names when operate with Applications

Closes: argoproj#16896

Signed-off-by: Sergiy Kulanov <[email protected]>
Signed-off-by: penglongli <[email protected]>
  • Loading branch information
SergK authored and penglongli committed Mar 6, 2024
1 parent 1407817 commit 54d3072
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 @@ -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
Expand Down

0 comments on commit 54d3072

Please sign in to comment.