Skip to content

Commit 72c1f4b

Browse files
committed
Upgrade windows migration job to the new structure
1 parent 35cce11 commit 72c1f4b

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

test/run-windows-k8s-integration.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ set -o errexit
1212

1313
readonly PKGDIR=${GOPATH}/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
1414
readonly overlay_name="${GCE_PD_OVERLAY_NAME:-stable-master}"
15+
readonly boskos_resource_type="${GCE_PD_BOSKOS_RESOURCE_TYPE:-gce-project}"
1516
readonly do_driver_build="${GCE_PD_DO_DRIVER_BUILD:-true}"
1617
readonly deployment_strategy=${DEPLOYMENT_STRATEGY:-gce}
1718
readonly kube_version=${GCE_PD_KUBE_VERSION:-master}
1819
readonly test_version=${TEST_VERSION:-master}
1920
readonly gce_zone=${GCE_CLUSTER_ZONE:-us-central1-b}
20-
readonly teardown_driver=${GCE_PD_TEARDOWN_DRIVER:-true}
2121
readonly use_kubetest2=${USE_KUBETEST2:-true}
2222
readonly num_windows_nodes=${NUM_WINDOWS_NODES:-3}
2323

@@ -36,6 +36,7 @@ fi
3636
base_cmd="${PKGDIR}/bin/k8s-integration-test \
3737
--run-in-prow=true \
3838
--service-account-file=${E2E_GOOGLE_APPLICATION_CREDENTIALS} \
39+
--boskos-resource-type=${boskos_resource_type} \
3940
--deployment-strategy=${deployment_strategy} \
4041
--gce-zone=${gce_zone} \
4142
--platform=windows \

test/run-k8s-windows-migration.sh renamed to test/run-windows-k8s-migration.sh

+27-12
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
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
export GCE_PD_VERBOSITY=9
1314
readonly PKGDIR=${GOPATH}/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
14-
1515
readonly overlay_name="${GCE_PD_OVERLAY_NAME:-stable-master}"
1616
readonly boskos_resource_type="${GCE_PD_BOSKOS_RESOURCE_TYPE:-gce-project}"
1717
readonly do_driver_build="${GCE_PD_DO_DRIVER_BUILD:-true}"
@@ -21,6 +21,10 @@ readonly test_version=${TEST_VERSION:-master}
2121
readonly gce_zone=${GCE_CLUSTER_ZONE:-us-central1-b}
2222
readonly feature_gates="CSIMigration=true,CSIMigrationGCE=true,ExpandCSIVolumes=true"
2323
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"}
2428

2529
make -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

Comments
 (0)