kubernetes/pkg/util
Kubernetes Submit Queue d14854fd5c Merge pull request #37698 from jsafrane/remove-all-filesystems
Automatic merge from submit-queue (batch tested with PRs 41139, 41186, 38882, 37698, 42034)

Make kubelet never delete files on mounted filesystems

With bug #27653, kubelet could remove mounted volumes and delete user data.
The bug itself is fixed, however our trust in kubelet is significantly lower.
Let's add an extra version of RemoveAll that does not cross mount boundary
(rm -rf --one-file-system).

It calls lstat(path) three times for each removed directory - once in
RemoveAllOneFilesystem and twice in IsLikelyNotMountPoint, however this way
it's platform independent and the directory that is being removed by kubelet
should be almost empty.
2017-03-24 12:33:27 -07:00
..
async Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
bandwidth teach kubenet to use annotation instead of pod object for traffic shaper 2017-02-27 10:11:09 -08:00
chmod Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
chown Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
config Update generated files 2017-01-24 20:56:03 +01:00
configz Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
crlf Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
dbus Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
ebtables Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
env Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
errors add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
exec Add support for attacher/detacher interface in Flex volume 2017-02-24 20:18:06 -05:00
flock pkg/util/flock: Fix the flock so it actually locks. 2017-03-13 14:24:59 -07:00
framer add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
goroutinemap OWNERS: Update latest OWNERS files 2017-01-23 10:05:48 -08:00
hash Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
i18n Update extraction script, sort messages, add .pot file. 2017-02-23 18:53:00 +00:00
initsystem Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
interrupt Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
intstr move util/intstr to apimachinery 2017-01-30 12:46:59 -05:00
io Update generated files 2017-01-29 21:41:45 +01:00
ipconfig Fix DNS suffix search list issue for Windows container and workaround in kube-proxy. 2017-02-27 19:25:46 -08:00
iptables pkg/util/iptables missing unit tests 2017-01-20 10:50:45 +01:00
json add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
keymutex Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
labels Create meta/internalversion for ListOptions 2017-01-23 16:53:18 -05:00
limitwriter Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
logs start the apimachinery repo 2017-01-11 09:09:48 -05:00
maps Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
metrics move authoritative client-go utils out of pkg 2017-01-24 08:59:18 -05:00
mount Merge pull request #41944 from jingxu97/Feb/mounter 2017-02-28 09:20:21 -08:00
net add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
netsh cleanup proxier 2017-02-27 16:00:49 -08:00
node Update generated files 2017-01-25 19:49:45 +01:00
oom Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
parsers Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
procfs Fix regex match doc of procfs.PidOf 2017-02-13 23:10:14 +08:00
rand move pkg/util/rand 2017-01-16 16:04:03 -05:00
removeall Make kubelet never delete files on mounted filesystems 2017-02-28 14:32:07 +01:00
resourcecontainer Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
rlimit Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
runtime add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
selinux Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
sets add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
slice move pkg/util/rand 2017-01-16 16:04:03 -05:00
strings Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
sysctl Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
system refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05:00
tail Limit the size of the termination log and allow log input 2017-01-23 12:26:38 -05:00
taints make kubectl respect taint effect NoExecute 2017-02-26 22:41:57 +08:00
term start the apimachinery repo 2017-01-11 09:09:48 -05:00
threading Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
uuid Update generated files 2017-01-25 19:49:45 +01:00
validation add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
version Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
wait add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
workqueue/prometheus move workqueue to client-go 2017-01-30 09:08:21 -05:00
yaml add back just enough empty packages to allow heapster cycles to succeed 2017-01-17 08:07:30 -05:00
BUILD Merge pull request #37698 from jsafrane/remove-all-filesystems 2017-03-24 12:33:27 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
template_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
template.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
umask_windows.go delete ErrorTimeout() function and modify Umask() args 2017-01-12 11:05:30 +08:00
umask.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util_test.go pkg/util: move CompileRegex helper into apiserver 2017-01-25 17:21:12 +01:00
util.go kubelet: storage: don't hang kubelet on unresponsive nfs 2016-10-18 08:45:40 -05:00