Skip to content

Commit 4acf0ac

Browse files
author
OpenShift Bot
authored
Merge pull request #9511 from deads2k/remove-unnecessary-export
Merged by openshift-bot
2 parents ee7ca0f + b2a2d3b commit 4acf0ac

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

hack/test-end-to-end-docker.sh

-6
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ function cleanup()
3737
# really have it smack people in their logs. This is a severe correctness problem
3838
grep -a5 "CACHE.*ALTERED" ${LOG_DIR}/container-origin.log
3939

40-
41-
echo "[INFO] Dumping all resources to ${LOG_DIR}/export_all.json"
42-
if [[ -n "${ADMIN_KUBECONFIG:-}" ]]; then
43-
oc export all --all-namespaces --raw -o json --config=${ADMIN_KUBECONFIG} > ${LOG_DIR}/export_all.json
44-
fi
45-
4640
echo "[INFO] Dumping etcd contents to ${ARTIFACT_DIR}/etcd_dump.json"
4741
set_curl_args 0 1
4842
ETCD_PORT="${ETCD_PORT:-4001}"

hack/util.sh

-7
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,6 @@ readonly -f ensure_ginkgo_or_die
550550

551551
# cleanup_openshift saves container logs, saves resources, and kills all processes and containers
552552
function cleanup_openshift() {
553-
ADMIN_KUBECONFIG="${ADMIN_KUBECONFIG:-${BASETMPDIR}/openshift.local.config/master/admin.kubeconfig}"
554553
LOG_DIR="${LOG_DIR:-${BASETMPDIR}/logs}"
555554
ARTIFACT_DIR="${ARTIFACT_DIR:-${LOG_DIR}}"
556555
API_HOST="${API_HOST:-127.0.0.1}"
@@ -564,12 +563,6 @@ function cleanup_openshift() {
564563
# really have it smack people in their logs. This is a severe correctness problem
565564
grep -a5 "CACHE.*ALTERED" ${LOG_DIR}/openshift.log
566565

567-
if [[ -e "${ADMIN_KUBECONFIG:-}" ]]; then
568-
echo "[INFO] Dumping all resources to ${LOG_DIR}/export_all.json"
569-
oc login -u system:admin -n default --config=${ADMIN_KUBECONFIG}
570-
oc export all --all-namespaces --raw -o json --config=${ADMIN_KUBECONFIG} > ${LOG_DIR}/export_all.json
571-
fi
572-
573566
echo "[INFO] Dumping etcd contents to ${ARTIFACT_DIR}/etcd_dump.json"
574567
set_curl_args 0 1
575568
curl -s ${clientcert_args} -L "${API_SCHEME}://${API_HOST}:${ETCD_PORT}/v2/keys/?recursive=true" > "${ARTIFACT_DIR}/etcd_dump.json"

test/old-start-configs/v1.0.0/test-end-to-end.sh

-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ function cleanup_openshift {
103103
set +e
104104
dump_container_logs
105105

106-
echo "[INFO] Dumping all resources to ${LOG_DIR}/export_all.json"
107-
oc export all --all-namespaces --raw -o json --config=${ADMIN_KUBECONFIG} > ${LOG_DIR}/export_all.json
108-
109106
echo "[INFO] Dumping etcd contents to ${ARTIFACT_DIR}/etcd_dump.json"
110107
set_curl_args 0 1
111108
curl ${clientcert_args} -L "${API_SCHEME}://${API_HOST}:${ETCD_PORT}/v2/keys/?recursive=true" > "${ARTIFACT_DIR}/etcd_dump.json"

0 commit comments

Comments
 (0)