File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ readonly deployment_strategy=${DEPLOYMENT_STRATEGY:-gce}
17
17
readonly gke_cluster_version=${GKE_CLUSTER_VERSION:- latest}
18
18
readonly kube_version=${GCE_PD_KUBE_VERSION:- master}
19
19
readonly test_version=${TEST_VERSION:- master}
20
+ readonly gce_zone=${GCE_CLUSTER_ZONE:- us-central1-b}
21
+ readonly gce_region=${GCE_CLUSTER_REGION:- }
20
22
21
23
export GCE_PD_VERBOSITY=9
22
24
@@ -25,7 +27,7 @@ make -C ${PKGDIR} test-k8s-integration
25
27
base_cmd=" ${PKGDIR} /bin/k8s-integration-test \
26
28
--run-in-prow=true --deploy-overlay-name=${overlay_name} --service-account-file=${E2E_GOOGLE_APPLICATION_CREDENTIALS} \
27
29
--do-driver-build=${do_driver_build} --boskos-resource-type=${boskos_resource_type} \
28
- --storageclass-file=sc-standard.yaml --test-focus=" External.Storage" --gce-zone= " us-central1-b " \
30
+ --storageclass-file=sc-standard.yaml --test-focus=" External.Storage" \
29
31
--deployment-strategy=${deployment_strategy} --test-version=${test_version} --num-nodes=3"
30
32
31
33
if [ " $deployment_strategy " = " gke" ]; then
34
36
base_cmd=" ${base_cmd} --kube-version=${kube_version} "
35
37
fi
36
38
39
+ if [ -z " $gce_region " ]; then
40
+ base_cmd=" ${base_cmd} --gce-zone=${gce_zone} "
41
+ else
42
+ base_cmd=" ${base_cmd} --gce-region=${gce_region} "
43
+ fi
44
+
37
45
eval $base_cmd
You can’t perform that action at this time.
0 commit comments