Skip to content

Commit

Permalink
Return lower-case string from GetSingularName()
Browse files Browse the repository at this point in the history
Otherwise, `oc get packagemanifest` (singular) breaks.
`oc get packagemanifests` (plural) works.
  • Loading branch information
tmshort committed Jul 18, 2023
1 parent 11b66ef commit ce4bbfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/package-server/storage/reststorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package storage
import (
"context"
"fmt"
"strings"

"k8s.io/apimachinery/pkg/fields"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ce4bbfb

Please sign in to comment.