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
readonly PKGDIR=${GOPATH} /src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
13
- readonly overlay_name=" ${GCE_PD_OVERLAY_NAME:- stable-master } "
14
+ readonly overlay_name=" ${GCE_PD_OVERLAY_NAME:- noauth } "
14
15
readonly do_driver_build=" ${GCE_PD_DO_DRIVER_BUILD:- true} "
15
16
readonly deployment_strategy=${DEPLOYMENT_STRATEGY:- gce}
17
+ readonly kube_version=${GCE_PD_KUBE_VERSION:- master}
16
18
readonly test_version=${TEST_VERSION:- master}
17
19
readonly gce_zone=${GCE_CLUSTER_ZONE:- us-central1-b}
18
20
readonly teardown_driver=${GCE_PD_TEARDOWN_DRIVER:- true}
19
21
readonly use_kubetest2=${USE_KUBETEST2:- true}
22
+ readonly num_windows_nodes=${NUM_WINDOWS_NODES:- 3}
23
+
24
+ # build platforms for `make quick-release`
25
+ export KUBE_BUILD_PLATFORMS=" linux/amd64 windows/amd64"
20
26
21
27
make -C " ${PKGDIR} " test-k8s-integration
22
28
@@ -27,11 +33,37 @@ if [ "$use_kubetest2" = true ]; then
27
33
go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo@latest;
28
34
fi
29
35
36
+ # TODO(mauriciopoppe): remove this assignment
37
+ E2E_GOOGLE_APPLICATION_CREDENTIALS=sa
38
+
39
+ # TODO(mauriciopoppe): change run-in-prow=true
40
+
41
+ # TODO(mauriciopoppe): change overlay back to stable-master
42
+
43
+ # TODO(mauriciopoppe): remove --staging-image and this flag
44
+ GCE_PD_CSI_STAGING_IMAGE=gcr.io/mauriciopoppe-gke-dev/gcp-compute-persistent-disk-csi-driver
45
+
46
+ # TODO(mauriciopoppe): change to --do-driver-build=${do_driver_build} \
47
+
30
48
base_cmd=" ${PKGDIR} /bin/k8s-integration-test \
31
- --platform=windows --bringup-cluster=false --teardown-cluster=false --teardown-driver=${teardown_driver} \
32
- --run-in-prow=true --deploy-overlay-name=${overlay_name} --service-account-file=${E2E_GOOGLE_APPLICATION_CREDENTIALS} \
33
- --do-driver-build=${do_driver_build} --gce-zone=${gce_zone} --test-version=${test_version} \
34
- --storageclass-files=sc-windows.yaml --snapshotclass-file=pd-volumesnapshotclass.yaml --test-focus='External.Storage' \
35
- --deployment-strategy=${deployment_strategy} --use-kubetest2=${use_kubetest2} "
49
+ --staging-image=" ${GCE_PD_CSI_STAGING_IMAGE} " \
50
+ --run-in-prow=false \
51
+ --service-account-file=${E2E_GOOGLE_APPLICATION_CREDENTIALS} \
52
+ --deployment-strategy=${deployment_strategy} \
53
+ --gce-zone=${gce_zone} \
54
+ --platform=windows \
55
+ --bringup-cluster=true \
56
+ --teardown-cluster=true \
57
+ --num-nodes=1 \
58
+ --num-windows-nodes=${num_windows_nodes} \
59
+ --teardown-driver=${teardown_driver} \
60
+ --do-driver-build=true \
61
+ --deploy-overlay-name=${overlay_name} \
62
+ --test-version=${test_version} \
63
+ --kube-version=${kube_version} \
64
+ --storageclass-files=sc-windows.yaml \
65
+ --snapshotclass-file=pd-volumesnapshotclass.yaml \
66
+ --test-focus='External.Storage' \
67
+ --use-kubetest2=${use_kubetest2} "
36
68
37
69
eval " $base_cmd "
0 commit comments