Userspace Proxy: allow check for endpoints on svc

This commit adds a method to the `LoadBalancer` interface in the
userspace proxy which allows consumers of the `LoadBalancer` to check if
it thinks a given service has endpoints available.
This commit is contained in:
Solly Ross
2016-08-18 13:41:51 -04:00
parent c36eee2a0c
commit 9dcf8ef344
2 changed files with 11 additions and 0 deletions

View File

@@ -31,4 +31,5 @@ type LoadBalancer interface {
NewService(service proxy.ServicePortName, sessionAffinityType api.ServiceAffinity, stickyMaxAgeMinutes int) error
DeleteService(service proxy.ServicePortName)
CleanupStaleStickySessions(service proxy.ServicePortName)
ServiceHasEndpoints(service proxy.ServicePortName) bool
}