mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Allow disabling log dump for nodes (in preparation for using logexporter)
This commit is contained in:
parent
08c5e28904
commit
02249de49b
@ -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 New Issue
Block a user