Clean up and restructure.

This commit is contained in:
Nathan Button 2017-05-03 13:51:58 -06:00
parent ddaac519dc
commit 06779586cd

View File

@ -2729,8 +2729,10 @@ func (c *Cloud) EnsureLoadBalancer(clusterName string, apiService *v1.Service, n
// Create a security group for the load balancer
var securityGroupID string
{
if c.cfg.Global.ElbSecurityGroup != "" {
securityGroupID = c.cfg.Global.ElbSecurityGroup
} else {
sgName := "k8s-elb-" + loadBalancerName
@ -2777,6 +2779,7 @@ func (c *Cloud) EnsureLoadBalancer(clusterName string, apiService *v1.Service, n
return nil, err
}
}
}
securityGroupIDs := []string{securityGroupID}
// Build the load balancer itself