|
|
7 miesięcy temu | |
|---|---|---|
| .. | ||
| README.md | 7 miesięcy temu | |
| full_api_e2e.sh | 7 miesięcy temu | |
full_api_e2e.sh covers all interfaces documented in k8s-orchestrator/README.md:
GET /healthzPOST/GET/DELETE /v1/nodesPOST/GET/scale-out/scale-in/release /v1/spark-clustersPOST /v1/spark-jobsPOST/GET/scale-out/scale-in/release /v1/starrocks-clustersPOST /v1/starrocks-jobsGET /v1/operations/{operationId} (via polling for every mutation)kubectl, kubeadm, curl, jq, sshpass, go, helmfull_api_e2e.sh will auto-install Spark/StarRocks operators when missing.
From k8s-orchestrator directory:
./test/e2e/full_api_e2e.sh
E2E_START_LOCAL=true|false
true (default): build and start local orchestrator-api + orchestrator-controllerE2E_RESET_WORKERS=true|false
true: force workers to no kubeadm/kubelet/containerd before AddNodeE2E_WORKER_MAP
node-1=ip1,node-2=ip2E2E_SSH_USER, E2E_SSH_PASSWORDE2E_NODE_CPU, E2E_NODE_RAM, E2E_NODE_SSDExample:
E2E_RESET_WORKERS=true \
E2E_SSH_PASSWORD='Wenshu_test' \
E2E_WORKER_MAP='worker-1=47.237.255.159,worker-2=47.237.255.162,worker-3=47.237.254.197,worker-4=47.84.84.212' \
./test/e2e/full_api_e2e.sh