diff --git a/pkg/cmd/get/packages.go b/pkg/cmd/get/packages.go index dd690151..6fe5d33c 100644 --- a/pkg/cmd/get/packages.go +++ b/pkg/cmd/get/packages.go @@ -69,7 +69,7 @@ func printPackages(ctx context.Context, outWriter io.Writer, kubeClient client.C } } else { // Get the custom package using its name - customPackages := v1alpha1.CustomPackageList{} + customPackages = v1alpha1.CustomPackageList{} for _, name := range packages { cp, err := getPackageByName(ctx, kubeClient, idpbuilderNamespace, name) if err != nil { diff --git a/pkg/printer/package.go b/pkg/printer/package.go index 38f19be7..6e3f9caf 100644 --- a/pkg/printer/package.go +++ b/pkg/printer/package.go @@ -28,9 +28,9 @@ func (pp PackagePrinter) PrintOutput(format string) error { func generatePackageTable(packagesTable []entity.Package) metav1.Table { table := &metav1.Table{} table.ColumnDefinitions = []metav1.TableColumnDefinition{ - {Name: "Name", Type: "string"}, - {Name: "Namespace", Type: "string"}, - {Name: "GitRepository", Type: "string"}, + {Name: "Custom package name", Type: "string"}, + {Name: "idp namespace", Type: "string"}, + {Name: "Git Repository", Type: "string"}, } for _, p := range packagesTable { row := metav1.TableRow{