From 2f546ce6497cdeadf5af02b57851bb5ea9f7cf48 Mon Sep 17 00:00:00 2001 From: Zach Loafman Date: Tue, 3 Feb 2015 16:52:05 -0800 Subject: [PATCH] Parameterize ENABLE_{NODE,CLUSTER}_{LOGGING,MONITORING} and LOGGING_DESTINATION In config-{default,test.sh}. This will make it possible for e.g. Jenkins to override LOGGING_DESTINATION. Also reorder the parameters so they're in the same order across files for easier scanning. --- cluster/gce/config-default.sh | 26 +++++++++++++------------- cluster/gce/config-test.sh | 15 +++++++++------ 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/cluster/gce/config-default.sh b/cluster/gce/config-default.sh index 284e895f57e..bd60c59e377 100755 --- a/cluster/gce/config-default.sh +++ b/cluster/gce/config-default.sh @@ -49,9 +49,9 @@ function increment_ipv4 { ip_dec=$((ip_dec<<8)) ip_dec=$((ip_dec + $comp)) done - + ip_dec=$((ip_dec + $incr_amount)) - + ip_components=() local i for ((i=0; i < 4; i++)); do @@ -61,13 +61,13 @@ function increment_ipv4 { done echo "${ip_components[3]}.${ip_components[2]}.${ip_components[1]}.${ip_components[0]}" } - + node_count="${NUM_MINIONS}" next_node="10.244.0.0" node_subnet_size=24 node_subnet_count=$((2 ** (32-$node_subnet_size))) subnets=() - + for ((node_num=0; node_num