mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Don't check runtime condition for rktnetes
rktnetes is not a CRI implementation, and does not provide runtime conditions. This change fixes the issue where rkt will never be considered running from kubelet's point of view.
This commit is contained in:
		@@ -2059,7 +2059,7 @@ func (kl *Kubelet) updateRuntimeUp() {
 | 
			
		||||
	}
 | 
			
		||||
	// Only check specific conditions when runtime integration type is cri,
 | 
			
		||||
	// because the old integration doesn't populate any runtime condition.
 | 
			
		||||
	if kl.kubeletConfiguration.EnableCRI {
 | 
			
		||||
	if kl.kubeletConfiguration.EnableCRI && kl.kubeletConfiguration.ContainerRuntime != "rkt" {
 | 
			
		||||
		if s == nil {
 | 
			
		||||
			glog.Errorf("Container runtime status is nil")
 | 
			
		||||
			return
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user