mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Copy rotated logs in e2e tests
This commit is contained in:
parent
a665002d80
commit
07476fa658
@ -37,8 +37,10 @@ function copy-logs-from-node() {
|
|||||||
local -r node="${1}"
|
local -r node="${1}"
|
||||||
local -r dir="${2}"
|
local -r dir="${2}"
|
||||||
local files=(${3})
|
local files=(${3})
|
||||||
# Append ".log"
|
# Append ".log*"
|
||||||
files=("${files[@]/%/.log}")
|
# The * at the end is needed to also copy rotated logs (which happens
|
||||||
|
# in large clusters and long runs).
|
||||||
|
files=("${files[@]/%/.log*}")
|
||||||
# Prepend "/var/log/"
|
# Prepend "/var/log/"
|
||||||
files=("${files[@]/#/\/var\/log\/}")
|
files=("${files[@]/#/\/var\/log\/}")
|
||||||
# Replace spaces with commas, surround with braces
|
# Replace spaces with commas, surround with braces
|
||||||
|
Loading…
Reference in New Issue
Block a user