mirror of https://github.com/k3s-io/k3s
![]() Automatic merge from submit-queue (batch tested with PRs 55977, 56198, 57202, 57254, 57214). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix e2e test cleanup. E2E test should use `AfterEach` instead of `AddCleanupAction`. `CleanupAction` only runs once after all tests finish https://github.com/kubernetes/kubernetes/blob/master/test/e2e/e2e.go#L258. I hit this issue very frequently that once `Aggregator` test fails, all following tests all fail because the cleanup function does not run after the test, and namespace controller stops working with full of errors: ``` unable to retrieve the complete list of server APIs: wardle.k8s.io/v1alpha1: the server could not find the requested resource ``` Examples: * https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-cri-containerd-e2e-gci-gce/940 * https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce/19115 * https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce/18763 * https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce/18751 Signed-off-by: Lantao Liu <lantaol@google.com> **Release note**: ```release-note none ``` |
||
---|---|---|
.. | ||
apimachinery | ||
apps | ||
auth | ||
autoscaling | ||
chaosmonkey | ||
common | ||
framework | ||
generated | ||
instrumentation | ||
kubectl | ||
lifecycle | ||
manifest | ||
multicluster | ||
network | ||
node | ||
perftype | ||
scalability | ||
scheduling | ||
servicecatalog | ||
storage | ||
testing-manifests | ||
ui | ||
upgrades | ||
BUILD | ||
README.md | ||
e2e-example-config.json | ||
e2e.go | ||
e2e_test.go | ||
examples.go | ||
gke_local_ssd.go | ||
gke_node_pools.go |
README.md
See e2e-tests