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

Commit

Permalink
e2e: don't create e2e kind clusters in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansedich committed Feb 12, 2020
1 parent 263f1de commit 7a8196b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ commands:
name: End-to-end Helm <<parameters.helm_version>>
command: make e2e
environment:
E2E_KIND_CLUSTER_NUM: 2
E2E_KIND_CLUSTER_NUM: 4
HELM_VERSION: <<parameters.helm_version>>
jobs:
build:
Expand Down
4 changes: 3 additions & 1 deletion test/e2e/run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ if ! kubectl version > /dev/null 2>&1; then
# Wire tests with the right cluster based on their BATS_JOB_SLOT env variable
eval export "KUBECONFIG_SLOT_${I}=${KIND_CONFIG_PREFIX}-${I}"
done
seq 1 "${E2E_KIND_CLUSTER_NUM}" | time parallel -- env KUBECONFIG="${KIND_CONFIG_PREFIX}-{}" kind create cluster --name "${KIND_CLUSTER_PREFIX}-{}" --wait 5m --image kindest/node:${KUBE_VERSION}
# Due to https://github.com/kubernetes-sigs/kind/issues/1288
# limit parallel creation of clusters to 1 job.
seq 1 "${E2E_KIND_CLUSTER_NUM}" | time parallel -j 1 -- env KUBECONFIG="${KIND_CONFIG_PREFIX}-{}" kind create cluster --name "${KIND_CLUSTER_PREFIX}-{}" --wait 5m --image kindest/node:${KUBE_VERSION}

echo '>>> Loading images into the Kind cluster(s)'
seq 1 "${E2E_KIND_CLUSTER_NUM}" | time parallel -- kind --name "${KIND_CLUSTER_PREFIX}-{}" load docker-image 'docker.io/fluxcd/helm-operator:latest'
Expand Down

0 comments on commit 7a8196b

Please sign in to comment.