Skip to content

Commit

Permalink
k8s: Fix logging
Browse files Browse the repository at this point in the history
Log the correct field for HostIP.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
  • Loading branch information
jrajahalme authored and aanm committed Jun 18, 2021
1 parent 41e830e commit db06a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8s/watchers/pod.go
Expand Up @@ -209,7 +209,7 @@ func (k *K8sWatcher) addK8sPodV1(pod *slim_corev1.Pod) error {
logfields.K8sNamespace: pod.ObjectMeta.Namespace,
"podIP": pod.Status.PodIP,
"podIPs": pod.Status.PodIPs,
"hostIP": pod.Status.PodIP,
"hostIP": pod.Status.HostIP,
})

// In Kubernetes Jobs, Pods can be left in Kubernetes until the Job
Expand Down

0 comments on commit db06a64

Please sign in to comment.