Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit c6c81bf

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request #50973 from FengyunPan/fix-legacy-floatingip
Automatic merge from submit-queue (batch tested with PRs 50229, 50973, 50976, 51085, 51084) Fix legacy floatingip Fix #50974 If user specify floating-network-id by annotation rather than cloud provider file, openstack cloud provider don't delete floatingip when deleting LoadBalancer service. **Release note**: ```release-note NONE ```
2 parents a8cabf1 + a4ac13a commit c6c81bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ func (lbaas *LbaasV2) EnsureLoadBalancerDeleted(clusterName string, service *v1.
11161116
return nil
11171117
}
11181118

1119-
if lbaas.opts.FloatingNetworkId != "" && loadbalancer != nil {
1119+
if loadbalancer != nil && loadbalancer.VipPortID != "" {
11201120
portID := loadbalancer.VipPortID
11211121
floatingIP, err := getFloatingIPByPortID(lbaas.network, portID)
11221122
if err != nil && err != ErrNotFound {

0 commit comments

Comments
 (0)