Commit fdb30bd
committed
pkg/cli/admin/prune/images: Allow partial image retrieval
When Image counts get absurdly large (hundreds of thousands), pruning
can fail with errors like:
Error from server (Expired): The provided continue parameter is too old to display a consistent list result. You can start a new list without the continue parameter, or use the continue token in this response to retrieve the remainder of the results. Continuing with the provided token results in an inconsistent list - objects that were created, modified, or deleted between the time the first chunk was returned and now may show up in the list.
With this commit, I'm still printing that warning message, but if we
got any Images back before the error, I'm still going to try and prune
those, because maybe some progress in pruning will get the Image count
down low enough that a future invocation will go through cleanly.1 parent beeaf09 commit fdb30bd
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
416 | 417 | | |
417 | 418 | | |
418 | 419 | | |
| |||
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
424 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
425 | 431 | | |
426 | 432 | | |
427 | 433 | | |
| |||
528 | 534 | | |
529 | 535 | | |
530 | 536 | | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
531 | 540 | | |
532 | 541 | | |
533 | 542 | | |
| |||
0 commit comments