Merge pull request #87699 from michaelbeaumont/fix_66766

kube-proxy: Only open ipv4 sockets for ipv4 clusters
This commit is contained in:
Kubernetes Prow Robot
2020-02-13 23:54:18 -08:00
committed by GitHub
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