Commit eaacc1e5 authored by jeanepaul's avatar jeanepaul

refactor coding style

parent a68f0a85
...@@ -26,7 +26,7 @@ MASTER_DISK_SIZE=${MASTER_DISK_SIZE:-20GB} ...@@ -26,7 +26,7 @@ MASTER_DISK_SIZE=${MASTER_DISK_SIZE:-20GB}
MINION_DISK_TYPE=pd-standard MINION_DISK_TYPE=pd-standard
MINION_DISK_SIZE=${MINION_DISK_SIZE:-100GB} MINION_DISK_SIZE=${MINION_DISK_SIZE:-100GB}
REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-true} REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-true}
PREEMPTIBLE_MINION=false PREEMPTIBLE_MINION=${PREEMPTIBLE_MINION:-false}
OS_DISTRIBUTION=${KUBE_OS_DISTRIBUTION:-debian} OS_DISTRIBUTION=${KUBE_OS_DISTRIBUTION:-debian}
MASTER_IMAGE=${KUBE_GCE_MASTER_IMAGE:-container-vm-v20150806} MASTER_IMAGE=${KUBE_GCE_MASTER_IMAGE:-container-vm-v20150806}
......
...@@ -27,7 +27,7 @@ MINION_DISK_TYPE=pd-standard ...@@ -27,7 +27,7 @@ MINION_DISK_TYPE=pd-standard
MINION_DISK_SIZE=${MINION_DISK_SIZE:-100GB} MINION_DISK_SIZE=${MINION_DISK_SIZE:-100GB}
REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-false} REGISTER_MASTER_KUBELET=${REGISTER_MASTER:-false}
KUBE_APISERVER_REQUEST_TIMEOUT=300 KUBE_APISERVER_REQUEST_TIMEOUT=300
PREEMPTIBLE_MINION=false PREEMPTIBLE_MINION=${PREEMPTIBLE_MINION:-false}
OS_DISTRIBUTION=${KUBE_OS_DISTRIBUTION:-debian} OS_DISTRIBUTION=${KUBE_OS_DISTRIBUTION:-debian}
MASTER_IMAGE=${KUBE_GCE_MASTER_IMAGE:-container-vm-v20150806} MASTER_IMAGE=${KUBE_GCE_MASTER_IMAGE:-container-vm-v20150806}
......
...@@ -401,7 +401,7 @@ function create-node-template { ...@@ -401,7 +401,7 @@ function create-node-template {
local preemptible_minions="" local preemptible_minions=""
if [[ "${PREEMPTIBLE_MINION}" == "true" ]]; then if [[ "${PREEMPTIBLE_MINION}" == "true" ]]; then
preemptible_minions="--preemptible --maintenance-policy TERMINATE" preemptible_minions="--preemptible --maintenance-policy TERMINATE"
fi fi
while true; do while true; do
echo "Attempt ${attempt} to create ${1}" >&2 echo "Attempt ${attempt} to create ${1}" >&2
if ! gcloud compute instance-templates create "$1" \ if ! gcloud compute instance-templates create "$1" \
...@@ -412,7 +412,8 @@ function create-node-template { ...@@ -412,7 +412,8 @@ function create-node-template {
--image-project="${MINION_IMAGE_PROJECT}" \ --image-project="${MINION_IMAGE_PROJECT}" \
--image "${MINION_IMAGE}" \ --image "${MINION_IMAGE}" \
--tags "${MINION_TAG}" \ --tags "${MINION_TAG}" \
--network "${NETWORK}" ${preemptible_minions} \ --network "${NETWORK}" \
${preemptible_minions} \
$2 \ $2 \
--can-ip-forward \ --can-ip-forward \
--metadata-from-file "$3","$4" >&2; then --metadata-from-file "$3","$4" >&2; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment