66# use the driver version from the overlay
77# GCE_PD_BOSKOS_RESOURCE_TYPE: name of the boskos resource type to reserve
88
9+ set -o xtrace
910set -o nounset
1011set -o errexit
1112
1213export GCE_PD_VERBOSITY=9
1314readonly PKGDIR=${GOPATH} /src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
14-
1515readonly overlay_name=" ${GCE_PD_OVERLAY_NAME:- stable-master} "
1616readonly boskos_resource_type=" ${GCE_PD_BOSKOS_RESOURCE_TYPE:- gce-project} "
1717readonly do_driver_build=" ${GCE_PD_DO_DRIVER_BUILD:- true} "
@@ -21,6 +21,10 @@ readonly test_version=${TEST_VERSION:-master}
2121readonly gce_zone=${GCE_CLUSTER_ZONE:- us-central1-b}
2222readonly feature_gates=" CSIMigration=true,CSIMigrationGCE=true,ExpandCSIVolumes=true"
2323readonly use_kubetest2=${USE_KUBETEST2:- false}
24+ readonly num_windows_nodes=${NUM_WINDOWS_NODES:- 3}
25+
26+ # build platforms for `make quick-release`
27+ export KUBE_BUILD_PLATFORMS=${KUBE_BUILD_PLATFORMS:- " linux/amd64 windows/amd64" }
2428
2529make -C " ${PKGDIR} " test-k8s-integration
2630
@@ -36,15 +40,26 @@ readonly GCE_PD_TEST_FOCUS="PersistentVolumes\sGCEPD|[V|v]olume\sexpand|\[sig-st
3640
3741# TODO(#167): Enable reconstructions tests
3842
39- ${PKGDIR} /bin/k8s-integration-test \
40- --platform=windows --bringup-cluster=false --teardown-cluster=false \
41- --run-in-prow=true \
42- --kube-feature-gates=${feature_gates} --run-in-prow=true \
43- --deploy-overlay-name=${overlay_name} --service-account-file=${E2E_GOOGLE_APPLICATION_CREDENTIALS} \
44- --do-driver-build=${do_driver_build} --boskos-resource-type=${boskos_resource_type} \
45- --migration-test=true --test-focus=${GCE_PD_TEST_FOCUS} \
46- --gce-zone=${gce_zone} --deployment-strategy=${deployment_strategy} --test-version=${test_version} \
47- --use-kubetest2=${use_kubetest2}
48-
49- # eval "$base_cmd"
43+ base_cmd=" ${PKGDIR} /bin/k8s-integration-test \
44+ --run-in-prow=true \
45+ --service-account-file=${E2E_GOOGLE_APPLICATION_CREDENTIALS} \
46+ --boskos-resource-type=${boskos_resource_type} \
47+ --deployment-strategy=${deployment_strategy} \
48+ --gce-zone=${gce_zone} \
49+ --platform=windows \
50+ --bringup-cluster=true \
51+ --teardown-cluster=true \
52+ --num-nodes=1 \
53+ --num-windows-nodes=${num_windows_nodes} \
54+ --teardown-driver=${teardown_driver} \
55+ --do-driver-build=${do_driver_build} \
56+ --deploy-overlay-name=${overlay_name} \
57+ --test-version=${test_version} \
58+ --kube-version=${kube_version} \
59+ --kube-feature-gates=${feature_gates}
60+ --storageclass-files=sc-windows.yaml \
61+ --snapshotclass-file=pd-volumesnapshotclass.yaml \
62+ --test-focus=${GCE_PD_TEST_FOCUS} \
63+ --use-kubetest2=${use_kubetest2} "
5064
65+ eval " $base_cmd "
0 commit comments