File tree 3 files changed +0
-16
lines changed
test/old-start-configs/v1.0.0
3 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,6 @@ function cleanup()
37
37
# really have it smack people in their logs. This is a severe correctness problem
38
38
grep -a5 " CACHE.*ALTERED" ${LOG_DIR} /container-origin.log
39
39
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
-
46
40
echo " [INFO] Dumping etcd contents to ${ARTIFACT_DIR} /etcd_dump.json"
47
41
set_curl_args 0 1
48
42
ETCD_PORT=" ${ETCD_PORT:- 4001} "
Original file line number Diff line number Diff line change @@ -550,7 +550,6 @@ readonly -f ensure_ginkgo_or_die
550
550
551
551
# cleanup_openshift saves container logs, saves resources, and kills all processes and containers
552
552
function cleanup_openshift() {
553
- ADMIN_KUBECONFIG=" ${ADMIN_KUBECONFIG:- ${BASETMPDIR} / openshift.local.config/ master/ admin.kubeconfig} "
554
553
LOG_DIR=" ${LOG_DIR:- ${BASETMPDIR} / logs} "
555
554
ARTIFACT_DIR=" ${ARTIFACT_DIR:- ${LOG_DIR} } "
556
555
API_HOST=" ${API_HOST:- 127.0.0.1} "
@@ -564,12 +563,6 @@ function cleanup_openshift() {
564
563
# really have it smack people in their logs. This is a severe correctness problem
565
564
grep -a5 " CACHE.*ALTERED" ${LOG_DIR} /openshift.log
566
565
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
-
573
566
echo " [INFO] Dumping etcd contents to ${ARTIFACT_DIR} /etcd_dump.json"
574
567
set_curl_args 0 1
575
568
curl -s ${clientcert_args} -L " ${API_SCHEME} ://${API_HOST} :${ETCD_PORT} /v2/keys/?recursive=true" > " ${ARTIFACT_DIR} /etcd_dump.json"
Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ function cleanup_openshift {
103
103
set +e
104
104
dump_container_logs
105
105
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
-
109
106
echo " [INFO] Dumping etcd contents to ${ARTIFACT_DIR} /etcd_dump.json"
110
107
set_curl_args 0 1
111
108
curl ${clientcert_args} -L " ${API_SCHEME} ://${API_HOST} :${ETCD_PORT} /v2/keys/?recursive=true" > " ${ARTIFACT_DIR} /etcd_dump.json"
You can’t perform that action at this time.
0 commit comments