|
| 1 | +#!/bin/bash |
| 2 | + |
| 3 | +# Optional environment variables |
| 4 | +# GCE_PD_OVERLAY_NAME: which Kustomize overlay to deploy with |
| 5 | +# GCE_PD_DO_DRIVER_BUILD: if set, don't build the driver from source and just |
| 6 | +# use the driver version from the overlay |
| 7 | +# GCE_PD_BOSKOS_RESOURCE_TYPE: name of the boskos resource type to reserve |
| 8 | + |
| 9 | +set -o nounset |
| 10 | +set -o errexit |
| 11 | + |
| 12 | +export GCE_PD_VERBOSITY=9 |
| 13 | + |
| 14 | +readonly PKGDIR=${GOPATH}/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver |
| 15 | + |
| 16 | +readonly overlay_name="${GCE_PD_OVERLAY_NAME:-stable}" |
| 17 | +readonly boskos_resource_type="${GCE_PD_BOSKOS_RESOURCE_TYPE:-gce-project}" |
| 18 | +readonly do_driver_build="${GCE_PD_DO_DRIVER_BUILD:-true}" |
| 19 | +readonly deployment_strategy=${DEPLOYMENT_STRATEGY:-gce} |
| 20 | +readonly kube_version=${GCE_PD_KUBE_VERSION:-master} |
| 21 | +readonly test_version=${TEST_VERSION:-master} |
| 22 | + |
| 23 | +readonly GCE_PD_TEST_FOCUS="PersistentVolumes\sGCEPD|[V|v]olume\sexpand|\[sig-storage\]\sIn-tree\sVolumes\s\[Driver:\swindows-gcepd\]|allowedTopologies|Pod\sDisks|PersistentVolumes\sDefault" |
| 24 | + |
| 25 | +# TODO(#167): Enable reconstructions tests |
| 26 | + |
| 27 | +make -C "${PKGDIR}" test-k8s-integration |
| 28 | + |
| 29 | +base_cmd="${PKGDIR}/bin/k8s-integration-test \ |
| 30 | + --platform=windows --bringup-cluster=false --teardown-cluster=false \ |
| 31 | + --run-in-prow=true |
| 32 | + --kube-feature-gates="CSIMigration=true,CSIMigrationGCE=true,ExpandCSIVolumes=true" --run-in-prow=true \ |
| 33 | + --deploy-overlay-name="${overlay_name}" --service-account-file="${E2E_GOOGLE_APPLICATION_CREDENTIALS}" \ |
| 34 | + --do-driver-build="${do_driver_build}" --boskos-resource-type="${boskos_resource_type}" \ |
| 35 | + --migration-test=true --test-focus="${GCE_PD_TEST_FOCUS}" \ |
| 36 | + --gce-zone="us-central1-b" --deployment-strategy="${deployment_strategy}" --test-version="${test_version}" " |
| 37 | + |
| 38 | +eval "$base_cmd" |
| 39 | + |
0 commit comments