Commit 32ba5815 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #32879 from wojtek-t/copy_logs_rotated

Automatic merge from submit-queue Copy rotated logs in e2e tests @gmarek - FYI
parents ce5e0dab 07476fa6
......@@ -37,8 +37,10 @@ function copy-logs-from-node() {
local -r node="${1}"
local -r dir="${2}"
local files=(${3})
# Append ".log"
files=("${files[@]/%/.log}")
# Append ".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/"
files=("${files[@]/#/\/var\/log\/}")
# Replace spaces with commas, surround with braces
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment