6
6
# use the driver version from the overlay
7
7
# GCE_PD_BOSKOS_RESOURCE_TYPE: name of the boskos resource type to reserve
8
8
9
+ set -o xtrace
9
10
set -o nounset
10
11
set -o errexit
11
12
12
13
export GCE_PD_VERBOSITY=9
13
14
readonly PKGDIR=${GOPATH} /src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
14
-
15
15
readonly overlay_name=" ${GCE_PD_OVERLAY_NAME:- stable-master} "
16
16
readonly boskos_resource_type=" ${GCE_PD_BOSKOS_RESOURCE_TYPE:- gce-project} "
17
17
readonly do_driver_build=" ${GCE_PD_DO_DRIVER_BUILD:- true} "
@@ -21,6 +21,10 @@ readonly test_version=${TEST_VERSION:-master}
21
21
readonly gce_zone=${GCE_CLUSTER_ZONE:- us-central1-b}
22
22
readonly feature_gates=" CSIMigration=true,CSIMigrationGCE=true,ExpandCSIVolumes=true"
23
23
readonly 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" }
24
28
25
29
make -C " ${PKGDIR} " test-k8s-integration
26
30
@@ -36,15 +40,26 @@ readonly GCE_PD_TEST_FOCUS="PersistentVolumes\sGCEPD|[V|v]olume\sexpand|\[sig-st
36
40
37
41
# TODO(#167): Enable reconstructions tests
38
42
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} "
50
64
65
+ eval " $base_cmd "
0 commit comments