From 1d3d12dfc2f0797398c82e447d0e09aca46ee9bb Mon Sep 17 00:00:00 2001 From: Yu-Ju Hong Date: Mon, 17 Apr 2017 11:05:44 -0700 Subject: [PATCH] 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. --- pkg/kubelet/kubelet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/kubelet.go b/pkg/kubelet/kubelet.go index b0c7b3e245f..80ba8a1acad 100644 --- a/pkg/kubelet/kubelet.go +++ b/pkg/kubelet/kubelet.go @@ -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