mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +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:
parent
f96b187fcb
commit
1d3d12dfc2
@ -2059,7 +2059,7 @@ func (kl *Kubelet) updateRuntimeUp() {
|
|||||||
}
|
}
|
||||||
// Only check specific conditions when runtime integration type is cri,
|
// Only check specific conditions when runtime integration type is cri,
|
||||||
// because the old integration doesn't populate any runtime condition.
|
// 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 {
|
if s == nil {
|
||||||
glog.Errorf("Container runtime status is nil")
|
glog.Errorf("Container runtime status is nil")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user