kubernetes/test/e2e
2026-02-11 23:17:21 -05:00
..
apimachinery test: refactor to use atomic types 2026-02-05 20:19:33 +05:30
apps set KEP-5440 to enabled by default and add two e2e tests confirming behavior 2026-02-11 23:17:21 -05:00
architecture add bentheelder to conformance related test *reviewers* 2025-06-10 20:09:57 -07:00
auth Remove redundant re-assignments in for-loops in test/{e2e,integration,utils} 2026-01-25 22:58:27 +01:00
autoscaling Add configurable tolerance e2e test. 2025-09-26 10:58:20 -04:00
chaosmonkey test: refactor to use atomic types 2026-02-05 20:19:33 +05:30
cloud Remove redundant re-assignments in for-loops in test/{e2e,integration,utils} 2026-01-25 22:58:27 +01:00
common Remove unneeded use of fmt.Sprintf in test/{integration,e2e} 2026-02-08 14:34:13 +01:00
dra Merge pull request #136905 from bart0sh/PR222-e2e-fix-extended-resource-flake 2026-02-11 21:56:02 +05:30
environment Ensure all the files have the updated sorting 2025-06-27 11:13:50 -04:00
feature e2e: add tests for external-snapshot-metadata sidecar 2026-02-05 15:02:40 +05:30
framework Merge pull request #136905 from bart0sh/PR222-e2e-fix-extended-resource-flake 2026-02-11 21:56:02 +05:30
instrumentation feat: Add matcher and conformance tests ensuring that RV is uint128 2025-10-01 00:01:50 +00:00
invariants E2E logcheck: don't fail when there are warnings 2026-01-19 16:25:49 +01:00
kubectl Lock the DisableNodeKubeProxyVersion feature gate to be enabled by default. 2026-02-04 21:45:15 +08:00
lifecycle add HirazawaUi to kubeadm approvers list 2025-05-08 21:15:24 +08:00
network Remove unneeded use of fmt.Sprintf in test/{integration,e2e} 2026-02-08 14:34:13 +01:00
node Merge pull request #135729 from yangjunmyfm192085/fixe2e2 2026-02-11 09:26:08 +05:30
perftype
reporters
scheduling test: refactor to use atomic types 2026-02-05 20:19:33 +05:30
storage Merge pull request #130918 from iPraveenParihar/e2e/add-snapshot-metadata 2026-02-11 19:10:01 +05:30
testing-manifests Merge pull request #130918 from iPraveenParihar/e2e/add-snapshot-metadata 2026-02-11 19:10:01 +05:30
upgrades Remove unneeded use of fmt.Sprintf in test/{integration,e2e} 2026-02-08 14:34:13 +01:00
windows KEP-5471: Extend tolerations operators (#134665) 2025-11-10 12:42:54 -08:00
e2e-example-config.json
e2e.go
e2e_test.go E2E logcheck: move to "invariants" directory 2026-01-19 16:25:49 +01:00
providers.go
README.md
suites.go check invariant metrics after e2e tests 2025-10-02 14:08:08 -07:00

test/e2e

This is home to e2e tests used for presubmit, periodic, and postsubmit jobs.

Some of these jobs are merge-blocking, some are release-blocking.

e2e test ownership

All e2e tests must adhere to the following policies:

  • the test must be owned by one and only one SIG
  • the test must live in/underneath a sig-owned package matching pattern: test/e2e/[{subpath}/]{sig}/..., e.g.
    • test/e2e/auth - all tests owned by sig-auth
    • test/e2e/common/storage - all tests common to cluster-level and node-level e2e tests, owned by sig-node
    • test/e2e/upgrade/apps - all tests used in upgrade testing, owned by sig-apps
  • each sig-owned package should have an OWNERS file defining relevant approvers and labels for the owning sig, e.g.
# test/e2e/node/OWNERS
# See the OWNERS docs at https://go.k8s.io/owners

approvers:
- alice
- bob
- cynthia
emeritus_approvers:
- dave
reviewers:
- sig-node-reviewers
labels:
- sig/node
  • packages that use {subpath} should have an imports.go file importing sig-owned packages (for ginkgo's benefit), e.g.
// test/e2e/common/imports.go
package common

import (
	// ensure these packages are scanned by ginkgo for e2e tests
	_ "k8s.io/kubernetes/test/e2e/common/network"
	_ "k8s.io/kubernetes/test/e2e/common/node"
	_ "k8s.io/kubernetes/test/e2e/common/storage"
)
  • test ownership must be declared via a top-level SIGDescribe call defined in the sig-owned package, e.g.
// test/e2e/lifecycle/framework.go
package lifecycle

import "k8s.io/kubernetes/test/e2e/framework"

// SIGDescribe annotates the test with the SIG label.
var SIGDescribe = framework.SIGDescribe("cluster-lifecycle")
// test/e2e/lifecycle/bootstrap/bootstrap_signer.go

package bootstrap

import (
	"github.com/onsi/ginkgo"
	"k8s.io/kubernetes/test/e2e/lifecycle"
)
var _ = lifecycle.SIGDescribe("cluster", feature.BootstrapTokens, func() {
  /* ... */
  ginkgo.It("should sign the new added bootstrap tokens", func(ctx context.Context) {
    /* ... */
  })
  /* etc */
})

These polices are enforced:

  • via the merge-blocking presubmit job pull-kubernetes-verify
  • which ends up running hack/verify-e2e-test-ownership.sh
  • which can also be run via make verify WHAT=e2e-test-ownership

more info

See kubernetes/community/.../e2e-tests.md