Merge pull request #82307 from yutedz/rm-proxy-locked

Remove unused func IsProxyLocked
This commit is contained in:
Kubernetes Prow Robot 2019-09-11 15:25:15 -07:00 committed by GitHub
commit 2a749f1e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,11 +172,6 @@ var (
ErrProxyOnLocalhost = fmt.Errorf("cannot proxy on localhost")
)
// IsProxyLocked returns true if the proxy could not acquire the lock on iptables.
func IsProxyLocked(err error) bool {
return strings.Contains(err.Error(), "holding the xtables lock")
}
// NewProxier returns a new Proxier given a LoadBalancer and an address on
// which to listen. Because of the iptables logic, It is assumed that there
// is only a single Proxier active on a machine. An error will be returned if