Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 5b3ed8a

Browse files
author
Patrick Baxter
committed
terraform-quickstart: allow disabling cloud-provider integration
1 parent 260274b commit 5b3ed8a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

hack/terraform-quickstart/start-cluster.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ export WORKER_IPS=`terraform output -json worker_ips | jq -r '.value[]'`
66
export MASTER_IPS=`terraform output -json master_ips | jq -r '.value[]'`
77
export SELF_HOST_ETCD=`terraform output self_host_etcd`
88
export SSH_OPTS=${SSH_OPTS:-}" -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
9-
export CLOUD_PROVIDER=aws
9+
export CLOUD_PROVIDER=${CLOUD_PROVIDER:-aws}
10+
11+
# Normally we want to default to aws here since that is all terraform
12+
# supports and it is required for the e2e tests. However because of an
13+
# upstream bug, conformance tests won't pass with cloud provider integration
14+
# set to aws. So we need a knob to set the CLOUD_PROVIDER to nothing while
15+
# keeping aws as the default as to not mess up people using the e2e tests.
16+
if [ "$CLOUD_PROVIDER" == "none" ] ; then
17+
echo "cloud provider integration disabled"
18+
CLOUD_PROVIDER=
19+
fi
1020

1121
cd ../quickstart
1222
./init-master.sh $BOOTSTRAP_IP

0 commit comments

Comments
 (0)