Merge pull request #44866 from shyamjvs/prepare-for-logexporter

Automatic merge from submit-queue

Allow disabling log dump for nodes (in preparation for using logexporter)

This is, in part, a change required for allowing usage of [logexporter](https://github.com/kubernetes/test-infra/tree/master/logexporter) for dumping node logs to GCS directly, instead of doing it through log-dump.sh.

cc @kubernetes/test-infra-maintainers @wojtek-t @gmarek @fejta
This commit is contained in:
Kubernetes Submit Queue 2017-04-26 06:32:31 -07:00 committed by GitHub
commit e917f4ed39

View File

@ -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