Skip to content

Commit ac5dc1f

Browse files
authored
Merge pull request kubernetes#85844 from shaloulcy/add_configmap_predicate_func
add PredicateFunc for configmap
2 parents 9acdf52 + efa34ba commit ac5dc1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/registry/core/configmap/storage/storage.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
3939
store := &genericregistry.Store{
4040
NewFunc: func() runtime.Object { return &api.ConfigMap{} },
4141
NewListFunc: func() runtime.Object { return &api.ConfigMapList{} },
42+
PredicateFunc: configmap.Matcher,
4243
DefaultQualifiedResource: api.Resource("configmaps"),
4344

4445
CreateStrategy: configmap.Strategy,

0 commit comments

Comments
 (0)