mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Do service creation/update/deletion work in a pool of goroutines, protecting
each service with a lock to ensure that no two goroutines will process a service at the same time. This is needed to avoid weird race conditions.
This commit is contained in:
@@ -42,6 +42,8 @@ type Clusters interface {
|
||||
Master(clusterName string) (string, error)
|
||||
}
|
||||
|
||||
// TODO(#6812): Use a shorter name that's less likely to be longer than cloud
|
||||
// providers' name length limits.
|
||||
func GetLoadBalancerName(clusterName, serviceNamespace, serviceName string) string {
|
||||
return clusterName + "-" + serviceNamespace + "-" + serviceName
|
||||
}
|
||||
|
Reference in New Issue
Block a user