Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
  • Loading branch information
Daxin Wang committed Jun 13, 2022
1 parent cf489a5 commit 7cb2d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/metadata/kubernetes/pod_watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7cb2d32

Please sign in to comment.