Change locking mechanism in kube-proxy

This commit is contained in:
Wojciech Tyczynski
2017-04-21 15:16:16 +02:00
parent 19795ea7c3
commit eb6949a53e
2 changed files with 82 additions and 96 deletions

View File

@@ -386,9 +386,9 @@ func NewFakeProxier(ipt utiliptables.Interface) *Proxier {
return &Proxier{
exec: &exec.FakeExec{},
serviceMap: make(proxyServiceMap),
serviceChanges: make(serviceChangeMap),
serviceChanges: newServiceChangeMap(),
endpointsMap: make(proxyEndpointsMap),
endpointsChanges: make(endpointsChangeMap),
endpointsChanges: newEndpointsChangeMap(),
iptables: ipt,
clusterCIDR: "10.0.0.0/24",
hostname: testHostname,