k3s/pkg/kubelet/kuberuntime
Kubernetes Submit Queue b20c83789f
Merge pull request #57464 from php-coder/verify_run_as_non_root_test
Automatic merge from submit-queue (batch tested with PRs 57746, 57621, 56839, 57464). 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>.

security_context_test.go(TestVerifyRunAsNonRoot): add more test cases

**What this PR does / why we need it**:
In #56503 we modified `VerifyRunAsNonRoot` function add add one more argument. As [was requested](https://github.com/kubernetes/kubernetes/pull/56503#discussion_r153870821) by @simo5, this change should have a unit test.

This PR adds this test and also some more to cover more execution paths.

**Release note**:
```release-note
NONE
```

PTAL @pweil- @liggitt 
CC @simo5
2018-01-02 15:26:47 -08:00
..
logs Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
BUILD Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
doc.go cmd/kubelet 2016-11-23 15:53:09 -08:00
fake_kuberuntime_manager.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
helpers.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
helpers_test.go Fix incorrect localhost seccomp profile path 2017-11-22 02:49:23 +00:00
instrumented_services.go Fix CRI container/imagefs stats. 2017-09-18 07:48:20 +00:00
instrumented_services_test.go add TestStatus to instrumented_services_test 2017-10-17 18:33:02 +08:00
kuberuntime_container.go kubelet: MustRunAsNonRoot should reject a pod if it has non-numeric USER. 2017-11-29 16:00:00 +01:00
kuberuntime_container_test.go kubelet: MustRunAsNonRoot should reject a pod if it has non-numeric USER. 2017-11-29 16:00:00 +01:00
kuberuntime_gc.go fix #52462. Do not GC exited containers in running pods 2017-09-28 09:37:21 -07:00
kuberuntime_gc_test.go fix #52462. Do not GC exited containers in running pods 2017-09-28 09:37:21 -07:00
kuberuntime_image.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_image_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
kuberuntime_logs.go Make CRI logs parsing to a library 2017-11-07 10:07:16 +08:00
kuberuntime_manager.go kubelet: include runtime error in event on CreatePodSandbox failure 2017-11-28 12:07:11 -06:00
kuberuntime_manager_test.go Attempt at fixing UTs 2017-09-15 09:23:52 -07:00
kuberuntime_sandbox.go Consolidate DNS codes in kubelet pkg 2017-11-16 21:07:24 -08:00
kuberuntime_sandbox_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels.go run hack/update-all 2017-06-22 11:31:03 -07:00
labels_test.go run hack/update-all 2017-06-22 11:31:03 -07:00
legacy.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
legacy_test.go Move legacy log symlink to kuberuntime 2017-05-05 11:48:08 -07:00
security_context.go kubelet: MustRunAsNonRoot should reject a pod if it has non-numeric USER. 2017-11-29 16:00:00 +01:00
security_context_test.go security_context_test.go(TestVerifyRunAsNonRoot): add more test cases. 2017-12-20 18:02:52 +01:00