Skip to content

Commit

Permalink
Merge pull request #11472 from olemarkus/csi-test-known-zone
Browse files Browse the repository at this point in the history
Discover what zone the cluster is in for the aws-ebs-csi driver tests
  • Loading branch information
k8s-ci-robot authored May 13, 2021
2 parents 8a28545 + eb0d999 commit 7b04870
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/e2e/scenarios/aws-ebs-csi/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -o pipefail

echo "CLOUD_PROVIDER=${CLOUD_PROVIDER}"

REPORT_DIR="$(pwd)/artifacts/aws-ebs-csi-driver/"
REPORT_DIR="${ARTIFACTS:-$(pwd)/_artifacts}/aws-ebs-csi-driver/"

export KOPS_FEATURE_FLAGS="SpecOverrideFlag,${KOPS_FEATURE_FLAGS:-}"
REPO_ROOT=$(git rev-parse --show-toplevel);
Expand Down Expand Up @@ -52,7 +52,9 @@ ${KUBETEST2} \
--create-args="--networking calico --override=cluster.spec.cloudConfig.awsEBSCSIDriver.enabled=true"


ZONE=$(${KOPS} get ig -o json | jq -r '[.[] | select(.spec.role=="Node") | .spec.subnets[0]][0]')

cd "$(mktemp -dt kops.XXXXXXXXX)"
git clone --branch v1.0.0 https://github.com/kubernetes-sigs/aws-ebs-csi-driver.git .
cd tests/e2e-kubernetes/
go test -v -timeout 0 ./... -ginkgo.skip="\[Disruptive\]" -report-dir="${REPORT_DIR}"
go test -v -timeout 0 ./... -ginkgo.skip="\[Disruptive\]" -report-dir="${REPORT_DIR}" -gce-zone="${ZONE}"

0 comments on commit 7b04870

Please sign in to comment.