Merge pull request #12764 from thockin/proxy-nodeports

More corner cases with iptables proxy
This commit is contained in:
Robert Bailey
2015-08-18 09:13:20 -07:00
5 changed files with 336 additions and 257 deletions

View File

@@ -159,7 +159,8 @@ func (s *ProxyServer) Run(_ []string) error {
if !s.ForceUserspaceProxy && shouldUseIptables {
glog.V(2).Info("Using iptables Proxier.")
proxierIptables, err := iptables.NewProxier(utiliptables.New(exec.New(), protocol), s.SyncPeriod)
execer := exec.New()
proxierIptables, err := iptables.NewProxier(utiliptables.New(execer, protocol), execer, s.SyncPeriod)
if err != nil {
glog.Fatalf("Unable to create proxier: %v", err)
}