Stop using underscores for cluster names to avoid DNS warnings
@@ -42,15 +42,15 @@ if ! kubectl version > /dev/null 2>&1; then
install_kind
echo '>>> Creating Kind Kubernetes cluster(s)'
- seq 1 "${E2E_KIND_CLUSTER_NUM}" | parallel -- kind create cluster --name "${KIND_CLUSTER_PREFIX}_{}" --wait 5m
+ seq 1 "${E2E_KIND_CLUSTER_NUM}" | parallel -- kind create cluster --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
