kubernetes/test/e2e
Kubernetes Prow Robot e0ab1a16ad
Merge pull request #128372 from aramase/aramase/f/kep_4412_alpha_impl
KSA token for Kubelet image credential providers alpha
2025-03-12 00:39:50 -07:00
..
apimachinery Add CLE e2e tests 2025-03-11 20:54:45 +00:00
apps Promote e2e to conformance tests for JobBackoffLimitPerIndex 2025-02-26 17:06:41 +01:00
architecture e2e: enhance SIGDescribe 2023-10-10 18:15:49 +02:00
auth use the ClusterTrustBundles beta API 2025-03-11 18:07:24 +01:00
autoscaling Remove provider specific operations from the autoscaling tests and reintroduce the tests. 2024-11-21 13:46:51 +01:00
chaosmonkey e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
cloud test: remove implicit inclusion of "name" label in utils functions 2025-02-13 12:48:30 +01:00
common add e2e test with the gcp-credential-provider test plugin 2025-03-11 20:36:36 -07:00
dra Merge pull request #128586 from mortent/DRAPrioritizedList 2025-03-06 21:01:44 -08:00
environment e2e labels: ensure that the lists remain sorted 2024-02-13 11:51:45 +01:00
feature Add CLE e2e tests 2025-03-11 20:54:45 +00:00
framework Merge pull request #130574 from natasha41575/drop_proposed_resize_status 2025-03-11 09:49:46 -07:00
instrumentation GetRandomReadySchedulableNode nerver return MetricsGrabbingDisabledError 2025-02-13 12:00:42 +08:00
kubectl proxy: should add PingPeriod for websocket translator 2025-02-14 10:16:18 -05:00
lifecycle update sig cl owners in k/k 2025-02-12 11:04:11 +02:00
network Update test/e2e/network/netpol/network_policy_api.go 2025-03-03 08:48:06 +01:00
node Merge pull request #130574 from natasha41575/drop_proposed_resize_status 2025-03-11 09:49:46 -07:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
reporters e2e: comment the known limitation of the ProgressReporter 2022-12-23 18:43:49 +08:00
scheduling test: remove implicit inclusion of "name" label in utils functions 2025-02-13 12:48:30 +01:00
storage Merge pull request #130603 from AndrewSirenko/fix-vac-flake 2025-03-10 10:27:46 -07:00
testing-manifests use kube-cross to build kms plugin 2025-03-05 15:42:04 -08:00
upgrades test(network): replace RCs with Deployments in util function jig.Run 2025-02-11 14:48:17 +01:00
windows Add observedGeneration and validation to pod status and conditions 2025-03-06 20:08:06 +00:00
e2e-example-config.json
e2e.go remove gke from e2e 2025-01-20 21:50:46 +08:00
e2e_test.go deprecate nodefeature for feature labels 2025-01-20 17:02:59 -05:00
providers.go Remove gcp in-tree cloud provider and credential provider 2024-05-01 09:03:53 -04:00
README.md e2e: use framework labels 2023-11-01 15:17:34 +01:00
suites.go e2e: use error wrapping with %w 2023-02-06 15:39:13 +01: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