Updated comment for DefaultLoadBalancerName to provide further context

This commit is contained in:
morrislaw 2018-08-14 18:20:03 -04:00
parent cd786bda64
commit 522db8fce8

View File

@ -62,8 +62,9 @@ type Clusters interface {
Master(ctx context.Context, clusterName string) (string, error)
}
// TODO(#6812): Use a shorter name that's less likely to be longer than cloud
// providers' name length limits.
// DefaultLoadBalancerName is for getting the load balancer name. It should eventually be removed
// because there is an interface method, LoadBalancer.GetLoadBalancerName, which can be implemented
// per provider and this neutral implementation won't fit every cloud provider's requirements.
func DefaultLoadBalancerName(service *v1.Service) string {
//GCE requires that the name of a load balancer starts with a lower case letter.
ret := "a" + string(service.UID)