Commit 3d2e188
cri: Use the runtimeHandler parameter in PullImage
The runtimeHandler parameter was added to PullImage() but never used.
Instead, the code relied on an experimental annotation
(io.containerd.cri.runtime-handler) passed in the pod sandbox config.
This annotation was a workaround because CRI's PullImageRequest didn't
include the runtime handler. However, since cri-api v0.29.0, the runtime
handler is available in the API and passed as a parameter to PullImage().
For backward compatibility with CRI clients that don't yet pass the
runtime handler parameter, we fall back to the annotation if the
parameter is empty. The annotation-based fallback is deprecated and
will be removed in containerd 2.5.
Signed-off-by: Wedson Almeida Filho <[email protected]>
Signed-off-by: Fabiano Fidêncio <[email protected]>1 parent fb33d37 commit 3d2e188
3 files changed
Lines changed: 62 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
824 | | - | |
825 | | - | |
826 | | - | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
827 | 835 | | |
828 | 836 | | |
829 | | - | |
| 837 | + | |
830 | 838 | | |
831 | | - | |
| 839 | + | |
832 | 840 | | |
833 | 841 | | |
834 | 842 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
840 | 857 | | |
841 | 858 | | |
842 | | - | |
843 | 859 | | |
844 | 860 | | |
845 | 861 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
| 390 | + | |
389 | 391 | | |
390 | 392 | | |
391 | 393 | | |
392 | | - | |
| 394 | + | |
393 | 395 | | |
| 396 | + | |
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
397 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
398 | 413 | | |
399 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
400 | 417 | | |
401 | | - | |
| 418 | + | |
| 419 | + | |
402 | 420 | | |
403 | 421 | | |
404 | | - | |
| 422 | + | |
405 | 423 | | |
406 | 424 | | |
407 | 425 | | |
408 | 426 | | |
409 | 427 | | |
410 | | - | |
| 428 | + | |
| 429 | + | |
411 | 430 | | |
412 | 431 | | |
413 | | - | |
| 432 | + | |
414 | 433 | | |
415 | 434 | | |
416 | | - | |
| 435 | + | |
417 | 436 | | |
418 | 437 | | |
419 | | - | |
| 438 | + | |
| 439 | + | |
420 | 440 | | |
421 | 441 | | |
422 | 442 | | |
| |||
428 | 448 | | |
429 | 449 | | |
430 | 450 | | |
431 | | - | |
| 451 | + | |
432 | 452 | | |
433 | 453 | | |
434 | 454 | | |
| |||
0 commit comments