You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cluster/log-dump/log-dump.sh
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -504,10 +504,10 @@ function dump_nodes_with_logexporter() {
504
504
# Store logs from logexporter pods to allow debugging log exporting process
505
505
# itself.
506
506
proc=${max_dump_processes}
507
-
"${KUBECTL}" get pods -n "${logexporter_namespace}" -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.nodeName}{"\n"}{end}'|whileread pod node;do
507
+
"${KUBECTL}" get pods -n "${logexporter_namespace}" -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.nodeName}{"\n"}{end}'|(while read -r pod node;do
508
508
echo"Fetching logs from ${pod} running on ${node}"
0 commit comments