Merge pull request #88988 from smarterclayton/ensure_host_network_podips
kubelet: Also set PodIPs when assign a host network PodIP
This commit is contained in:
		@@ -1399,6 +1399,7 @@ func (kl *Kubelet) generateAPIPodStatus(pod *v1.Pod, podStatus *kubecontainer.Po
 | 
			
		||||
			s.HostIP = hostIP.String()
 | 
			
		||||
			if kubecontainer.IsHostNetworkPod(pod) && s.PodIP == "" {
 | 
			
		||||
				s.PodIP = hostIP.String()
 | 
			
		||||
				s.PodIPs = []v1.PodIP{{IP: s.PodIP}}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user