e2e: check if GNU Parallel is available
@@ -37,6 +37,12 @@ E2E_KIND_CLUSTER_NUM=${E2E_KIND_CLUSTER_NUM:-1}
if ! kubectl version > /dev/null 2>&1; then
install_kind
+ # We require GNU Parallel, but some systems come with Tollef's parallel (moreutils)
+ if ! parallel -h | grep -q "GNU Parallel"; then
+ echo "GNU Parallel is not available on your system"
+ exit 1
+ fi
+
echo '>>> Creating Kind Kubernetes cluster(s)'
KIND_CONFIG_PREFIX="${HOME}/.kube/kind-config-${KIND_CLUSTER_PREFIX}"
seq 1 "${E2E_KIND_CLUSTER_NUM}" | time parallel -- env KUBECONFIG="${KIND_CONFIG_PREFIX}-{}" kind create cluster --name "${KIND_CLUSTER_PREFIX}-{}" --wait 5m
