kubernetes/test/e2e/common/node
David Porter b96290c08f e2e node: Update runtime class handler skip logic
There are two runtime class tests which required the container runtime
config to include explicit configuration for `test-handler`. The current
logic skips these tests in non GCE environments. This skip is too strict
since the test is skipped in node e2e environments and in other
environments such as kind, which support running the test and also
configure `test-handler`.

Instead of skipping based on provider, add a new function
`NodeSupportsPreconfiguredRuntimeClassHandler` which examines the
underlying container runtime config and checks if the config includes
`test-handler`. The check is a bit brittle since it assumes container
runtime config paths, but it is a net improvement over skipping the test
entirely on non GCE environments.

This results in the test working in the common test environments, namely
GCE kube-up, node e2e, and kind.

Signed-off-by: David Porter <david@porter.me>
2023-01-24 14:43:24 -08:00
..
configmap.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
container_probe.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
container.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
containers.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
downwardapi.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
ephemeral_containers.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
expansion.go e2e: enhance tests that check for pod staying pending 2023-01-16 09:12:30 +01:00
framework.go update ginkgo from v1 to v2 and gomega to 1.19.0 2022-07-08 10:44:46 +08:00
init_container.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
kubelet_etc_hosts.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
kubelet.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
lease.go test/e2e: Replace deprecated pointer function 2023-01-05 18:43:58 +01:00
lifecycle_hook.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
node_lease.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
pod_admission.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
pods.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
podtemplates.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
privileged.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
runtime.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
runtimeclass.go e2e node: Update runtime class handler skip logic 2023-01-24 14:43:24 -08:00
secrets.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
security_context.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00
sysctl.go e2e: use Ginkgo context 2022-12-16 20:14:04 +01:00