mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
kubeadm: fix conditional control-plane upgrade
When a node is not a control-plane properly skip "control-plane" upgrade phase.
This commit is contained in:
parent
8b7e777fe8
commit
aede153310
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user