mirror of https://github.com/k3s-io/k3s
Check CIDR before updating node status
parent
fd6b01f4bf
commit
335d70a6d1
|
@ -381,7 +381,9 @@ func (kl *Kubelet) tryUpdateNodeStatus(tryNumber int) error {
|
|||
return fmt.Errorf("nil %q node object", kl.nodeName)
|
||||
}
|
||||
|
||||
if node.Spec.PodCIDR != "" {
|
||||
kl.updatePodCIDR(node.Spec.PodCIDR)
|
||||
}
|
||||
|
||||
kl.setNodeStatus(node)
|
||||
// Patch the current status on the API server
|
||||
|
|
Loading…
Reference in New Issue