Skip to content
Permalink
Browse files

add PredicateFunc for configmap

Signed-off-by: shaloulcy <lcy041536@gmail.com>
  • Loading branch information
shaloulcy committed Dec 3, 2019
1 parent 81af5ba commit efa34ba484fd276f1c138b7c58bf8365a11275cb
Showing with 1 addition and 0 deletions.
  1. +1 −0 pkg/registry/core/configmap/storage/storage.go
@@ -39,6 +39,7 @@ func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
store := &genericregistry.Store{
NewFunc: func() runtime.Object { return &api.ConfigMap{} },
NewListFunc: func() runtime.Object { return &api.ConfigMapList{} },
PredicateFunc: configmap.Matcher,
DefaultQualifiedResource: api.Resource("configmaps"),

CreateStrategy: configmap.Strategy,

0 comments on commit efa34ba

Please sign in to comment.
You can’t perform that action at this time.