mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Merge pull request #10106 from jlowdermilk/sad-e2e-is-sad
yet another special case for e2e script
This commit is contained in:
commit
e5a2e33108
@ -127,8 +127,16 @@ if [[ "${E2E_UP,,}" == "true" ]]; then
|
|||||||
# code=400,message=cluster.cluster_api_versionmustbeoneof:
|
# code=400,message=cluster.cluster_api_versionmustbeoneof:
|
||||||
# 0.15.0,0.16.0.
|
# 0.15.0,0.16.0.
|
||||||
# The command should error, so we throw an || true on there.
|
# The command should error, so we throw an || true on there.
|
||||||
msg=$(gcloud ${CMD_GROUP:-alpha} container clusters create this-wont-work \
|
create_args=(
|
||||||
--zone=us-central1-f --cluster-api-version=0.0.0 2>&1 \
|
"this-wont-work"
|
||||||
|
"--zone=us-central1-f"
|
||||||
|
)
|
||||||
|
if [[ ! -z "${DOGFOOD_GCLOUD:-}" ]]; then
|
||||||
|
create_args+=("--cluster-version=0.0.0")
|
||||||
|
else
|
||||||
|
create_args+=("--cluster-api-version=0.0.0")
|
||||||
|
fi
|
||||||
|
msg=$(gcloud ${CMD_GROUP:-alpha} container clusters create "$(create_args[@])" 2>&1 \
|
||||||
| tr -d '[[:space:]]') || true
|
| tr -d '[[:space:]]') || true
|
||||||
# Strip out everything before the final colon, which gives us just
|
# Strip out everything before the final colon, which gives us just
|
||||||
# the allowed versions; something like "0.15.0,0.16.0." or "0.16.0."
|
# the allowed versions; something like "0.15.0,0.16.0." or "0.16.0."
|
||||||
|
Loading…
Reference in New Issue
Block a user