mirror of https://github.com/k3s-io/k3s
Merge pull request #80055 from sbangari/automated-cherry-pick-of-#78874-upstream-release-1.15
Automated cherry pick of #78874: Fix the creation of load balancer policy for the NodeIp whenk3s-v1.15.3
commit
db5764d634
|
@ -172,6 +172,8 @@ func (hns hnsV1) getLoadBalancer(endpoints []endpointsInfo, flags loadBalancerFl
|
|||
if len(elbPolicy.VIPs) == 0 || elbPolicy.VIPs[0] != vip {
|
||||
continue
|
||||
}
|
||||
} else if len(elbPolicy.VIPs) != 0 {
|
||||
continue
|
||||
}
|
||||
LogJson(plist, "Found existing Hns loadbalancer policy resource", 1)
|
||||
return &loadBalancerInfo{
|
||||
|
|
|
@ -186,6 +186,8 @@ func (hns hnsV2) getLoadBalancer(endpoints []endpointsInfo, flags loadBalancerFl
|
|||
if len(plist.FrontendVIPs) == 0 || plist.FrontendVIPs[0] != vip {
|
||||
continue
|
||||
}
|
||||
} else if len(plist.FrontendVIPs) != 0 {
|
||||
continue
|
||||
}
|
||||
LogJson(plist, "Found existing Hns loadbalancer policy resource", 1)
|
||||
return &loadBalancerInfo{
|
||||
|
|
Loading…
Reference in New Issue