Skip to content

Commit

Permalink
fix: should go on check ip after occupied ip (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobz965 committed Jun 27, 2022
1 parent 9d0cefb commit c2b9eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/pod.go
Expand Up @@ -1258,7 +1258,7 @@ func (c *Controller) acquireAddress(pod *v1.Pod, podNet *kubeovnNet) (string, st
for _, staticIP := range strings.Split(staticIPs, ",") {
if c.ipam.IsIPAssignedToPod(staticIP, net.Subnet.Name, key) {
klog.Errorf("static address %s for %s has been assigned", staticIP, key)
break
continue
}
}

Expand Down

0 comments on commit c2b9eeb

Please sign in to comment.