From 54b139718597367f7156c835096f0a70c6202a2d Mon Sep 17 00:00:00 2001 From: Gaurang Kudale Date: Thu, 26 Oct 2023 01:33:54 +0530 Subject: [PATCH] feat(cli): add admin-app-example (#15690) (#15861) * update the admin-app-example Signed-off-by: Author Name gaurang.kudale02@gmail.com Signed-off-by: Gaurang Kudale * update the admin-app-example Signed-off-by: Author Name gaurang.kudale02@gmail.com Signed-off-by: Gaurang Kudale * update the admin-app-example Signed-off-by: Author Name gaurang.kudale02@gmail.com Signed-off-by: Gaurang Kudale * updating the admin-app-example Signed-off-by: Author Name gaurang.kudale02@gmail.com Signed-off-by: Gaurang Kudale * updating the admin-app-example Signed-off-by: Author Name gaurang.kudale02@gmail.com Signed-off-by: Gaurang Kudale * Update cmd/argocd/commands/admin/app.go Co-authored-by: Blake Pettersson Signed-off-by: Gaurang Kudale * update the string Signed-off-by: Author Name gaurang.kudale02@gmail.com Signed-off-by: Gaurang Kudale --------- Signed-off-by: Gaurang Kudale Signed-off-by: Gaurang Kudale Co-authored-by: Blake Pettersson --- cmd/argocd/commands/admin/app.go | 10 ++++++++++ docs/user-guide/commands/argocd_admin_app.md | 15 +++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/cmd/argocd/commands/admin/app.go b/cmd/argocd/commands/admin/app.go index fbceb436f8609..a4f4557858a22 100644 --- a/cmd/argocd/commands/admin/app.go +++ b/cmd/argocd/commands/admin/app.go @@ -45,6 +45,16 @@ func NewAppCommand(clientOpts *argocdclient.ClientOptions) *cobra.Command { var command = &cobra.Command{ Use: "app", Short: "Manage applications configuration", + Example: ` +# Compare results of two reconciliations and print diff +argocd admin app diff-reconcile-results APPNAME [flags] + +# Generate declarative config for an application +argocd admin app generate-spec APPNAME + +# Reconcile all applications and store reconciliation summary in the specified file +argocd admin app get-reconcile-results APPNAME +`, Run: func(c *cobra.Command, args []string) { c.HelpFunc()(c, args) }, diff --git a/docs/user-guide/commands/argocd_admin_app.md b/docs/user-guide/commands/argocd_admin_app.md index 5b2200bf1116f..58e0f50f25846 100644 --- a/docs/user-guide/commands/argocd_admin_app.md +++ b/docs/user-guide/commands/argocd_admin_app.md @@ -8,6 +8,21 @@ Manage applications configuration argocd admin app [flags] ``` +### Examples + +``` + +# Compare results of two reconciliations and print diff +argocd admin app diff-reconcile-results APPNAME [flags] + +# Generate declarative config for an application +argocd admin app generate-spec APPNAME + +# Reconcile all applications and store reconciliation summary in the specified file +argocd admin app get-reconcile-results APPNAME + +``` + ### Options ```