-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathci-cloud-provider-gcp-e2e-latest.sh
More file actions
executable file
·36 lines (31 loc) · 1.35 KB
/
ci-cloud-provider-gcp-e2e-latest.sh
File metadata and controls
executable file
·36 lines (31 loc) · 1.35 KB
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
#!/bin/bash
# TODO: Use published release tars for cloud-provider-gcp if/once they exist
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
REPO_ROOT=$GOPATH/src/k8s.io/cloud-provider-gcp
cd
export GO111MODULE=on
# Optional Features
ENABLE_GCEPD=${ENABLE_GCEPD:-"false"}
USE_KUBERNETES_MASTER=${USE_KUBERNETES_MASTER:-"false"}
go install sigs.k8s.io/kubetest2@latest
go install sigs.k8s.io/kubetest2/kubetest2-gce@latest
go install sigs.k8s.io/kubetest2/kubetest2-tester-ginkgo@latest
if [[ -f "${REPO_ROOT}/ginko-test-package-version.env" ]]; then
export TEST_PACKAGE_VERSION=$(cat "${REPO_ROOT}/ginko-test-package-version.env")
echo "TEST_PACKAGE_VERSION set to ${TEST_PACKAGE_VERSION}"
else
export TEST_PACKAGE_VERSION="v1.25.0"
echo "TEST_PACKAGE_VERSION - Falling back to v1.25.0"
fi
TEST_ARGS="--minStartupPods=8"
if [[ "${ENABLE_GCEPD}" == "true" ]]; then
TEST_ARGS="${TEST_ARGS} --enabled-volume-drivers=gcepd"
fi
if [[ "${USE_KUBERNETES_MASTER}" == "true" ]]; then
cd $GOPATH/src/k8s.io/cloud-provider-gcp
e2e/add-kubernetes-to-workspace.sh
fi
kubetest2 gce -v 2 --repo-root $REPO_ROOT --build --up --down --test=ginkgo --node-size e2-standard-4 --master-size e2-standard-8 -- --test-package-version="${TEST_PACKAGE_VERSION}" --parallel=30 --test-args="${TEST_ARGS}" --skip-regex='\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]'