k3s/pkg/volume
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
..
aws_ebs This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
azure_file This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
cephfs This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
cinder This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
configmap This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
downwardapi This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
empty_dir This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
fc This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
flexvolume This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
flocker This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
gce_pd This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
git_repo This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
glusterfs Merge pull request #27970 from jingxu97/restartKubelet-6-22 2016-08-15 13:48:43 -07:00
host_path This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
iscsi Merge pull request #27970 from jingxu97/restartKubelet-6-22 2016-08-15 13:48:43 -07:00
nfs This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
rbd This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
secret This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
testing Merge pull request #27970 from jingxu97/restartKubelet-6-22 2016-08-15 13:48:43 -07:00
util Merge pull request #27970 from jingxu97/restartKubelet-6-22 2016-08-15 13:48:43 -07:00
vsphere_volume This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
metrics_cached.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_du.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_du_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_nil.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_nil_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_statfs.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
plugins.go This change supports robust kubelet volume cleanup 2016-08-15 11:29:15 -07:00
plugins_test.go Print/log pointers of structs with %#v instead of %+v 2016-08-01 22:27:56 +02:00
util.go Merge pull request #29619 from dims/fix-issue-23163 2016-08-06 01:44:15 -07:00
util_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
volume.go Fix typos in volume.go 2016-07-11 12:32:32 +02:00
volume_linux.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
volume_unsupported.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00