mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
to fix go vet: composite literal uses unkeyed fields
This commit is contained in:
parent
0ded91c521
commit
6915e2de36
@ -61,7 +61,7 @@ func NewStorage(s storage.Interface) *REST {
|
||||
}
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user