Add MESOS_DOCKER_DUMP_LOGS to enforce log dumping

pull/6/head
Dr. Stefan Schimanski 2015-11-09 12:59:14 +01:00
parent b873dce298
commit b502032b42
1 changed files with 3 additions and 0 deletions

View File

@ -317,6 +317,9 @@ function validate-cluster {
# Delete a kubernetes cluster
function kube-down {
if [ "${MESOS_DOCKER_DUMP_LOGS:-false}" == "true" ]; then
cluster::mesos::docker::dump_logs "${MESOS_DOCKER_WORK_DIR}/log"
fi
echo "Stopping ${KUBERNETES_PROVIDER} cluster" 1>&2
# Since restoring a stopped cluster is not yet supported, use the nuclear option
cluster::mesos::docker::docker_compose kill