kubernetes/test/e2e_node
Davanum Srinivas 03e6622c92
Fix container_restart_test AfterEach failing when CRI Proxy is undefined
Two test contexts were failing because their AfterEach blocks run even
when BeforeEach skips the test (standard Ginkgo behavior). This caused
resetCRIProxyInjector to fail with "CRI Proxy is undefined".

Switched to using DeferCleanup inside BeforeEach instead, which only
runs if BeforeEach succeeds. This is the same pattern the other test
contexts in this file already use.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2026-01-23 19:59:22 -05:00
..
builder Ensure we switch to k8s root directory for dockerized builds during e2e-node ci job 2025-02-27 10:05:45 -05:00
conformance stop using deprecated klog flags 2022-09-04 21:02:43 +02:00
criproxy Remove gogo-protobuf from CRI 2025-07-04 08:55:57 +02:00
environment Merge pull request #109753 from matthyx/109577 2022-05-13 07:33:49 -07:00
jenkins Remove remants of broken stuff - nvidia/autoscaling 2024-09-23 13:17:00 +00:00
kubeletconfig use PollUntilContextTimeout to replace PollImmediateWithContext in test 2023-10-19 22:50:21 +08:00
perf/workloads Switch node perf tests from TensorFlow to PyTorch Wide-Deep 2026-01-22 12:02:58 -05:00
perftype hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
plugins/gcp-credential-provider add e2e test with the gcp-credential-provider test plugin 2025-03-11 20:36:36 -07:00
remote Update CNI plugins to v1.9.0 2025-12-10 10:01:39 +05:30
runner e2e node: support running the test binary under a debugger 2024-04-16 11:46:28 +02:00
services migrate pkg/kubelet/kubeletconfig to contextual logging 2025-07-17 10:16:03 +03:00
system hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
testdeviceplugin Convert k8s.io/kubelet/pkg/apis/deviceplugin from gogo to protoc 2025-07-21 10:04:01 +02:00
testing-manifests e2e: node: remove kubevirt device plugin 2023-02-22 14:04:22 +01:00
.import-restrictions e2e: dra: move gomega matchers to dedicated package 2025-05-15 20:55:17 +03:00
apparmor_test.go Copy limited pieces of code we use from runc's apparmor and utils packages 2024-10-22 09:56:22 -04:00
benchmark_util.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
cgroup_driver_from_cri_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
checkpoint_container.go deprecate nodefeature for feature labels 2025-01-20 17:02:59 -05:00
container_lifecycle_pod_construction.go Merge pull request #128239 from HirazawaUi/fix-e2e-tests 2025-07-21 18:08:25 -07:00
container_lifecycle_test.go add e2e tests 2025-11-01 12:55:01 +08:00
container_log_rotation_test.go Fix pod delete issues in podresize tests 2025-01-21 07:25:14 +01:00
container_manager_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
container_metrics_test.go kubelet: improve CRI stats for resource metrics and testing 2025-12-17 10:52:32 -05:00
container_restart_test.go Fix container_restart_test AfterEach failing when CRI Proxy is undefined 2026-01-23 19:59:22 -05:00
cpu_manager_metrics_test.go e2e: node: rewrite more compatibility tests 2025-05-09 11:07:04 +02:00
cpu_manager_test.go oopsie missed two, should fix failing tests 2025-10-28 01:26:32 +00:00
criproxy_test.go Update error message expectation in criproxy_test 2026-01-08 15:56:14 +08:00
critical_pod_test.go E2E tests for pod level resources Kubelet Preemption 2025-07-24 17:08:13 +00:00
deleted_pods_test.go Make e2e node tests more resiliant by ensuring the SIGTERM trap is registered 2024-04-19 09:05:36 +02:00
density_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
device_manager_test.go Merge pull request #129168 from kannon92/drop-node-features 2025-01-23 12:07:29 -08:00
device_plugin_failures_pod_status_test.go test: Standardize labels for ResourceHealthStatus e2e tests 2025-08-07 21:40:57 +00:00
device_plugin_failures_test.go Convert k8s.io/kubelet/pkg/apis/deviceplugin from gogo to protoc 2025-07-21 10:04:01 +02:00
device_plugin_test.go Fix device plugin admission failure after container restart 2026-01-12 11:55:25 +01:00
doc.go remove import doc comments 2024-12-02 16:59:34 +01:00
dra_test.go Merge pull request #133335 from bart0sh/PR190-pluginmanager-fix-handling-registration-failures 2026-01-23 23:35:29 +05:30
e2e_node_suite_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
eviction_test.go Merge pull request #129240 from KevinTMtz/evict-terminated-pods-on-disk-pressure 2025-09-10 11:47:57 -07:00
framework.go e2e: enhance SIGDescribe 2023-10-10 18:15:49 +02:00
garbage_collector_test.go test: move kubelet GC tests to node conformance 2025-10-17 13:32:46 -04:00
gubernator.sh fix test/e2e_node/gubernator.sh shellcheck failures 2019-06-23 17:01:54 -07:00
hugepages_test.go E2E: remove unnecessary trailing spaces in test names 2026-01-07 12:05:43 +01:00
image_credential_pulls.go Fix credential test by setting AlwaysVerify policy 2026-01-13 13:52:43 +01:00
image_gc_test.go Merge pull request #134736 from haircommander/4210-ga 2025-11-06 12:43:07 -08:00
image_id_test.go deprecate nodefeature for feature labels 2025-01-20 17:02:59 -05:00
image_list.go Switch node perf tests from TensorFlow to PyTorch Wide-Deep 2026-01-22 12:02:58 -05:00
image_pull_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
image_volume.go KEP 4639: Move ImageVolume to on by default beta 2025-11-06 16:26:27 -05:00
kubelet_config_dir_test.go node_e2e: fix kubelet configuration setup 2025-09-12 09:26:17 +08:00
kubelet_tls_test.go Fix kubelet certificate reload when connecting by IP 2025-11-25 20:44:19 +01:00
lock_contention_linux_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
log_path_test.go e2e: use framework labels 2023-11-01 15:17:34 +01:00
memory_manager_metrics_test.go node: memory manager: fix the mm metrics test 2024-06-17 08:51:44 +02:00
memory_manager_test.go WIP: fix e2e tests 2025-07-29 20:20:08 +02:00
mirror_pod_grace_period_test.go E2E: remove unnecessary trailing spaces in test names 2026-01-07 12:05:43 +01:00
mirror_pod_test.go E2E: remove unnecessary trailing spaces in test names 2026-01-07 12:05:43 +01:00
mount_rro_linux_test.go KEP-3857: Recursive Read-only (RRO) mounts: promote to GA 2025-02-13 20:43:35 +09:00
node_container_manager_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
node_perf_test.go Fix pod delete issues in podresize tests 2025-01-21 07:25:14 +01:00
node_problem_detector_linux.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
node_shutdown_linux_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
numa_alignment.go Depend on k8s.io/utils cpuset 2023-05-03 16:26:09 +00:00
oomkiller_linux_test.go update to latest cadvisor @ v0.52.0 2025-03-05 06:36:39 -05:00
os_label_rename_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
OWNERS Add ffromani as approver for kubelet resource managers and their tests 2025-01-14 13:18:40 +01:00
pids_test.go wait for pod to be ready before continuing with the test 2024-07-22 05:26:59 +00:00
pod_conditions_test.go node_e2e: fix kubelet configuration setup 2025-09-12 09:26:17 +08:00
pod_host_ips.go Remove PodHostIPs feature gates. 2024-11-06 23:10:36 -08:00
pod_hostnamefqdn_test.go test: update code to use GlibcDnsTesting image 2026-01-22 08:39:46 -05:00
pod_ips.go Fix that PodIP field is not set for terminal pod 2024-07-12 21:36:12 +02:00
pod_status_test.go fix: fix the issue of losing the pending phase after a node restart. 2024-11-07 21:10:11 +08:00
podresources_test.go updating sidecar feature to node conformance 2025-10-27 23:43:43 +00:00
pods_container_manager_test.go e2e: use framework labels 2023-11-01 15:17:34 +01:00
pods_lifecycle_termination_test.go e2e: use framework labels 2023-11-01 15:17:34 +01:00
probe_stress_test.go Address review feedback: use gomega.Consistently and refactor pod creation 2025-12-12 19:28:45 +05:30
proc_mount_test.go e2e_node: update proc mount test to correctly handle baseline PSA 2026-01-07 15:59:26 -05:00
quota_lsci_test.go e2e_node: update proc mount test to correctly handle baseline PSA 2026-01-07 15:59:26 -05:00
README.md Removed broken link to Analytics 2020-08-13 16:03:37 -04:00
resource_collector.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
resource_metrics_test.go kubelet: improve CRI stats for resource metrics and testing 2025-12-17 10:52:32 -05:00
resource_usage_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
restart_all_containers_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
restart_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
runtime_conformance_test.go node e2e: add tests for Ensure Secret Image Pulls default policy 2025-11-11 11:15:53 -05:00
runtimeclass_test.go e2e tests: set all PSa labels instead of just enforcing 2023-06-21 15:05:13 +02:00
seccompdefault_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
security_context_test.go deprecate nodefeature for feature labels 2025-01-20 17:02:59 -05:00
split_disk_test.go Remove sleepAfterExecuting param from diskConsumingPod 2025-08-27 18:24:18 +00:00
standalone_test.go Add standalone tests for init container status fix. 2025-12-18 17:07:35 +00:00
static_pod_test.go Fix:Static pod status is always Init:0/1 if unable to get init container status from container runtime. 2025-12-18 16:15:33 +00:00
summary_test.go Skip memory pressure PSI test for CRI-O 2026-01-16 09:03:01 +01:00
swap_test.go disable in-place vertical pod scaling for non-restartable swappable containers 2025-03-20 20:43:18 +00:00
system_node_critical_test.go deprecate nodefeature for feature labels 2025-01-20 17:02:59 -05:00
terminate_pods_test.go Fix incorrect error messages 2025-10-06 00:42:21 +08:00
topology_manager_metrics_test.go e2e: node: rewrite more compatibility tests 2025-05-09 11:07:04 +02:00
topology_manager_test.go e2e: node: linter fix 2025-08-11 15:14:46 +02:00
unknown_pods_test.go e2e_node: refactor stopping and restarting kubelet 2024-11-06 11:34:48 +02:00
user_namespaces_test.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
util.go KEP-5471: Extend tolerations operators (#134665) 2025-11-10 12:42:54 -08:00
util_criproxy_linux.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
util_kubeletconfig.go Remove getLocalNode to fix GracefulNodeShutdown e2e. 2025-09-08 12:20:55 +00:00
util_machineinfo_linux.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
util_machineinfo_unsupported.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
util_sampledevice.go test: Fix path to e2e node sample device plugin 2023-03-02 19:22:59 -08:00
util_sriov.go Fix Go vet errors for master golang 2024-09-20 12:36:38 +05:30
util_sriov_linux.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
util_sriov_unsupported.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
util_xfs_linux.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
util_xfs_unsupported.go build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
volume_manager_test.go e2e: use framework labels 2023-11-01 15:17:34 +01:00