Skip to content

Commit

Permalink
update ip assigned check
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Mar 15, 2022
1 parent 4d88bea commit 27af333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ func (c *Controller) acquireAddress(pod *v1.Pod, podNet *kubeovnNet) (string, st

if ok, _ := isStatefulSetPod(pod); !ok {
for _, staticIP := range ipPool {
if c.ipam.IsIPAssignedToPod(staticIP, podNet.Subnet.Name, podName) {
if c.ipam.IsIPAssignedToPod(staticIP, podNet.Subnet.Name, key) {
klog.Errorf("static address %s for %s has been assigned", staticIP, key)
continue
}
Expand Down

0 comments on commit 27af333

Please sign in to comment.