Skip to content

Commit efa34ba

Browse files
committed
add PredicateFunc for configmap
Signed-off-by: shaloulcy <[email protected]>
1 parent 81af5ba commit efa34ba

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)