mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #14958 from madhusudancs/fix-kubelet-messages
Auto commit by PR queue bot
This commit is contained in:
commit
1d73382b83
@ -2362,13 +2362,12 @@ func (kl *Kubelet) setNodeStatus(node *api.Node) error {
|
|||||||
LastHeartbeatTime: currentTime,
|
LastHeartbeatTime: currentTime,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var reasons []string
|
|
||||||
var messages []string
|
var messages []string
|
||||||
if !containerRuntimeUp {
|
if !containerRuntimeUp {
|
||||||
messages = append(messages, "container runtime is down")
|
messages = append(messages, "container runtime is down")
|
||||||
}
|
}
|
||||||
if !networkConfigured {
|
if !networkConfigured {
|
||||||
messages = append(reasons, "network not configured correctly")
|
messages = append(messages, "network not configured correctly")
|
||||||
}
|
}
|
||||||
newNodeReadyCondition = api.NodeCondition{
|
newNodeReadyCondition = api.NodeCondition{
|
||||||
Type: api.NodeReady,
|
Type: api.NodeReady,
|
||||||
|
Loading…
Reference in New Issue
Block a user