fix: get app resources tree view (#26166)

Signed-off-by: Patroklos Papapetrou <ppapapetrou76@gmail.com>
This commit is contained in:
Papapetrou Patroklos
2026-02-03 22:54:10 +02:00
committed by GitHub
parent ae34305d18
commit bf1f836ece
5 changed files with 93 additions and 22 deletions

View File

@@ -97,7 +97,7 @@ argocd app [flags]
* [argocd app patch](argocd_app_patch.md) - Patch application
* [argocd app patch-resource](argocd_app_patch-resource.md) - Patch resource in an application
* [argocd app remove-source](argocd_app_remove-source.md) - Remove a source from multiple sources application.
* [argocd app resources](argocd_app_resources.md) - List resource of application
* [argocd app resources](argocd_app_resources.md) - List resources of application
* [argocd app rollback](argocd_app_rollback.md) - Rollback application to a previous deployed version by History ID, omitted will Rollback to the previous version
* [argocd app set](argocd_app_set.md) - Set application parameters
* [argocd app sync](argocd_app_sync.md) - Sync an application to its target state

View File

@@ -2,18 +2,36 @@
## argocd app resources
List resource of application
List resources of application
```
argocd app resources APPNAME [flags]
```
### Examples
```
# List first-level resources of application
argocd app resources my-app --refresh
# List only the orphaned resources of application
argocd app resources my-app --orphaned
# Shows resource hierarchy with parent-child relationships
argocd app resources my-app --output tree
# Shows resource hierarchy with parent-child relationships including information about age, health and reason
argocd app resources my-app --output tree=detailed
```
### Options
```
-h, --help help for resources
--orphaned Lists only orphaned resources
--output string Provides the tree view of the resources
--output string Output format. One of: tree|tree=detailed.
tree: Shows resource hierarchy with parent-child relationships
tree=detailed: Same as tree, but includes AGE, HEALTH, and REASON columns
--project string The name of the application's project - specifying this allows the command to report "not found" instead of "permission denied" if the app does not exist
```