From 284ab90a0d2e904f47e959b9bb1e62faaf5d5d66 Mon Sep 17 00:00:00 2001 From: changzhen Date: Fri, 20 May 2022 10:43:11 +0800 Subject: [PATCH] collect pull mode cluster logs Signed-off-by: changzhen --- hack/run-e2e.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hack/run-e2e.sh b/hack/run-e2e.sh index 1e6c90cbfff9..9e1bd78a83e3 100755 --- a/hack/run-e2e.sh +++ b/hack/run-e2e.sh @@ -22,6 +22,7 @@ PULL_BASED_CLUSTERS=${PULL_BASED_CLUSTERS:-"member3:$KUBECONFIG_PATH/members.con KARMADA_RUNNING_ON_KIND=${KARMADA_RUNNING_ON_KIND:-true} KARMADA_HOST_CLUSTER_NAME=${KARMADA_HOST_CLUSTER_NAME:-"karmada-host"} +KARMADA_PULL_CLUSTER_NAME=${KARMADA_PULL_CLUSTER_NAME:-"member3"} ARTIFACTS_PATH=${ARTIFACTS_PATH:-"${HOME}/karmada-e2e-logs"} mkdir -p "$ARTIFACTS_PATH" @@ -49,6 +50,10 @@ if [ "$KARMADA_RUNNING_ON_KIND" = true ]; then echo "Collecting $KARMADA_HOST_CLUSTER_NAME logs..." mkdir -p "$ARTIFACTS_PATH/$KARMADA_HOST_CLUSTER_NAME" kind export logs --name="$KARMADA_HOST_CLUSTER_NAME" "$ARTIFACTS_PATH/$KARMADA_HOST_CLUSTER_NAME" + + echo "Collecting $KARMADA_PULL_CLUSTER_NAME logs..." + mkdir -p "$ARTIFACTS_PATH/KARMADA_PULL_CLUSTER_NAME" + kind export logs --name="$KARMADA_PULL_CLUSTER_NAME" "$ARTIFACTS_PATH/$KARMADA_PULL_CLUSTER_NAME" fi echo "Collected logs at $ARTIFACTS_PATH:"