Merge pull request #78585 from neolit123/kubeadm-fix-upgrade-node
kubeadm: fix conditional control-plane upgrade
This commit is contained in:
		@@ -52,6 +52,7 @@ func runControlPlane() func(c workflow.RunData) error {
 | 
				
			|||||||
		// if this is not a control-plande node, this phase should not be executed
 | 
							// if this is not a control-plande node, this phase should not be executed
 | 
				
			||||||
		if !data.IsControlPlaneNode() {
 | 
							if !data.IsControlPlaneNode() {
 | 
				
			||||||
			fmt.Printf("[upgrade] Skipping phase. Not a control plane node")
 | 
								fmt.Printf("[upgrade] Skipping phase. Not a control plane node")
 | 
				
			||||||
 | 
								return nil
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// otherwise, retrieve all the info required for control plane upgrade
 | 
							// otherwise, retrieve all the info required for control plane upgrade
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user