Enabling deployments on GCE when the corresponding env var is set to true

pull/6/head
nikhiljindal 2015-10-15 15:55:46 -07:00
parent a0c038982e
commit a558fca24b
1 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,14 @@ function verify-prereqs {
fi
fi
fi
if [[ "${ENABLE_DEPLOYMENTS}" == "true" ]]; then
if [[ -z "${RUNTIME_CONFIG}" ]]; then
RUNTIME_CONFIG="extensions/v1beta1/deployments=true"
else
RUNTIME_CONFIG="${RUNTIME_CONFIG},extensions/v1beta1/deployments=true"
fi
fi
local cmd
for cmd in gcloud gsutil; do