Skip to content

Commit 304c63c

Browse files
authored
Merge pull request #5622 from neolit123/1.21-add-note-about-minimum-kubelet-version
sig-testing/e2e-tests.md: add notes about MinimumKubeletVersion
2 parents bc1cf92 + a275d97 commit 304c63c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

contributors/devel/sig-testing/e2e-tests.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ kubetest --test --test_args="--ginkgo.focus=\[Feature:Performance\]" --provider=
9898
# Conversely, exclude tests that match the regex "Pods.*env"
9999
kubetest --test --test_args="--ginkgo.skip=Pods.*env"
100100

101+
# Exclude tests tha require a certain minimum version of the kubelet
102+
kubetest --test --test_args="--ginkgo.skip=\[MinimumKubeletVersion:1.20\]"
103+
101104
# Run tests in parallel, skip any that must be run serially
102105
GINKGO_PARALLEL=y kubetest --test --test_args="--ginkgo.skip=\[Serial\]"
103106

@@ -441,12 +444,18 @@ breaking changes, it does *not* block PR merges, and thus should run in
441444
some separate test suites owned by the feature owner(s)
442445
(see [Continuous Integration](#continuous-integration) below).
443446

447+
- `[MinimumKubeletVersion:.+]`: This label must be set on tests that require
448+
a minimum version of the kubelet. Invocations of the test suite can then decide
449+
to `skip` the same tests if kubelets in the cluster do not satisfy the requirement.
450+
For example, `[MinimumKubeletVersion:(1.20|1.21)]` would `skip` tests with minimum
451+
kubelet versions `1.20` and `1.21`.
452+
444453
- `[Conformance]`: Designate that this test is included in the Conformance
445454
test suite for [Conformance Testing](../sig-architecture/conformance-tests.md). This test must
446455
meet a number of [requirements](../sig-architecture/conformance-tests.md#conformance-test-requirements)
447456
to be eligible for this tag. This tag does not supersed any other labels.
448457

449-
- `[LinuxOnly]`: If a test is known to be using Linux-specific features
458+
- `[LinuxOnly]`: If a test is known to be using Linux-specific features
450459
(e.g.: seLinuxOptions) or is unable to run on Windows nodes, it is labeled
451460
`[LinuxOnly]`. When using Windows nodes, this tag should be added to the
452461
`skip` argument.
@@ -543,7 +552,7 @@ If a behavior does not currently have coverage and a developer wishes to add a
543552
new e2e test, navigate to the ./test/e2e directory and create a new test using
544553
the existing suite as a guide.
545554

546-
**NOTE:** To build/run with tests in a new directory within ./test/e2e, add the
555+
**NOTE:** To build/run with tests in a new directory within ./test/e2e, add the
547556
directory to import list in ./test/e2e/e2e_test.go
548557

549558
When writing a test, consult #kinds-of-tests above to determine how your test

0 commit comments

Comments
 (0)