k3s/pkg/util
Kubernetes Submit Queue 03360d7b65 Merge pull request #48402 from ianchakeres/local-storage-teardown-fix
Automatic merge from submit-queue

Local storage teardown fix

**What this PR does / why we need it**: Local storage uses bindmounts and the method IsLikelyNotMountPoint does not detect these as mountpoints. Therefore, local PVs are not properly unmounted when they are deleted.

**Which issue this PR fixes**: fixes #48331

**Special notes for your reviewer**:

You can use these e2e tests to reproduce the issue and validate the fix works appropriately https://github.com/kubernetes/kubernetes/pull/47999

The existing method IsLikelyNotMountPoint purposely does not check mountpoints reliability (4c5b22d4c6/pkg/util/mount/mount_linux.go (L161)), since the number of mountpoints can be large. 4c5b22d4c6/pkg/util/mount/mount.go (L46)

This implementation changes the behavior for local storage to detect mountpoints reliably, and avoids changing the behavior for any other callers to a UnmountPath.

**Release note**:

```
Fixes bind-mount teardown failure with non-mount point Local volumes (issue https://github.com/kubernetes/kubernetes/issues/48331).
```
2017-07-11 20:35:29 -07:00
..
async Make BoundedFrequencyRunner Run() really non-blocking 2017-05-25 16:12:16 +02:00
bandwidth IPv6 support for hexCIDR() 2017-05-17 20:35:37 +00:00
config autogenerated 2017-04-14 10:40:57 -07:00
configz Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
dbus autogenerated 2017-04-14 10:40:57 -07:00
ebtables Fix ebtables_test.go to actually get run, and to pass 2017-06-27 09:26:10 -04:00
env fix various bad tests 2017-04-25 11:23:33 -07:00
exec Remove Save() from iptables interface 2017-05-22 13:23:49 +02:00
flock pkg/util/flock: Fix the flock so it actually locks. 2017-03-13 14:24:59 -07:00
goroutinemap Make timeouts in the Kubelet slightly offset to aid debugging 2017-04-28 12:00:28 -04:00
hash Merge pull request #42085 from cblecker/gofmt-fix 2017-04-17 15:39:07 -07:00
i18n Add Traditional Chinese translation for kubectl 2017-06-08 15:24:04 +08: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
io Fix lint errors 2017-06-26 16:05:35 +02:00
ipconfig autogenerated 2017-04-14 10:40:57 -07:00
iptables expose lock release error from iptables util 2017-07-05 14:31:24 -07:00
keymutex autogenerated 2017-04-14 10:40:57 -07:00
labels autogenerated 2017-04-14 10:40:57 -07:00
limitwriter Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
logs autogenerated 2017-04-14 10:40:57 -07:00
maps Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
metrics autogenerated 2017-04-14 10:40:57 -07:00
mount Fixes bind-mount teardown failure with non-mount point Local volumes 2017-07-11 17:19:58 -04:00
net Fix lint errors of pkg/util/net/sets/ipnet.go 2017-07-04 12:04:24 +08:00
netsh autogenerated 2017-04-14 10:40:57 -07:00
node Merge pull request #47242 from k82cn/make_golint_happy 2017-06-26 20:02:40 -07:00
oom autogenerated 2017-04-14 10:40:57 -07:00
parsers autogenerated 2017-04-14 10:40:57 -07:00
procfs Merge pull request #44024 from zhangxiaoyu-zidif/egnew 2017-05-05 23:41:33 -07:00
removeall Fixes bind-mount teardown failure with non-mount point Local volumes 2017-07-11 17:19:58 -04:00
resourcecontainer autogenerated 2017-04-14 10:40:57 -07:00
rlimit Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
selinux autogenerated 2017-04-14 10:40:57 -07:00
slice split util/slice 2017-06-30 23:04:18 -07:00
strings Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
sysctl Consolidate sysctl commands for kubelet 2017-05-02 12:15:01 -07:00
system run hack/update-all 2017-06-22 11:31:03 -07:00
tail Limit the size of the termination log and allow log input 2017-01-23 12:26:38 -05:00
taints run hack/update-all 2017-06-22 11:31:03 -07:00
term fix cross build for windows 2017-07-05 12:42:41 -07:00
threading autogenerated 2017-04-14 10:40:57 -07:00
tolerations Auto-generated stuff. 2017-04-06 16:15:34 -04:00
version Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
workqueue/prometheus autogenerated 2017-04-14 10:40:57 -07:00
BUILD Merge pull request #48410 from xiangpengzhao/remove-empty-util-dir 2017-07-07 23:53:34 -07:00
doc.go
template.go
template_test.go
util.go
util_test.go pkg/util: move CompileRegex helper into apiserver 2017-01-25 17:21:12 +01:00