Skip to content

Commit c1c1017

Browse files
committed
feat(contrib): Blacklist DigitalOcean regions.
This should be more futureproof when new regions are added.
1 parent f4bf6f2 commit c1c1017

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

contrib/digitalocean/provision-do-cluster.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@ if [ -z "$DEIS_NUM_INSTANCES" ]; then
3232
DEIS_NUM_INSTANCES=3
3333
fi
3434

35-
regions_with_private_networking="4 5 6 7"
36-
if ! listcontains "$regions_with_private_networking" "$1";
35+
regions_without_private_networking="1 2 3"
36+
if listcontains "$regions_without_private_networking" "$1";
3737
then
3838
echo_red "Invalid region. Please supply a region with private networking support."
3939
echo_red "Valid regions are:"
40-
echo_red "4: New York 2"
41-
echo_red "5: Amsterdam 2"
42-
echo_red "6: Singapore 1"
43-
echo_red "7: London 1"
40+
tugboat regions | grep -v "id: [$regions_without_private_networking])"
4441
exit 1
4542
fi
4643

0 commit comments

Comments
 (0)