Updated comment for DefaultLoadBalancerName to provide further context
This commit is contained in:
parent
cd786bda64
commit
522db8fce8
@ -62,8 +62,9 @@ type Clusters interface {
|
|||||||
Master(ctx context.Context, clusterName string) (string, error)
|
Master(ctx context.Context, clusterName string) (string, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(#6812): Use a shorter name that's less likely to be longer than cloud
|
// DefaultLoadBalancerName is for getting the load balancer name. It should eventually be removed
|
||||||
// providers' name length limits.
|
// 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 {
|
func DefaultLoadBalancerName(service *v1.Service) string {
|
||||||
//GCE requires that the name of a load balancer starts with a lower case letter.
|
//GCE requires that the name of a load balancer starts with a lower case letter.
|
||||||
ret := "a" + string(service.UID)
|
ret := "a" + string(service.UID)
|
||||||
|
Loading…
Reference in New Issue
Block a user