Skip to content

Commit

Permalink
Merge pull request #1078 from awgreene/update-package-table
Browse files Browse the repository at this point in the history
Bug 1761924:  Update PackageManifest table handler
  • Loading branch information
openshift-merge-robot authored Oct 19, 2019
2 parents 1f3fdfa + 3ebc413 commit 36db200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/package-server/storage/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ func addTableHandlers(h printers.PrintHandler) {

}

func printPackage(manifest *operators.PackageManifest, options printers.PrintOptions) ([]metav1beta1.TableRow, error) {
func printPackage(manifest *operators.PackageManifest, options printers.GenerateOptions) ([]metav1beta1.TableRow, error) {
row := metav1beta1.TableRow{
Object: runtime.RawExtension{Object: manifest},
}
row.Cells = append(row.Cells, manifest.Name, manifest.Status.CatalogSourceDisplayName, translateTimestampSince(manifest.CreationTimestamp))
return []metav1beta1.TableRow{row}, nil
}

func printPackageList(manifestList *operators.PackageManifestList, options printers.PrintOptions) ([]metav1beta1.TableRow, error) {
func printPackageList(manifestList *operators.PackageManifestList, options printers.GenerateOptions) ([]metav1beta1.TableRow, error) {
rows := make([]metav1beta1.TableRow, 0, len(manifestList.Items))
for i := range manifestList.Items {
r, err := printPackage(&manifestList.Items[i], options)
Expand Down

0 comments on commit 36db200

Please sign in to comment.