Skip to content

Commit 32ba581

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request kubernetes#32879 from wojtek-t/copy_logs_rotated
Automatic merge from submit-queue Copy rotated logs in e2e tests @gmarek - FYI
2 parents ce5e0da + 07476fa commit 32ba581

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cluster/log-dump.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ function copy-logs-from-node() {
3737
local -r node="${1}"
3838
local -r dir="${2}"
3939
local files=(${3})
40-
# Append ".log"
41-
files=("${files[@]/%/.log}")
40+
# Append ".log*"
41+
# The * at the end is needed to also copy rotated logs (which happens
42+
# in large clusters and long runs).
43+
files=("${files[@]/%/.log*}")
4244
# Prepend "/var/log/"
4345
files=("${files[@]/#/\/var\/log\/}")
4446
# Replace spaces with commas, surround with braces

0 commit comments

Comments
 (0)