mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Add support for dryRun option to kube-conformance image
A common issue users run into is wanting a list of tests a certain regexp will run, without actually running it. ginkgo supports this with the dryRun flag but it was not exposed via the kube-conformance image. This change will set the flag if the E2E_DRYRUN environment variable is set. Fixes #74727
This commit is contained in:
parent
23a41c9d7e
commit
03d0e86117
@ -45,6 +45,10 @@ ginkgo_args=(
|
|||||||
"--noColor=true"
|
"--noColor=true"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if [[ -n ${E2E_DRYRUN:-} ]]; then
|
||||||
|
ginkgo_args+=("--dryRun=true")
|
||||||
|
fi
|
||||||
|
|
||||||
case ${E2E_PARALLEL} in
|
case ${E2E_PARALLEL} in
|
||||||
'y'|'Y') ginkgo_args+=("--nodes=25") ;;
|
'y'|'Y') ginkgo_args+=("--nodes=25") ;;
|
||||||
[1-9]|[1-9][0-9]*) ginkgo_args+=("--nodes=${E2E_PARALLEL}") ;;
|
[1-9]|[1-9][0-9]*) ginkgo_args+=("--nodes=${E2E_PARALLEL}") ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user