Skip to content

Commit

Permalink
Update packagemanifest
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Short <[email protected]>
  • Loading branch information
tmshort committed Jul 12, 2023
1 parent d4e47c5 commit 34f8b01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/package-server/storage/reststorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var _ rest.Lister = &PackageManifestStorage{}
var _ rest.Getter = &PackageManifestStorage{}
var _ rest.Scoper = &PackageManifestStorage{}
var _ rest.TableConvertor = &PackageManifestStorage{}
var _ rest.SingularNameProvider = &PackageManifestStorage{}

// NewStorage returns a struct that implements methods needed for Kubernetes to satisfy API requests for the `PackageManifest` resource
func NewStorage(groupResource schema.GroupResource, prov provider.PackageManifestProvider, scheme *runtime.Scheme) *PackageManifestStorage {
Expand All @@ -59,6 +60,10 @@ func (m *PackageManifestStorage) Kind() string {
return "PackageManifest"
}

func (m *PackageManifestStorage) GetSingularName() string {
return m.Kind()
}

// NewList satisfies part of the Lister interface
func (m *PackageManifestStorage) NewList() runtime.Object {
return &operators.PackageManifestList{}
Expand Down

0 comments on commit 34f8b01

Please sign in to comment.