ShuangLu
7 min readMar 27, 2022

--

Important Struct

actualStateOfWorld
attachedVolumes
mountedPods
desiredStateOfWorld
volumeToMount
podToMount
MountedVolume
volumeToMount

Stages

Initialization
Run
volumePluginMgr.Run
dswp.Run
dswp.findAndAddNewPods
dswp.findAndRemoveDeletedPods
reconciler.Run
reconciler.unmountVolumes
reconcile.mountAttachVolumes

--

--