Skip to content

Commit

Permalink
feat(supportability): update etcd pagination fetch method
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
  • Loading branch information
Abhinandan-Purkait committed Mar 1, 2024
1 parent 3aa7d1b commit 5c8621c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dependencies/control-plane
Submodule control-plane updated 128 files
5 changes: 4 additions & 1 deletion k8s/supportability/src/collect/persistent_store/etcd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ impl EtcdStore {
let mut first = true;
let mut dump;
loop {
dump = self.etcd.get_values_paged(prefix, ETCD_PAGED_LIMIT).await?;
dump = self
.etcd
.get_values_paged_all(prefix, ETCD_PAGED_LIMIT)
.await?;
if !first && dump.get(0).is_some() {
dump.remove(0);
}
Expand Down

0 comments on commit 5c8621c

Please sign in to comment.