From 7cb2d32c8c9d5111be07cef8f4ed9aa1ae42ce8a Mon Sep 17 00:00:00 2001 From: Daxin Wang Date: Mon, 13 Jun 2022 10:07:35 +0800 Subject: [PATCH] fix typo Signed-off-by: Daxin Wang --- collector/metadata/kubernetes/pod_watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/metadata/kubernetes/pod_watch.go b/collector/metadata/kubernetes/pod_watch.go index 1d8d6e27c..6d63f9006 100644 --- a/collector/metadata/kubernetes/pod_watch.go +++ b/collector/metadata/kubernetes/pod_watch.go @@ -303,7 +303,7 @@ func OnUpdate(objOld interface{}, objNew interface{}) { } if oldPod.Status.HostIP != newPod.Status.HostIP { - deletedPodInfo.hostPorts = oldCachePod.Ports + deletedPodInfo.hostPorts = oldCachePod.HostPorts } else { hostPortsCompare := compare.NewInt32Slice(oldCachePod.HostPorts, newHostPorts) hostPortsCompare.Compare()