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:
Lubomir I. Ivanov 2019-05-31 16:25:46 +03:00
parent 8b7e777fe8
commit aede153310

View File

@ -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 !data.IsControlPlaneNode() {
fmt.Printf("[upgrade] Skipping phase. Not a control plane node")
return nil
}
// otherwise, retrieve all the info required for control plane upgrade