Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
16cbb6b9
Unverified
Commit
16cbb6b9
authored
Feb 18, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73848 from krzysied/logexporter_custom_fix
Handling for use_custom_instance_list in dump_nodes_with_logexporter
parents
73fb46fe
bc426020
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
log-dump.sh
cluster/log-dump/log-dump.sh
+7
-2
No files found.
cluster/log-dump/log-dump.sh
View file @
16cbb6b9
...
@@ -329,8 +329,13 @@ function find_non_logexported_nodes() {
...
@@ -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!"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment