mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 09:53:38 -04:00
Allow disabling log dump for nodes (in preparation for using logexporter)
This commit is contained in:
parent
08c5e28904
commit
02249de49b
1 changed files with 7 additions and 2 deletions
|
|
@ -248,6 +248,11 @@ function dump_nodes() {
|
|||
}
|
||||
|
||||
setup
|
||||
echo "Dumping master and node logs to ${report_dir}"
|
||||
echo "Dumping master logs to ${report_dir}"
|
||||
dump_masters
|
||||
dump_nodes
|
||||
if [[ "${DUMP_ONLY_MASTER_LOGS:-}" != "true" ]]; then
|
||||
echo "Dumping node logs to ${report_dir}"
|
||||
dump_nodes
|
||||
else
|
||||
echo "Skipping dumping of node logs"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue