PR feedback

Signed-off-by: Pradip Dhara <pradipd@microsoft.com>
This commit is contained in:
Pradip Dhara 2017-09-07 10:36:11 -07:00
parent 495252723d
commit a3c3a596dd
3 changed files with 5 additions and 4 deletions

View file

@ -992,7 +992,7 @@ func CreateOptionDisableResolution() EndpointOption {
}
}
//CreateOptionAlias function returns an option setter for setting endpoint alias
// CreateOptionAlias function returns an option setter for setting endpoint alias
func CreateOptionAlias(name string, alias string) EndpointOption {
return func(ep *endpoint) {
if ep.aliases == nil {
@ -1013,14 +1013,14 @@ func CreateOptionService(name, id string, vip net.IP, ingressPorts []*PortConfig
}
}
//CreateOptionMyAlias function returns an option setter for setting endpoint's self alias
// CreateOptionMyAlias function returns an option setter for setting endpoint's self alias
func CreateOptionMyAlias(alias string) EndpointOption {
return func(ep *endpoint) {
ep.myAliases = append(ep.myAliases, alias)
}
}
//CreateOptionLoadBalancer function returns an option setter for denoting the endpoint is a load balancer for a network
// CreateOptionLoadBalancer function returns an option setter for denoting the endpoint is a load balancer for a network
func CreateOptionLoadBalancer() EndpointOption {
return func(ep *endpoint) {
ep.loadBalancer = true

View file

@ -918,7 +918,7 @@ func (sb *sandbox) clearNetworkResources(origEp *endpoint) error {
}
if index == -1 {
logrus.Errorf("Endpoint %s has already been deleted", ep.Name())
logrus.Warnf("Endpoint %s has already been deleted", ep.Name())
sb.Unlock()
return nil
}

View file

@ -73,6 +73,7 @@ func (n *network) addLBBackend(ip, vip net.IP, lb *loadBalancer, ingressPorts []
if err != nil {
logrus.Errorf("Failed to add ILB policy for service %s (%s) with endpoints %v using load balancer IP %s on network %s: %v",
lb.service.name, vip.String(), endpoints, sourceVIP, n.Name(), err)
return
}
lbPolicylistMap[lb] = &policyLists{