Skip to content

Commit

Permalink
Merge pull request #4165 from zhzhuang-zju/revert-release-1.7
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 7ffcd18 + fcecb9c commit e972ef0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/registry/search/storage/resourceregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ 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"),
SingularQualifiedResource: searchapis.Resource("resourceregistry"),
NewFunc: func() runtime.Object { return &searchapis.ResourceRegistry{} },
NewListFunc: func() runtime.Object { return &searchapis.ResourceRegistryList{} },
PredicateFunc: searchregistry.MatchResourceRegistry,
DefaultQualifiedResource: searchapis.Resource("resourceRegistries"),
SingularQualifiedResource: searchapis.Resource("resourceRegistry"),

CreateStrategy: strategy,
UpdateStrategy: strategy,
Expand Down

0 comments on commit e972ef0

Please sign in to comment.