Skip to content

Commit

Permalink
static ip in exclude-ips can be allocated normally when subnet's avai…
Browse files Browse the repository at this point in the history
…lableIPs is 0 #3031
  • Loading branch information
hongzhen-ma committed Jul 13, 2023
1 parent 9f29810 commit 98c0e3c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -1405,19 +1405,6 @@ func (c *Controller) getNsAvailableSubnets(pod *v1.Pod) ([]*kubeovnNet, error) {
return nil, err
}

switch subnet.Spec.Protocol {
case kubeovnv1.ProtocolIPv4:
fallthrough
case kubeovnv1.ProtocolDual:
if subnet.Status.V4AvailableIPs == 0 {
continue
}
case kubeovnv1.ProtocolIPv6:
if subnet.Status.V6AvailableIPs == 0 {
continue
}
}

result = append(result, &kubeovnNet{
Type: providerTypeOriginal,
ProviderName: subnet.Spec.Provider,
Expand Down

0 comments on commit 98c0e3c

Please sign in to comment.