Skip to content

Commit 1184d0d

Browse files
committed
Move run-windows-k8s-integration.sh script to use kubetest2
Please keep this commit as reference
1 parent db9e12f commit 1184d0d

File tree

1 file changed

+38
-6
lines changed

1 file changed

+38
-6
lines changed

test/run-windows-k8s-integration.sh

+38-6
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,23 @@
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
910
set -o nounset
1011
set -o errexit
1112

1213
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}"
1415
readonly do_driver_build="${GCE_PD_DO_DRIVER_BUILD:-true}"
1516
readonly deployment_strategy=${DEPLOYMENT_STRATEGY:-gce}
17+
readonly kube_version=${GCE_PD_KUBE_VERSION:-master}
1618
readonly test_version=${TEST_VERSION:-master}
1719
readonly gce_zone=${GCE_CLUSTER_ZONE:-us-central1-b}
1820
readonly teardown_driver=${GCE_PD_TEARDOWN_DRIVER:-true}
1921
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"
2026

2127
make -C "${PKGDIR}" test-k8s-integration
2228

@@ -27,11 +33,37 @@ if [ "$use_kubetest2" = true ]; then
2733
go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo@latest;
2834
fi
2935

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+
3048
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}"
3668

3769
eval "$base_cmd"

0 commit comments

Comments
 (0)