Skip to content

Commit

Permalink
fix: ip not reserve after pod deletion
Browse files Browse the repository at this point in the history
Signed-off-by: bobz965 <[email protected]>
  • Loading branch information
zbb88888 committed Jan 29, 2024
1 parent 65ccc99 commit c2bf368
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,6 @@ func (c *Controller) handleDeletePod(key string) error {
c.ipam.ReleaseAddressByPod(podKey, podNet.Subnet.Name)
}
}
c.ipam.ReleaseAddressByPod(podKey, "")
if pod.Annotations[util.VipAnnotation] != "" {
if err = c.releaseVip(pod.Annotations[util.VipAnnotation]); err != nil {
klog.Errorf("failed to clean label from vip %s, %v", pod.Annotations[util.VipAnnotation], err)
Expand Down

0 comments on commit c2bf368

Please sign in to comment.