From 4403b6893f59aca404b5c4f258859e6e51a3173c Mon Sep 17 00:00:00 2001 From: Todd Short Date: Tue, 18 Jul 2023 15:17:15 -0400 Subject: [PATCH] Return lower-case string from GetSingularName() Otherwise, `oc get packagemanifest` (singular) breaks. `oc get packagemanifests` (plural) works. Signed-off-by: Todd Short --- pkg/package-server/storage/reststorage.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/package-server/storage/reststorage.go b/pkg/package-server/storage/reststorage.go index 808ed3f98b..3c8df16d09 100644 --- a/pkg/package-server/storage/reststorage.go +++ b/pkg/package-server/storage/reststorage.go @@ -3,6 +3,7 @@ package storage import ( "context" "fmt" + "strings" "k8s.io/apimachinery/pkg/fields" @@ -61,7 +62,7 @@ func (m *PackageManifestStorage) Kind() string { } func (m *PackageManifestStorage) GetSingularName() string { - return m.Kind() + return strings.ToLower(m.Kind()) } // NewList satisfies part of the Lister interface