SUSE / caasp-salt

A collection of salt states used to provision a kubernetes cluster
Apache License 2.0
64 stars 29 forks source link

[WIP] [3.0] Fix 2 to 3 upgrades when draining nodes before rebooting #697

Closed ereslibre closed 5 years ago

ereslibre commented 5 years ago

Before rebooting a 2 machine we drain it; make sure that when we send the drain command in this case it's sent to the local apiserver running in this machine, and only do this in the specific case in which the machine is in the 2.0 version. Otherwise, perform the general case.

Fixes: bsc#1112744

Backport of https://github.com/kubic-project/salt/pull/696