Add a deprecation note to k/k/cluster/log-dump directory

This commit is contained in:
Antoni Zawodny
2020-11-16 17:57:03 +01:00
parent 59ac565dbf
commit 7acd8b50c8
2 changed files with 29 additions and 0 deletions

View File

@@ -71,6 +71,15 @@ logexporter_failed=0
# process will exit with a non-zero exit code).
readonly log_dump_expected_success_percentage="${LOG_DUMP_EXPECTED_SUCCESS_PERCENTAGE:-0}"
function print-deprecation-note() {
local -r dashline=$(printf -- '-%.0s' {1..100})
echo "${dashline}"
echo "k/k version of the log-dump.sh script is deprecated!"
echo "Please migrate your test job to use test-infra's repo version of log-dump.sh!"
echo "Migration steps can be found in the readme file."
echo "${dashline}"
}
# TODO: Get rid of all the sourcing of bash dependencies eventually.
function setup() {
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
@@ -670,6 +679,7 @@ function detect_node_failures() {
}
function main() {
print-deprecation-note
setup
kube::util::ensure-temp-dir
# Copy master logs to artifacts dir locally (through SSH).