-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-windows-k8s-integration.sh
executable file
·56 lines (49 loc) · 2.19 KB
/
run-windows-k8s-integration.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# Optional environment variables
# GCE_PD_OVERLAY_NAME: which Kustomize overlay to deploy with
# GCE_PD_DO_DRIVER_BUILD: if set, don't build the driver from source and just
# use the driver version from the overlay
# GCE_PD_BOSKOS_RESOURCE_TYPE: name of the boskos resource type to reserve
set -o xtrace
set -o nounset
set -o errexit
readonly PKGDIR=${GOPATH}/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
readonly overlay_name="${GCE_PD_OVERLAY_NAME:-stable-master}"
readonly boskos_resource_type="${GCE_PD_BOSKOS_RESOURCE_TYPE:-gce-project}"
readonly do_driver_build="${GCE_PD_DO_DRIVER_BUILD:-true}"
readonly teardown_driver=${GCE_PD_TEARDOWN_DRIVER:-true}
readonly deployment_strategy=${DEPLOYMENT_STRATEGY:-gce}
readonly kube_version=${GCE_PD_KUBE_VERSION:-master}
readonly test_version=${TEST_VERSION:-master}
readonly gce_zone=${GCE_CLUSTER_ZONE:-us-central1-b}
readonly use_kubetest2=${USE_KUBETEST2:-true}
readonly num_windows_nodes=${NUM_WINDOWS_NODES:-3}
# build platforms for `make quick-release`
export KUBE_BUILD_PLATFORMS=${KUBE_BUILD_PLATFORMS:-"linux/amd64 windows/amd64"}
make -C "${PKGDIR}" test-k8s-integration
if [ "$use_kubetest2" = true ]; then
go install sigs.k8s.io/kubetest2@latest;
go install sigs.k8s.io/kubetest2/kubetest2-gce@latest;
go install sigs.k8s.io/kubetest2/kubetest2-gke@latest;
go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo@latest;
fi
${PKGDIR}/bin/k8s-integration-test \
--run-in-prow=true \
--service-account-file="${E2E_GOOGLE_APPLICATION_CREDENTIALS}" \
--boskos-resource-type="${boskos_resource_type}" \
--deployment-strategy="${deployment_strategy}" \
--gce-zone="${gce_zone}" \
--platform=windows \
--bringup-cluster=true \
--teardown-cluster=true \
--num-nodes=1 \
--num-windows-nodes="${num_windows_nodes}" \
--teardown-driver="${teardown_driver}" \
--do-driver-build="${do_driver_build}" \
--deploy-overlay-name="${overlay_name}" \
--test-version="${test_version}" \
--kube-version="${kube_version}" \
--storageclass-files=sc-windows.yaml \
--snapshotclass-files=pd-volumesnapshotclass.yaml \
--test-focus='External.Storage' \
--use-kubetest2="${use_kubetest2}"