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

@@ -79,7 +79,7 @@ func (endpointsStrategy) AllowUnconditionalUpdate() bool {
}
// MatchEndpoints returns a generic matcher for a given label and field selector.
func MatchEndpoints(label labels.Selector, field fields.Selector) generic.Matcher {
func MatchEndpoints(label labels.Selector, field fields.Selector) *generic.SelectionPredicate {
return &generic.SelectionPredicate{Label: label, Field: field, GetAttrs: EndpointsAttributes}
}