- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ImageExists (0.18 sec)
-
cmd/kubeadm/app/util/runtime/runtime.go
}() } for i := 0; i < len(images); i++ { if err := <-errChan; err != nil { errs = append(errs, err) } } return errs } // ImageExists checks to see if the image exists on the system func (runtime *CRIRuntime) ImageExists(image string) bool { ctx, cancel := defaultContext() defer cancel() _, err := runtime.impl.ImageStatus(ctx, runtime.imageService, &runtimeapi.ImageSpec{Image: image}, false)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 06:33:22 UTC 2024 - 8.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/runtime/runtime_test.go
containerRuntime := NewContainerRuntime("") mock := &fakeImpl{} if tc.prepare != nil { tc.prepare(mock) } containerRuntime.SetImpl(mock) exists := containerRuntime.ImageExists("") assert.Equal(t, tc.expected, exists) }) } } func TestIsExistingSocket(t *testing.T) { // this test is not expected to work on Windows if runtime.GOOS == "windows" { return
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 06:33:22 UTC 2024 - 11.1K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks.go
} return warnings, errorList } // Perform serial pulls. for _, image := range ipc.imageList { switch policy { case v1.PullIfNotPresent: if ipc.runtime.ImageExists(image) { klog.V(1).Infof("image exists: %s", image) continue } if err != nil { errorList = append(errorList, errors.Wrapf(err, "failed to check if image %s exists", image)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:20:55 UTC 2024 - 39.5K bytes - Viewed (0)