mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Add MESOS_DOCKER_DUMP_LOGS to enforce log dumping
This commit is contained in:
parent
b873dce298
commit
b502032b42
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user