-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changes provides the following fixes and improvements to ListSnapshots: - Use paging to collect snapshots beyond the first page. Previously, we would only return snapshots from the first page. - Handle StartingToken and MaxEntries such that we use paging efficiently and skip initial, unneeded snapshots. - Extend fake snapshot driver to support paging. - Add tests. Note that Kubernetes / the csi-snapshotter sidecar currently do not invoke ListSnapshots without the snapshot ID parameter, which means that the fixed code is not executed in production. However, it is used by csi-test / the sanity package, and other COs (Container Orchestrators) may potentially use it as well as Kubernetes going forward.
- Loading branch information
Timo Reimann
committed
Apr 21, 2020
1 parent
0d8f2b5
commit e2bd611
Showing
4 changed files
with
315 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.