k3s/pkg/cloudprovider/providers/vsphere
Jing Xu abbde43374 Add sync state loop in master's volume reconciler
At master volume reconciler, the information about which volumes are
attached to nodes is cached in actual state of world. However, this
information might be out of date in case that node is terminated (volume
is detached automatically). In this situation, reconciler assume volume
is still attached and will not issue attach operation when node comes
back. Pods created on those nodes will fail to mount.

This PR adds the logic to periodically sync up the truth for attached volumes kept in the actual state cache. If the volume is no longer attached to the node, the actual state will be updated to reflect the truth. In turn, reconciler will take actions if needed.

To avoid issuing many concurrent operations on cloud provider, this PR
tries to add batch operation to check whether a list of volumes are
attached to the node instead of one request per volume.

More details are explained in PR #33760
2016-10-28 09:24:53 -07:00
..
BUILD fix build 2016-10-26 11:23:19 -07:00
OWNERS update pkg/cloudprovider OWNERS to spread the load 2016-09-08 15:13:21 -07:00
vsphere.go Add sync state loop in master's volume reconciler 2016-10-28 09:24:53 -07:00
vsphere_test.go vSphere cloud provider: re-use session for vCenter logins 2016-10-19 16:54:30 -07:00