Skip to content

Commit

Permalink
Merge pull request #4163 from zhzhuang-zju/revert-release1.5
Browse files Browse the repository at this point in the history
Revert "fix: cannot access ResourceRegistry with its singularName"
  • Loading branch information
karmada-bot authored Oct 23, 2023
2 parents d69f90d + d8266e0 commit b981ce9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/registry/search/storage/resourceregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ func NewResourceRegistryStorage(scheme *runtime.Scheme, optsGetter generic.RESTO
strategy := searchregistry.NewStrategy(scheme)

store := &genericregistry.Store{
NewFunc: func() runtime.Object { return &searchapis.ResourceRegistry{} },
NewListFunc: func() runtime.Object { return &searchapis.ResourceRegistryList{} },
PredicateFunc: searchregistry.MatchResourceRegistry,
// NOTE: plural name and singular name of the resource must be all lowercase.
DefaultQualifiedResource: searchapis.Resource("resourceregistries"),
NewFunc: func() runtime.Object { return &searchapis.ResourceRegistry{} },
NewListFunc: func() runtime.Object { return &searchapis.ResourceRegistryList{} },
PredicateFunc: searchregistry.MatchResourceRegistry,
DefaultQualifiedResource: searchapis.Resource("resourceRegistries"),

CreateStrategy: strategy,
UpdateStrategy: strategy,
Expand Down

0 comments on commit b981ce9

Please sign in to comment.