mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #43700 from jszczepkowski/ha-upgrade
Automatic merge from submit-queue Added failing upgrade if there is more than one master replicas. Added failing upgrade (on GCE) if there is more than one master replicas. Related to #43688. ```release-note None ```
This commit is contained in:
commit
e02e75cc20
@ -74,6 +74,13 @@ function print-node-version-info() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function upgrade-master() {
|
function upgrade-master() {
|
||||||
|
local num_masters
|
||||||
|
num_masters=$(get-master-replicas-count)
|
||||||
|
if [[ "${num_masters}" -gt 1 ]]; then
|
||||||
|
echo "Upgrade of master not supported if more than one master replica present. The current number of master replicas: ${num_masters}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "== Upgrading master to '${SERVER_BINARY_TAR_URL}'. Do not interrupt, deleting master instance. =="
|
echo "== Upgrading master to '${SERVER_BINARY_TAR_URL}'. Do not interrupt, deleting master instance. =="
|
||||||
|
|
||||||
# Tries to figure out KUBE_USER/KUBE_PASSWORD by first looking under
|
# Tries to figure out KUBE_USER/KUBE_PASSWORD by first looking under
|
||||||
|
Loading…
Reference in New Issue
Block a user