mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Check CIDR before updating node status
This commit is contained in:
		@@ -381,7 +381,9 @@ func (kl *Kubelet) tryUpdateNodeStatus(tryNumber int) error {
 | 
				
			|||||||
		return fmt.Errorf("nil %q node object", kl.nodeName)
 | 
							return fmt.Errorf("nil %q node object", kl.nodeName)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if node.Spec.PodCIDR != "" {
 | 
				
			||||||
		kl.updatePodCIDR(node.Spec.PodCIDR)
 | 
							kl.updatePodCIDR(node.Spec.PodCIDR)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	kl.setNodeStatus(node)
 | 
						kl.setNodeStatus(node)
 | 
				
			||||||
	// Patch the current status on the API server
 | 
						// Patch the current status on the API server
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user