Updating target pools on cloud nodes change.

Implemented updating target pools for external services on chage of cloud nodes. Related to #5241.
This commit is contained in:
Jerzy Szczepkowski
2015-04-01 14:52:28 +02:00
parent 2e24c50c1c
commit eb253a694e
9 changed files with 204 additions and 29 deletions

View File

@@ -42,6 +42,10 @@ type Clusters interface {
Master(clusterName string) (string, error)
}
func GetLoadBalancerName(clusterName, serviceNamespace, serviceName string) string {
return clusterName + "-" + serviceNamespace + "-" + serviceName
}
// TCPLoadBalancer is an abstract, pluggable interface for TCP load balancers.
type TCPLoadBalancer interface {
// TCPLoadBalancerExists returns whether the specified load balancer exists.