k3s/pkg/util
Kubernetes Submit Queue 79ed7064ca Merge pull request #27970 from jingxu97/restartKubelet-6-22
Automatic merge from submit-queue

Add volume reconstruct/cleanup logic in kubelet volume manager

Currently kubelet volume management works on the concept of desired
and actual world of states. The volume manager periodically compares the
two worlds and perform volume mount/unmount and/or attach/detach
operations. When kubelet restarts, the cache of those two worlds are
gone. Although desired world can be recovered through apiserver, actual
world can not be recovered which may cause some volumes cannot be cleaned
up if their information is deleted by apiserver. This change adds the
reconstruction of the actual world by reading the pod directories from
disk. The reconstructed volume information is added to both desired
world and actual world if it cannot be found in either world. The rest
logic would be as same as before, desired world populator may clean up
the volume entry if it is no longer in apiserver, and then volume
manager should invoke unmount to clean it up.

Fixes https://github.com/kubernetes/kubernetes/issues/27653
2016-08-15 13:48:43 -07:00
..
async Rename runnter pkg name 2016-07-29 02:37:00 -04:00
bandwidth Move ExtractPodBandwidthResources test into appropriate package 2016-07-19 14:34:08 -04:00
cache Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
certificates Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
chmod Use Go canonical import paths 2016-07-16 13:48:21 -04:00
chown Use Go canonical import paths 2016-07-16 13:48:21 -04:00
clock Refactor util clock into it's own pkg 2016-07-28 02:29:04 -04:00
codeinspector Check only predicate functions in test 2016-07-08 13:01:41 +02:00
config Use Go canonical import paths 2016-07-16 13:48:21 -04:00
configz Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
crlf Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
crypto Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
dbus Use Go canonical import paths 2016-07-16 13:48:21 -04:00
diff Merge pull request #28441 from smarterclayton/reflect_check 2016-07-05 05:33:28 -07:00
env Increase coverage in pkg/util/env to 100% 2016-07-08 12:35:23 +02:00
errors Use Go canonical import paths 2016-07-16 13:48:21 -04:00
exec pkg/util/exec: don't specify paths for echo 2016-08-08 16:17:25 +03:00
flag Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
flock Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
flowcontrol fix go vet errors 2016-08-10 16:45:41 -07:00
flushwriter Use Go canonical import paths 2016-07-16 13:48:21 -04:00
framer Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
goroutinemap This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
hash Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
homedir Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
httpstream pkg/various: plug leaky time.New{Timer,Ticker}s 2016-07-26 06:20:31 +02:00
integer Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
interrupt Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
intstr Update generated files due to dependency shift. 2016-08-09 10:41:09 -05:00
io Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
iptables Merge pull request #27562 from 7ing/ipt 2016-08-02 08:02:32 -07:00
json Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
jsonpath Use Go canonical import paths 2016-07-16 13:48:21 -04:00
keymutex Run goimports 2016-08-02 15:12:39 +03:00
labels Merge pull request #26688 from asalkeld/more-unittests-util-env 2016-08-03 13:43:28 -07:00
limitwriter Use Go canonical import paths 2016-07-16 13:48:21 -04:00
logs move pkg/util/ files to their own package to reduce client-go dependencies 2016-08-05 23:32:02 -07:00
metrics Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
mount This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
net convert README.md to doc.go 2016-08-03 16:38:29 -07:00
node Remove kubelet dependency on uname 2016-08-03 17:46:02 -04:00
oom Add f.Close() for applyOOMScoreAdj 2016-07-21 13:07:30 -04:00
parsers Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
pod Print/log pointers of structs with %#v instead of %+v 2016-08-01 22:27:56 +02:00
procfs Merge pull request #30087 from dims/remove-pkill-dependency 2016-08-12 18:38:38 -07:00
proxy fix go vet errors 2016-08-10 16:45:41 -07:00
rand Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
replicaset Print/log pointers of structs with %#v instead of %+v 2016-08-01 22:27:56 +02:00
resourcecontainer Update Libcontainer's Cgroup Config: AllowAllDevices to be Nil 2016-08-04 10:05:30 -07:00
rlimit Rename runnter pkg name 2016-07-29 02:37:00 -04:00
runtime Allow mounts to run in parallel for non-attachable 2016-07-19 21:54:26 -07:00
selinux Use Go canonical import paths 2016-07-16 13:48:21 -04:00
sets Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
slice Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
strategicpatch Merge pull request #28204 from thockin/cleanup-third_party 2016-07-07 12:13:14 -07:00
strings Merge pull request #26688 from asalkeld/more-unittests-util-env 2016-08-03 13:43:28 -07:00
sysctl Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
system Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
term Not to use SetWinsize in windows 2016-07-27 17:22:30 -07:00
testing Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
threading Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
uuid Refactor uuid into its own pkg 2016-07-30 00:07:02 -04:00
validation Allow leading * in ingress hostname 2016-08-03 20:16:58 -04:00
wait Fix race condition found in JitterUntil. 2016-07-28 11:41:02 -05:00
workqueue Merge pull request #28387 from caesarxuchao/gc-latency-measure 2016-08-11 02:33:55 -07:00
wsstream Use Go canonical import paths 2016-07-16 13:48:21 -04:00
yaml Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
string_flag.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
template_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
trace.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
umask.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
umask_windows.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
util_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00