generic.Matcher -> *generic.SelectionPredicate

This commit is contained in:
Hongchao Deng
2016-08-13 17:10:13 -07:00
parent d4afb781c3
commit 75fe25e717
39 changed files with 78 additions and 90 deletions

View File

@@ -113,7 +113,7 @@ func ControllerToSelectableFields(controller *api.ReplicationController) fields.
// MatchController is the filter used by the generic etcd backend to route
// watch events from etcd to clients of the apiserver only interested in specific
// labels/fields.
func MatchController(label labels.Selector, field fields.Selector) generic.Matcher {
func MatchController(label labels.Selector, field fields.Selector) *generic.SelectionPredicate {
return &generic.SelectionPredicate{
Label: label,
Field: field,