-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathset-env-vars.sh
executable file
·34 lines (22 loc) · 1.36 KB
/
set-env-vars.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
#!/bin/bash
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION=1.25.0
LOCALBIN=`pwd`/bin
ENVTEST=${LOCALBIN}/setup-envtest
export KUBEBUILDER_ASSETS="$(${ENVTEST} use ${ENVTEST_K8S_VERSION} --bin-dir ${LOCALBIN} -p path)"
# not existing cluster by default
export USE_EXISTING_CLUSTER=${USE_EXISTING_CLUSTER:="false"}
# if you plan to debug or run on existing cluster increase the timeout (30 seconds should be ok)
export SINGLE_TEST_TIMEOUT=${SINGLE_TEST_TIMEOUT:="5s"}
# if you plan to debug or run on existing cluster increase the timeout (180 seconds should be ok)
export SUITE_TIMEOUT=${SUITE_TIMEOUT:=30s}
# you can opt into succinct mode with ginkgo.succinct, verbose mode with ginkgo.v and very-verbose mode with ginkgo.vv
export GINKGO_VERBOSE_FLAG=${GINKGO_VERBOSE_FLAG:="ginkgo.succinct"}
# GINKGO_LABEL_FILTER="provisioning,test-update"
export GINKGO_LABEL_FILTER=${GINKGO_LABEL_FILTER:=""}
# should be false for env-test cluster, may be true for existing cluster
export DISABLE_WEBHOOK_FILTER_FOR_TESTS=${DISABLE_WEBHOOK_FILTER_FOR_TESTS:="false"}
# You can, instead, have Ginkgo always emit the full stack trace by running ginkgo --trace.
export GINKGO_TRACE=${GINKGO_TRACE:="trace"}
# if you want use to process in parallel use "-p" as option
export GINKGO_PARALLEL_FLAG=${GINKGO_PARALLEL_FLAG:=""}