Skip to content

Commit

Permalink
fixing metadata pod
Browse files Browse the repository at this point in the history
  • Loading branch information
gizas committed Nov 28, 2023
1 parent 30f46c6 commit 031debc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kubernetes/metadata/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ func removeUnnecessaryPodData(pod *v1.Pod) *v1.Pod {
APIVersion: pod.APIVersion,
},
ObjectMeta: pod.ObjectMeta,
Spec: v1.PodSpec{
NodeName: pod.Spec.NodeName,
},
Status: v1.PodStatus{PodIP: pod.Status.PodIP},
}

return transformernode
Expand Down

0 comments on commit 031debc

Please sign in to comment.