mirror of https://github.com/kubernetes/kops.git
Add support for control plane size, template, and skipping e2e to upgrade scenario
This commit is contained in:
parent
0973246b04
commit
6a364fa18c
|
|
@ -59,10 +59,14 @@ else
|
||||||
KOPS="${KOPS_A}"
|
KOPS="${KOPS_A}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
${KUBETEST2} \
|
${KUBETEST2} \
|
||||||
--up \
|
--up \
|
||||||
--kops-binary-path="${KOPS_A}" \
|
--kops-binary-path="${KOPS_A}" \
|
||||||
--kubernetes-version="${K8S_VERSION_A}" \
|
--kubernetes-version="${K8S_VERSION_A}" \
|
||||||
|
--control-plane-size="${KOPS_CONTROL_PLANE_SIZE:-1}" \
|
||||||
|
--template-path="${KOPS_TEMPLATE:-}" \
|
||||||
--create-args="--networking calico"
|
--create-args="--networking calico"
|
||||||
|
|
||||||
# Export kubeconfig-a
|
# Export kubeconfig-a
|
||||||
|
|
@ -107,6 +111,10 @@ cp "${KOPS_B}" "${WORKSPACE}/kops"
|
||||||
|
|
||||||
"${KOPS_B}" export kubecfg --name "${CLUSTER_NAME}" --admin
|
"${KOPS_B}" export kubecfg --name "${CLUSTER_NAME}" --admin
|
||||||
|
|
||||||
|
if [[ -z ${KOPS_SKIP_E2E:-} ]]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
${KUBETEST2} \
|
${KUBETEST2} \
|
||||||
--cloud-provider="${CLOUD_PROVIDER}" \
|
--cloud-provider="${CLOUD_PROVIDER}" \
|
||||||
--kops-binary-path="${KOPS}" \
|
--kops-binary-path="${KOPS}" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue