Skip to content

Commit

Permalink
Allow specifying GCE network in GKE provider, default to "e2e" for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerlynn committed Jan 7, 2015
1 parent c8244cd commit 15f0068
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions cluster/gke/config-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

# The following are default-specific settings.
CLUSTER_NAME="${CLUSTER_NAME:-${USER}-gke}"
NETWORK=${KUBE_GKE_NETWORK:-default}

# For ease of maintenance, extract any pieces that do not vary between default
# and test in a common config.
Expand Down
1 change: 1 addition & 0 deletions cluster/gke/config-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

# The following are test-specific settings.
CLUSTER_NAME="${CLUSTER_NAME:-${USER}-gke-e2e}"
NETWORK=${KUBE_GKE_NETWORK:-e2e}

# For ease of maintenance, extract any pieces that do not vary between default
# and test in a common config.
Expand Down
3 changes: 2 additions & 1 deletion cluster/gke/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ function kube-up() {
--zone="${ZONE}" \
--project="${PROJECT}" \
--cluster-api-version="${CLUSTER_API_VERSION:-}" \
--num-nodes="${NUM_MINIONS}"
--num-nodes="${NUM_MINIONS}" \
--network="${NETWORK}"

# Compute DNS_SERVER_IP: This is looking for something like
# "servicesIpv4Cidr: 10.27.240.0/20" and returning "10.27.240"
Expand Down

0 comments on commit 15f0068

Please sign in to comment.