Merge pull request #73848 from krzysied/logexporter_custom_fix

Handling for use_custom_instance_list in dump_nodes_with_logexporter
pull/564/head
Kubernetes Prow Robot 2019-02-18 15:23:48 -08:00 committed by GitHub
commit 16cbb6b965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -329,8 +329,13 @@ function find_non_logexported_nodes() {
} }
function dump_nodes_with_logexporter() { function dump_nodes_with_logexporter() {
echo "Detecting nodes in the cluster" if [[ -n "${use_custom_instance_list}" ]]; then
detect-node-names &> /dev/null echo "Dumping logs for nodes provided by log_dump_custom_get_instances() function"
NODE_NAMES=( $(log_dump_custom_get_instances node) )
else
echo "Detecting nodes in the cluster"
detect-node-names &> /dev/null
fi
if [[ -z "${NODE_NAMES:-}" ]]; then if [[ -z "${NODE_NAMES:-}" ]]; then
echo "No nodes found!" echo "No nodes found!"