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

Commit

Permalink
Use dashes for names to avoid DNS warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Dec 5, 2019
1 parent d663639 commit b1c6e9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/run.bash
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ if ! kubectl version > /dev/null 2>&1; then
echo '>>> Creating Kind Kubernetes cluster(s)'
seq 1 "${E2E_KIND_CLUSTER_NUM}" | parallel -- kind create cluster --loglevel=debug --name "${KIND_CLUSTER_PREFIX}_{}" --wait 5m
for I in $(seq 1 "${E2E_KIND_CLUSTER_NUM}"); do
# defer kind --name "${KIND_CLUSTER_PREFIX}_${I}" delete cluster > /dev/null 2>&1 || true
# defer kind --name "${KIND_CLUSTER_PREFIX}-${I}" delete cluster > /dev/null 2>&1 || true
# Wire tests with the right cluster based on their BATS_JOB_SLOT env variable
eval export KUBECONFIG_SLOT_"${I}"="$(kind --name="${KIND_CLUSTER_PREFIX}_${I}" get kubeconfig-path)"
eval export KUBECONFIG_SLOT_"${I}"="$(kind --name="${KIND_CLUSTER_PREFIX}-${I}" get kubeconfig-path)"
done

echo '>>> Loading images into the Kind cluster(s)'
seq 1 "${E2E_KIND_CLUSTER_NUM}" | parallel -- kind --name "${KIND_CLUSTER_PREFIX}_{}" load docker-image 'docker.io/fluxcd/flux:latest'
seq 1 "${E2E_KIND_CLUSTER_NUM}" | parallel -- kind --name "${KIND_CLUSTER_PREFIX}-{}" load docker-image 'docker.io/fluxcd/flux:latest'
if [ "${E2E_KIND_CLUSTER_NUM}" -gt 1 ]; then
BATS_EXTRA_ARGS="--jobs ${E2E_KIND_CLUSTER_NUM}"
fi
Expand Down

0 comments on commit b1c6e9f

Please sign in to comment.