kubernetes/pkg/util
k8s-merge-robot 7c4c19f623 Merge pull request #26936 from yifan-gu/fix_selinux
Automatic merge from submit-queue

rkt: Fix incomplete selinux context string when the option is partial.

Fix "EmptyDir" e2e tests failures caused by #https://github.com/kubernetes/kubernetes/pull/24901

As mentioned in https://github.com/kubernetes/kubernetes/pull/24901#discussion_r61372312
We should apply the selinux context of the rkt data directory (/var/lib/rkt) when users do not specify all the selinux options.

Due to my fault, the change was missed during rebase, thus caused the regression.

After applying this PR, the e2e tests passed.
```
$ go run hack/e2e.go -v -test --test_args="--ginkgo.dryRun=false --ginkgo.focus=EmptyDir"
...
Ran 19 of 313 Specs in 199.319 seconds
SUCCESS! -- 19 Passed | 0 Failed | 0 Pending | 294 Skipped PASS
```

BTW, the test is removed because the `--no-overlay=true` flag will only be there on non-coreos distro.

cc @euank @kubernetes/sig-node
2016-06-09 19:14:08 -07:00
..
bandwidth Update use of Quantity in other classes 2016-05-19 08:41:43 -04:00
cache Add an LRU Expire Cache. 2016-05-16 21:55:13 -07:00
chmod FSGroup implementation 2015-10-22 16:40:59 -04:00
chown FSGroup implementation 2015-10-22 16:40:59 -04:00
codeinspector Implement checking in predicates 2016-02-25 21:25:36 +08:00
config Refactor config map into sub pkg 2016-03-21 14:50:57 +08:00
configz Uncomment the code that cause by #19254 2016-04-25 23:21:31 +08:00
crlf Refactor crlf & crypto 2016-03-21 20:20:05 +08:00
crypto Refactor crlf & crypto 2016-03-21 20:20:05 +08:00
dbus Fixing all the "composite literal uses unkeyed fields" Vet errors. 2016-03-25 15:25:09 -07:00
deployment Avoid comparing pod-template-hash when getting a deployment's new/old RSes 2016-06-06 17:09:35 -07:00
diff Add a reflection based object diff with structured format 2016-05-28 08:52:07 -04:00
env Refactor env into sub pkg 2016-03-11 13:52:45 +08:00
errors Address comments 2016-03-03 15:56:09 -08:00
exec Improve error reporting a little in ingress e2e. 2016-01-06 15:25:04 -08:00
flag Merge pull request #22939 from resouer/util-sub-dir 2016-03-23 03:34:33 -07:00
flock kubelet: add a pidfile 2016-02-10 11:38:50 -08:00
flowcontrol Final vet fixes; enabling vet checks in verify scripts. 2016-04-13 13:51:51 -07:00
flushwriter Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
framer Framer does not need to allocate a slice for each execution 2016-05-21 23:55:40 -04:00
goroutinemap Merge pull request #25400 from jsafrane/devel/operation-error 2016-06-09 03:28:16 -07:00
hash Use hashutil to hold hash tools 2016-01-06 22:28:58 +08:00
homedir Use correct home directory on Windows 2016-02-19 01:41:42 -02:00
httpstream Fixes panic on round tripper when TLS under a proxy 2016-05-16 17:56:23 -03:00
integer create some integer min/max function 2016-02-12 11:20:11 +08:00
interrupt make interrupt default exit with rc=1 and handle SIGHUP 2016-05-02 09:59:27 -04:00
intstr Remove unused deep_copies 2016-06-06 17:18:22 -04:00
io Remove all instances of "/tmp" from unit tests and replace with a common 2016-01-27 16:11:22 -08:00
iptables add hostport support for kubenet 2016-05-22 22:18:58 -07:00
json Preserve int64 data when patching 2016-04-11 16:23:28 -04:00
jsonpath Fix jsonpath to handle maps with key of nonstring types 2016-03-22 17:32:40 -04:00
keymutex Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
labels Improve go report card by fixing typos in comments 2016-03-04 18:30:59 -08:00
limitwriter Support extended pod logging options 2015-09-21 15:39:32 -04:00
metrics Generated clients can return their RESTClients, RESTClient can return its RateLimiter 2016-04-27 22:15:10 +02:00
mount fix cinder volume dir umount issue #24717 2016-04-29 00:50:33 +08:00
net Update client connections to try to use http2, except attach, exec, and 2016-05-27 15:08:42 -05:00
node run gofmt on everything we touched 2015-08-05 17:52:56 -07:00
oom OOM Score adjusting logic in kubelet should handle containers that exit quickly. 2016-04-11 11:21:48 -07:00
parsers Cleanup the code with new engine-api 2016-04-29 13:34:38 -07:00
pod Generate the typed clients under the clientset folder 2016-03-31 15:28:45 -07:00
procfs OOM Score adjusting logic in kubelet should handle containers that exit quickly. 2016-04-11 11:21:48 -07:00
proxy Uncomment the code that cause by #19254 2016-04-25 23:21:31 +08:00
rand Add test for image in node status 2016-05-16 15:58:12 -04:00
replicaset Generate the typed clients under the clientset folder 2016-03-31 15:28:45 -07:00
runtime tolerate nil error in HandleError 2016-05-11 09:06:53 -04:00
selinux rkt: Fix incomplete selinux context string when the option is partial. 2016-06-07 14:43:35 -07:00
sets Remove unused deep_copies 2016-06-06 17:18:22 -04:00
slice Sort revisions in rollout history as integers 2016-05-24 10:04:05 +02:00
strategicpatch fix strategy patch diff list issue 2016-05-27 08:42:33 -04:00
strings Add strings pkg to hold strings utils 2016-01-15 12:37:50 +08:00
sysctl Refactor an interface for style 2015-11-13 15:56:27 -08:00
system Move isMasterNode function to api/helpers 2016-03-01 12:12:38 +01:00
term Improve terminal reuse and attach 2016-03-21 23:59:58 -04:00
testing Use NegotiatedSerializer in client 2016-05-04 10:57:36 +02:00
threading Refector deadlock into detector pkg 2016-03-21 20:20:05 +08:00
validation Make IsDNS952Label return error strings 2016-05-19 08:57:49 -07:00
wait routecontroller: Add wait.NonSlidingUntil, use it 2016-05-25 13:58:35 -07:00
workqueue add logging for flake 2016-06-02 07:44:17 -04:00
wsstream Uncomment the code that cause by #19254 2016-04-25 23:21:31 +08:00
yaml Display line number on JSON errors 2016-05-06 13:10:47 +02:00
clock.go fake util.clock tick 2016-04-07 15:10:50 -04:00
clock_test.go fake util.clock tick 2016-04-07 15:10:50 -04:00
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
line_delimiter.go Fix up alignment of columns w/ namespaces. 2015-07-09 08:59:32 -07:00
line_delimiter_test.go Vet fixes, mostly pass lock by value errors. 2016-04-06 11:27:40 -07:00
logs.go Move Until, Forever, NeverStop, ForeverTestTimeout from util to wait 2016-02-07 11:38:48 +01:00
resource_container_linux.go Ensure kubelet pid is not moved to system container 2016-01-29 09:30:20 +00:00
resource_container_unsupported.go flag controlled RLIMIT_NOFILE for kubelet. 2015-09-22 15:18:34 -07:00
runner.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
runner_test.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
string_flag.go Replace the auth config file with a kubeconfig file when 2015-05-13 01:03:28 -07:00
template.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
template_test.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
trace.go Trace.Step() performs an unnecessary ref 2016-05-06 11:42:35 -04:00
umask.go util: Add util.Umask wrapper 2015-08-06 11:39:29 +02:00
umask_windows.go util: Add util.Umask wrapper 2015-08-06 11:39:29 +02:00
util.go Fix the rest of the code 2016-04-29 17:12:10 -04:00
util_test.go Refactor diff into sub pkg 2016-03-21 20:21:39 +08:00
uuid.go Speed up UUID generation. 2016-01-27 15:39:23 +01:00