mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
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)
|
||||
}
|
||||
|
||||
// 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)
|
||||
|
Loading…
Reference in New Issue
Block a user