mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
simplify NUM_NODES
This commit is contained in:
@@ -80,6 +80,8 @@ nodes:
|
||||
- role: worker
|
||||
- role: worker
|
||||
EOF
|
||||
# NOTE: must match the number of workers above
|
||||
NUM_NODES=2
|
||||
# actually create the cluster
|
||||
# TODO(BenTheElder): settle on verbosity for this script
|
||||
KIND_IS_UP=true
|
||||
@@ -137,12 +139,6 @@ run_tests() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# get the number of worker nodes
|
||||
# TODO(bentheelder): this is kinda gross
|
||||
NUM_NODES="$(kubectl get nodes \
|
||||
-o=jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.taints}{"\n"}{end}' \
|
||||
| grep -cv "node-role.kubernetes.io/master" )"
|
||||
|
||||
# setting this env prevents ginkgo e2e from trying to run provider setup
|
||||
export KUBERNETES_CONFORMANCE_TEST="y"
|
||||
./hack/ginkgo-e2e.sh \
|
||||
|
||||
Reference in New Issue
Block a user