@@ -25,9 +25,12 @@ readonly gke_release_channel=${GKE_RELEASE_CHANNEL:-""}
25
25
readonly teardown_driver=${GCE_PD_TEARDOWN_DRIVER:- true}
26
26
readonly gke_node_version=${GKE_NODE_VERSION:- }
27
27
readonly use_kubetest2=${USE_KUBETEST2:- true}
28
+ readonly migration_test=${MIGRATION_TEST:- false}
28
29
29
30
export GCE_PD_VERBOSITY=9
30
31
32
+ readonly GCE_PD_TEST_FOCUS=" PersistentVolumes\sGCEPD|[V|v]olume\sexpand|\[sig-storage\]\sIn-tree\sVolumes\s\[Driver:\sgcepd\]|allowedTopologies|Pod\sDisks|PersistentVolumes\sDefault"
33
+
31
34
make -C " ${PKGDIR} " test-k8s-integration
32
35
33
36
if [ " $use_kubetest2 " = true ]; then
@@ -42,7 +45,7 @@ base_cmd="${PKGDIR}/bin/k8s-integration-test \
42
45
--run-in-prow=true --service-account-file=${E2E_GOOGLE_APPLICATION_CREDENTIALS} \
43
46
--do-driver-build=${do_driver_build} --teardown-driver=${teardown_driver} --boskos-resource-type=${boskos_resource_type} \
44
47
--storageclass-files=sc-standard.yaml --snapshotclass-file=pd-volumesnapshotclass.yaml \
45
- --test-focus='External.Storage' -- deployment-strategy=${deployment_strategy} --test-version=${test_version} \
48
+ --deployment-strategy=${deployment_strategy} --test-version=${test_version} \
46
49
--num-nodes=3 --image-type=${image_type} --use-kubetest2=${use_kubetest2} "
47
50
48
51
if [ " $use_gke_managed_driver " = false ]; then
70
73
if [ -z " $gke_node_version " ]; then
71
74
base_cmd=" ${base_cmd} --gke-node-version=${gke_node_version} "
72
75
fi
76
+
77
+ if [ " $migration_test " = " true" ]; then
78
+ base_cmd=" ${base_cmd} --migration-test=true --test-focus=${GCE_PD_TEST_FOCUS} "
79
+ else
80
+ base_cmd=" ${base_cmd} --test-focus='External.Storage'"
81
+ fi
82
+
73
83
eval " $base_cmd "
0 commit comments