mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Added MULTIZONE flag to e2e remove master script.
Added MULTIZONE flag to e2e remove master script. The script is used by HA tests which set-up multizone clusters.
This commit is contained in:
parent
2b0a1f2b11
commit
0c669fe6cc
@ -19,6 +19,9 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
|
|||||||
if [[ ! -z "${1:-}" ]]; then
|
if [[ ! -z "${1:-}" ]]; then
|
||||||
export KUBE_GCE_ZONE="${1}"
|
export KUBE_GCE_ZONE="${1}"
|
||||||
fi
|
fi
|
||||||
|
if [[ ! -z "${2:-}" ]]; then
|
||||||
|
export MULTIZONE="${2}"
|
||||||
|
fi
|
||||||
export KUBE_DELETE_NODES=false
|
export KUBE_DELETE_NODES=false
|
||||||
|
|
||||||
source "${KUBE_ROOT}/hack/e2e-internal/e2e-down.sh"
|
source "${KUBE_ROOT}/hack/e2e-internal/e2e-down.sh"
|
||||||
|
@ -42,7 +42,7 @@ func addMasterReplica(zone string) error {
|
|||||||
|
|
||||||
func removeMasterReplica(zone string) error {
|
func removeMasterReplica(zone string) error {
|
||||||
framework.Logf(fmt.Sprintf("Removing an existing master replica, zone: %s", zone))
|
framework.Logf(fmt.Sprintf("Removing an existing master replica, zone: %s", zone))
|
||||||
v, _, err := framework.RunCmd(path.Join(framework.TestContext.RepoRoot, "hack/e2e-internal/e2e-remove-master.sh"), zone)
|
v, _, err := framework.RunCmd(path.Join(framework.TestContext.RepoRoot, "hack/e2e-internal/e2e-remove-master.sh"), zone, "true")
|
||||||
framework.Logf("%s", v)
|
framework.Logf("%s", v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user