ShuangLu
7 min readMar 27, 2022

--

Important Struct

actualStateOfWorld
attachedVolumes
mountedPods
desiredStateOfWorld
volumeToMount
podToMount
MountedVolume
volumeToMount

Stages

Initialization

Initialization

Run

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

--

--

ShuangLu

Interested in CloudNative | CKA&Azure Associate Admin&ITIL | https://github.com/Shuanglu