MCPcopy
hub / github.com/containerd/containerd / pullImagesByCRI

Function pullImagesByCRI

integration/release_upgrade_linux_test.go:816–826  ·  view source on GitHub ↗

pullImagesByCRI pulls images by CRI.

(t *testing.T, svc *remote.ImageService, images ...string)

Source from the content-addressed store, hash-verified

814
815// pullImagesByCRI pulls images by CRI.
816func pullImagesByCRI(t *testing.T, svc *remote.ImageService, images ...string) []string {
817 expectedRefs := make([]string, 0, len(images))
818
819 for _, image := range images {
820 t.Logf("Pulling image %q", image)
821 imgRef, err := svc.PullImage(&criruntime.ImageSpec{Image: image}, nil, nil, "")
822 require.NoError(t, err)
823 expectedRefs = append(expectedRefs, imgRef)
824 }
825 return expectedRefs
826}
827
828// cleanupPods deletes all the pods based on the CRI runtime connection.
829func cleanupPods(t *testing.T, criRuntimeService *remote.RuntimeService) {

Calls 1

PullImageMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…