Commit e917f4ed authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents 3e16a27d 02249de4
...@@ -248,6 +248,11 @@ function dump_nodes() { ...@@ -248,6 +248,11 @@ function dump_nodes() {
} }
setup setup
echo "Dumping master and node logs to ${report_dir}" echo "Dumping master logs to ${report_dir}"
dump_masters 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment