mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #44017 from justinsb/permissions_log_dump
Automatic merge from submit-queue cluster/log-dump - chmod files before dumping We make the files world-readable, so that installation techniques that lock down the logfiles can still be dumped. Issue https://github.com/kubernetes/test-infra/issues/2397 ```release-note NONE ```
This commit is contained in:
commit
ae57772988
@ -154,6 +154,10 @@ function save-logs() {
|
|||||||
else
|
else
|
||||||
files="${kern_logfile} ${files} ${initd_logfiles} ${supervisord_logfiles}"
|
files="${kern_logfile} ${files} ${initd_logfiles} ${supervisord_logfiles}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Changing logfiles to be world-readable for download"
|
||||||
|
log-dump-ssh "${node_name}" "sudo chmod -R a+r /var/log" || true
|
||||||
|
|
||||||
echo "Copying '${files}' from ${node_name}"
|
echo "Copying '${files}' from ${node_name}"
|
||||||
copy-logs-from-node "${node_name}" "${dir}" "${files}"
|
copy-logs-from-node "${node_name}" "${dir}" "${files}"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user