From 11a568aea0b543fe195498dd0940a4fe437b007b Mon Sep 17 00:00:00 2001 From: nitishfy Date: Fri, 22 Nov 2024 15:42:39 +0530 Subject: [PATCH] fix lint issues Signed-off-by: nitishfy --- cmd/argocd/commands/applicationset.go | 28 --------------------------- 1 file changed, 28 deletions(-) diff --git a/cmd/argocd/commands/applicationset.go b/cmd/argocd/commands/applicationset.go index ba59b53ffd4c2..3dcc905182258 100644 --- a/cmd/argocd/commands/applicationset.go +++ b/cmd/argocd/commands/applicationset.go @@ -470,34 +470,6 @@ func printAppSetSummaryTable(appSet *arogappsetv1.ApplicationSet) { fmt.Printf(printOpFmtStr, "SyncPolicy:", syncPolicyStr) } -func printAppSetSummaryTables(appSet *arogappsetv1.ApplicationSet) { - source := appSet.Spec.Template.Spec.GetSource() - fmt.Printf(printOpFmtStr, "Name:", appSet.QualifiedName()) - fmt.Printf(printOpFmtStr, "Project:", appSet.Spec.Template.Spec.GetProject()) - fmt.Printf(printOpFmtStr, "Server:", getServerForAppSet(appSet)) - fmt.Printf(printOpFmtStr, "Namespace:", appSet.Spec.Template.Spec.Destination.Namespace) - if !appSet.Spec.Template.Spec.HasMultipleSources() { - fmt.Println("Source:") - } else { - fmt.Println("Sources:") - } - printAppSourceDetails(&source) - - var ( - syncPolicyStr string - syncPolicy = appSet.Spec.Template.Spec.SyncPolicy - ) - if syncPolicy != nil && syncPolicy.Automated != nil { - syncPolicyStr = "Automated" - if syncPolicy.Automated.Prune { - syncPolicyStr += " (Prune)" - } - } else { - syncPolicyStr = "" - } - fmt.Printf(printOpFmtStr, "SyncPolicy:", syncPolicyStr) -} - func printAppSetConditions(w io.Writer, appSet *arogappsetv1.ApplicationSet) { _, _ = fmt.Fprintf(w, "CONDITION\tSTATUS\tMESSAGE\tLAST TRANSITION\n") for _, item := range appSet.Status.Conditions {