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 authored Dec 9, 2022
1 parent 4072eb7 commit fa32177
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 @@ -690,7 +690,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 fa32177

Please sign in to comment.