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:"