We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f694c0c commit 20bcac7Copy full SHA for 20bcac7
pkg/cloudprovider/huaweicloud/dedicatedloadbalancer.go
@@ -864,11 +864,13 @@ func (d *DedicatedLoadBalancer) deleteELBInstance(loadBalancer *elbmodel.LoadBal
864
return nil
865
}
866
867
- eipID := getStringFromSvsAnnotation(service, ElbEipID, "")
+ lbEIP := ""
868
+ if len(loadBalancer.Eips) > 0 && loadBalancer.Eips[0].EipId != nil {
869
+ lbEIP = *loadBalancer.Eips[0].EipId
870
+ }
871
+ eipID := getStringFromSvsAnnotation(service, ElbEipID, lbEIP)
872
if eipID == "" {
- if eipID == "" && len(loadBalancer.Eips) > 0 && loadBalancer.Eips[0].EipId != nil {
- eipID = *loadBalancer.Eips[0].EipId
- }
873
+ return nil
874
875
876
klog.Infof("deleting unbind EIP: %v", eipID)
0 commit comments