Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
e2e: check if GNU Parallel is available
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco committed Jan 8, 2020
1 parent ccc61bc commit 9ff9d55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/e2e/run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ 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
Expand Down

0 comments on commit 9ff9d55

Please sign in to comment.