mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #85844 from shaloulcy/add_configmap_predicate_func
add PredicateFunc for configmap
This commit is contained in:
commit
ac5dc1fc68
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user