Skip to content

Commit

Permalink
test: test
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
  • Loading branch information
tiagolobocastro committed Mar 4, 2024
1 parent c307925 commit 4a4b79f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions control-plane/csi-driver/src/bin/controller/pvwatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl PvGarbageCollector {
gc_uids.push(volume_uid);
}
}
tokio::time::sleep(std::time::Duration::from_secs(60)).await;
tokio::time::sleep(std::time::Duration::from_secs(2)).await;
for volume_uid in gc_uids {
if self.is_vol_orphan(volume_uid, &pvcs).await {
self.delete_volume(volume_uid).await;
Expand Down Expand Up @@ -155,7 +155,7 @@ impl PvGarbageCollector {
volume_ids
}
async fn collect_pvc_ids(&self) -> Option<Vec<String>> {
let max_entries = 500i32;
let max_entries = 2i32;
let mut pvc_ids = Vec::with_capacity(max_entries as usize);
let mut params = ListParams::default().limit(max_entries as u32);

Expand Down

0 comments on commit 4a4b79f

Please sign in to comment.