Skip to content

Commit

Permalink
delete ip crd base on podName (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Dec 9, 2022
1 parent 69ff0ee commit 6182cce
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 @@ -686,7 +686,7 @@ func (c *Controller) handleDeletePod(pod *v1.Pod) error {
}
if !keepIpCR {
for _, podNet := range podNets {
if err = c.deleteCrdIPs(pod.Name, pod.Namespace, podNet.ProviderName); err != nil {
if err = c.deleteCrdIPs(podName, pod.Namespace, podNet.ProviderName); err != nil {
klog.Errorf("failed to delete ip for pod %s, %v, please delete manually", pod.Name, err)
}
}
Expand Down

0 comments on commit 6182cce

Please sign in to comment.