Skip to content

Commit 25160ba

Browse files
committed
static ip in exclude-ips can be allocated normally when subnet's availableIPs is 0 #3031
1 parent 9661352 commit 25160ba

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pkg/controller/pod.go

-13
Original file line numberDiff line numberDiff line change
@@ -1591,19 +1591,6 @@ func (c *Controller) getNsAvailableSubnets(pod *v1.Pod) ([]*kubeovnNet, error) {
15911591
return nil, err
15921592
}
15931593

1594-
switch subnet.Spec.Protocol {
1595-
case kubeovnv1.ProtocolIPv4:
1596-
fallthrough
1597-
case kubeovnv1.ProtocolDual:
1598-
if subnet.Status.V4AvailableIPs == 0 {
1599-
continue
1600-
}
1601-
case kubeovnv1.ProtocolIPv6:
1602-
if subnet.Status.V6AvailableIPs == 0 {
1603-
continue
1604-
}
1605-
}
1606-
16071594
result = append(result, &kubeovnNet{
16081595
Type: providerTypeOriginal,
16091596
ProviderName: subnet.Spec.Provider,

0 commit comments

Comments
 (0)