kubernetes/test/e2e_node
Kubernetes Submit Queue 7670341f56 Merge pull request #43395 from sjenning/selinux-e2e-node-lifecycle
Automatic merge from submit-queue (batch tested with PRs 43395, 44960)

e2e-node: refactor lifecycle test to avoid selinux issues

Fixes #42905

Previously, the exec hook tests mounted a HostPath volume from /tmp and touched a file as a indicator that the hook had run.  This is prohibited by selinux policy on Fedora/RHEL/Centos.

This PR refactors the test to avoid filesystem indication and use the same indication that the HTTP hooks use; a GET to a http endpoint.  The exec hooks run `curl` to hit this endpoint and trigger the indication.  This simplifies this test quite a bit as well, removing over 85 lines of code.

REVIEWER NOTE: The diff is a mess on this one.  Probably better to just review the new version of the file.

@derekwaynecarr
2017-04-26 14:29:41 -07:00
..
builder autogenerated 2017-04-14 10:40:57 -07:00
conformance Fix the last deprecated "gcloud docker push args" usage. 2017-04-26 11:20:25 -07:00
environment should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) 2017-03-06 09:14:48 +08:00
jenkins Change the junit file name format to junit_image-name_id.xml, 2017-03-09 16:47:48 -08:00
remote Merge pull request #44457 from dnardo/e2e_node_cni 2017-04-18 13:19:08 -07:00
runner autogenerated 2017-04-14 10:40:57 -07:00
services Merge pull request #44457 from dnardo/e2e_node_cni 2017-04-18 13:19:08 -07:00
system autogenerated 2017-04-14 10:40:57 -07:00
allocatable_eviction_test.go move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
apparmor_test.go node e2e: apparmor test should fail instead of panicking 2017-03-02 16:36:52 -08:00
benchmark_util.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
BUILD move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
container.go move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
container_manager_test.go Cleanup: replace some hardcoded codes and remove unused functions 2017-04-25 09:38:25 +08:00
critical_pod_test.go use default timeout for deletion 2017-03-08 14:40:19 -08:00
density_test.go delete cadvisor pod after test 2017-02-03 10:33:43 -08:00
disk_eviction_test.go use default timeout for deletion 2017-03-08 14:40:19 -08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
dynamic_kubelet_configuration_test.go Remove angle brackets in the test name. 2017-02-07 16:22:59 -08:00
e2e_node_suite_test.go e2e: Prefer kubeconfig host to default 2017-04-19 14:58:43 -07:00
garbage_collector_test.go use default timeout for deletion 2017-03-08 14:40:19 -08:00
gpus.go handle container restarts for GPUs 2017-03-13 10:58:26 -07:00
gubernator.sh Fix error message around gcloud calls in node e2e and gubernator 2016-09-17 01:05:20 -04:00
image_id_test.go Address comments: remove unused resourceVersion in e2e util wait loop; poll pods every 2 seconds 2017-02-08 13:05:11 -08:00
image_list.go test/e2e_node: prepull images with CRI 2017-04-01 10:18:56 +02:00
inode_eviction_test.go move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
kubelet_test.go test/e2e_node: tie together expected string and exec 2017-01-26 17:14:06 +00:00
lifecycle_hook_test.go e2e-node: refactor lifecycle test to avoid selinux issues 2017-03-20 11:56:10 -05:00
log_path_test.go refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05:00
memory_eviction_test.go move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
mirror_pod_test.go pkg/util: move uuid and strategicpatch into k8s.io/apimachinery 2017-01-25 19:45:09 +01:00
node_container_manager_test.go fix go vet issues 2017-02-27 21:24:45 -08:00
node_problem_detector_linux.go move pkg/api/v1/ref.go and pkg/api/v1/resource.go to subpackages. move some functions in resource.go to pkg/api/v1/node and pkg/api/v1/pod 2017-04-17 11:38:11 -07:00
OWNERS Add derekwaynecarr to approvers list for test/e2e_node 2017-03-31 18:00:15 -04:00
pods_container_manager_test.go cgroup names created by kubelet should be lowercased 2017-03-06 11:19:21 -05:00
README.md test/e2e*: add/update README.md files. 2017-04-03 19:05:50 +02:00
resource_collector.go changed density test to use volumes, and include deletion before logging 2017-02-02 08:51:01 -08:00
resource_usage_test.go changed density test to use volumes, and include deletion before logging 2017-02-02 08:51:01 -08:00
restart_test.go changed density test to use volumes, and include deletion before logging 2017-02-02 08:51:01 -08:00
runtime_conformance_test.go pkg/util: move uuid and strategicpatch into k8s.io/apimachinery 2017-01-25 19:45:09 +01:00
security_context_test.go Add node e2e tests for hostPid 2017-04-07 13:41:58 +08:00
simple_mount.go refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05:00
summary_test.go Fix faulty assumptions in summary API testing 2017-03-20 14:56:11 -04:00
util.go eviction manager changes for allocatable 2017-03-02 07:36:24 -08:00
volume_manager_test.go pkg/util: move uuid and strategicpatch into k8s.io/apimachinery 2017-01-25 19:45:09 +01:00