kube-proxy: Only open ipv4 sockets for ipv4 clusters

This commit is contained in:
Michael Beaumont
2020-01-30 17:43:47 +01:00
parent 53376cdf12
commit 3eea0d1405
5 changed files with 36 additions and 20 deletions

View File

@@ -51,7 +51,7 @@ type Closeable interface {
// PortOpener is an interface around port opening/closing.
// Abstracted out for testing.
type PortOpener interface {
OpenLocalPort(lp *LocalPort) (Closeable, error)
OpenLocalPort(lp *LocalPort, isIPv6 bool) (Closeable, error)
}
// RevertPorts is closing ports in replacementPortsMap but not in originalPortsMap. In other words, it only