mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Remove unused func IsProxyLocked
This commit is contained in:
@@ -172,11 +172,6 @@ var (
|
|||||||
ErrProxyOnLocalhost = fmt.Errorf("cannot proxy on localhost")
|
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
|
// 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
|
// 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
|
// is only a single Proxier active on a machine. An error will be returned if
|
||||||
|
Reference in New Issue
Block a user