From a7f499dd72dd08418c084ad365e8a9491fc182cb Mon Sep 17 00:00:00 2001 From: hzma Date: Fri, 12 Aug 2022 16:22:41 +0800 Subject: [PATCH] do not wait dynamic address for pod (#1800) --- pkg/controller/pod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/pod.go b/pkg/controller/pod.go index 8643e5b62c8..ed8722ef7b4 100644 --- a/pkg/controller/pod.go +++ b/pkg/controller/pod.go @@ -605,7 +605,7 @@ func (c *Controller) handleDeletePod(pod *v1.Pod) error { // there's some case which can not delete static route by ipam for sts pod when upgrading from lower version for _, lsp := range ports { - addrs, err := c.ovnClient.GetPortAddr(lsp) + addrs, err := c.ovnClient.GetLogicalSwitchPortAddress(lsp) if err != nil { if err != ovs.ErrNoAddr { klog.Errorf("failed to get addr for lsp %s, %v", lsp, err)