mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #73848 from krzysied/logexporter_custom_fix
Handling for use_custom_instance_list in dump_nodes_with_logexporter
This commit is contained in:
commit
16cbb6b965
@ -329,8 +329,13 @@ function find_non_logexported_nodes() {
|
||||
}
|
||||
|
||||
function dump_nodes_with_logexporter() {
|
||||
echo "Detecting nodes in the cluster"
|
||||
detect-node-names &> /dev/null
|
||||
if [[ -n "${use_custom_instance_list}" ]]; then
|
||||
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
|
||||
echo "No nodes found!"
|
||||
|
Loading…
Reference in New Issue
Block a user