Skip to content

Commit

Permalink
fix args passing
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc committed Mar 23, 2020
1 parent ea6b6a7 commit 4c036ad
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions hack/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,11 @@ e2e_args=(
--
--clean-start=true
--delete-namespace-on-failure=false
--repo-root=$ROOT
--repo-root="$ROOT"
# tidb-operator e2e flags
--operator-tag=e2e
--operator-image=${TIDB_OPERATOR_IMAGE}
--e2e-image=${E2E_IMAGE}
--operator-image="${TIDB_OPERATOR_IMAGE}"
--e2e-image="${E2E_IMAGE}"
# two tidb versions can be configuraed: <defaultVersion>,<upgradeToVersion>
--tidb-versions=v3.0.7,v3.0.8
--chart-dir=/charts
Expand All @@ -354,18 +354,18 @@ docker_args=(
if [ "$PROVIDER" == "eks" ]; then
e2e_args+=(
--provider=aws
--gce-zone ${AWS_REGION}
--gce-zone="${AWS_REGION}"
)
# aws credential is required to get token for EKS
docker_args+=(
-v $HOME/.aws:/root/.aws
)
elif [ "$PROVIDER" == "gke" ]; then
e2e_args+=(
--provider=${PROVIDER}
--gce-project ${GCP_PROJECT}
--gce-region ${GCP_REGION}
--gce-zone ${GCP_ZONE}
--provider="${PROVIDER}"
--gce-project="${GCP_PROJECT}"
--gce-region="${GCP_REGION}"
--gce-zone="${GCP_ZONE}"
)
docker_args+=(
-v ${GCP_CREDENTIALS}:${GCP_CREDENTIALS}
Expand All @@ -382,7 +382,7 @@ elif [ "$PROVIDER" == "gke" ]; then
)
else
e2e_args+=(
--provider=${PROVIDER}
--provider="${PROVIDER}"
)
fi

Expand Down

0 comments on commit 4c036ad

Please sign in to comment.