kube-proxy/iptables: use a type for endpoints info map

This commit is contained in:
Dan Williams
2017-03-07 13:51:58 -06:00
parent 76a7d690db
commit f7630f888f
2 changed files with 10 additions and 8 deletions

View File

@@ -1336,7 +1336,7 @@ func Test_accumulateEndpointsMap(t *testing.T) {
for tci, tc := range testCases {
// outputs
newEndpoints := map[proxy.ServicePortName][]*endpointsInfo{}
newEndpoints := make(proxyEndpointMap)
accumulateEndpointsMap(&tc.newEndpoints, "host", tc.oldEndpoints, &newEndpoints)
if len(newEndpoints) != len(tc.expectedNew) {