Skip to content

Commit 4403b68

Browse files
committed
Return lower-case string from GetSingularName()
Otherwise, `oc get packagemanifest` (singular) breaks. `oc get packagemanifests` (plural) works. Signed-off-by: Todd Short <[email protected]>
1 parent 11b66ef commit 4403b68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/package-server/storage/reststorage.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package storage
33
import (
44
"context"
55
"fmt"
6+
"strings"
67

78
"k8s.io/apimachinery/pkg/fields"
89

@@ -61,7 +62,7 @@ func (m *PackageManifestStorage) Kind() string {
6162
}
6263

6364
func (m *PackageManifestStorage) GetSingularName() string {
64-
return m.Kind()
65+
return strings.ToLower(m.Kind())
6566
}
6667

6768
// NewList satisfies part of the Lister interface

0 commit comments

Comments
 (0)