to fix go vet: composite literal uses unkeyed fields

parent 0ded91c5
...@@ -61,7 +61,7 @@ func NewStorage(s storage.Interface) *REST { ...@@ -61,7 +61,7 @@ func NewStorage(s storage.Interface) *REST {
} }
func MatchServices(label labels.Selector, field fields.Selector) generic.Matcher { func MatchServices(label labels.Selector, field fields.Selector) generic.Matcher {
return &generic.SelectionPredicate{label, field, ServiceAttributes} return &generic.SelectionPredicate{Label: label, Field: field, GetAttrs: ServiceAttributes}
} }
func ServiceAttributes(obj runtime.Object) (objLabels labels.Set, objFields fields.Set, err error) { func ServiceAttributes(obj runtime.Object) (objLabels labels.Set, objFields fields.Set, err error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment