Don't delete affinity when endpoints are empty

This only affects the userspace kube-proxy.
This commit is contained in:
Tim Hockin
2016-05-07 21:23:50 -07:00
parent f500194d92
commit 9052eddaf6
3 changed files with 15 additions and 1 deletions

View File

@@ -29,5 +29,6 @@ type LoadBalancer interface {
// service-port and source address.
NextEndpoint(service proxy.ServicePortName, srcAddr net.Addr) (string, error)
NewService(service proxy.ServicePortName, sessionAffinityType api.ServiceAffinity, stickyMaxAgeMinutes int) error
DeleteService(service proxy.ServicePortName)
CleanupStaleStickySessions(service proxy.ServicePortName)
}