You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 22, 2024. It is now read-only.
pmem-csi-driver: ListVolumes pagination should reflect intermediate changes
ListVolumes pagination should handle the concurrency cases where volumes
added/deleted while serving.
We keep a array copy of the current volumes at initial ListVolumes call, and
keep update(append) the list with newly added volumes. While preparing the
ListVolumes entry, we check the next array element in the copy is valid, else we
skip that element. At we serve all the elements in the copy then we clear the
copy.
// Code originally copied from https://github.com/kubernetes-csi/csi-test/blob/f14e3d32125274e0c3a3a5df380e1f89ff7c132b/mock/service/controller.go#L309-L365
0 commit comments