- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for GetImageRef (0.16 sec)
-
pkg/kubelet/images/image_manager_test.go
expected: []pullerExpects{ {[]string{"GetImageRef", "PullImage"}, ErrImagePull, true, false}, {[]string{"GetImageRef", "PullImage"}, ErrImagePull, true, false}, {[]string{"GetImageRef"}, ErrImagePullBackOff, false, false}, {[]string{"GetImageRef", "PullImage"}, ErrImagePull, true, false}, {[]string{"GetImageRef"}, ErrImagePullBackOff, false, false}, {[]string{"GetImageRef"}, ErrImagePullBackOff, false, false}, }},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 19K bytes - Viewed (0) -
pkg/kubelet/container/testing/runtime_mock.go
} // GetImageRef mocks base method. func (m *MockRuntime) GetImageRef(ctx context.Context, image container.ImageSpec) (string, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetImageRef", ctx, image) ret0, _ := ret[0].(string) ret1, _ := ret[1].(error) return ret0, ret1 } // GetImageRef indicates an expected call of GetImageRef.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 27K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_image_test.go
_, fakeImageService, fakeManager, err := createTestRuntimeManager() assert.NoError(t, err) image := "busybox" fakeImageService.SetFakeImages([]string{image}) imageRef, err := fakeManager.GetImageRef(ctx, kubecontainer.ImageSpec{Image: image}) assert.NoError(t, err) assert.Equal(t, image, imageRef) } func TestImageSize(t *testing.T) { ctx := context.Background()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_image.go
} pullErrs = append(pullErrs, err) } return "", utilerrors.NewAggregate(pullErrs) } // GetImageRef gets the ID of the image which has already been in // the local storage. It returns ("", nil) if the image isn't in the local storage. func (m *kubeGenericRuntimeManager) GetImageRef(ctx context.Context, image kubecontainer.ImageSpec) (string, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 08 00:30:31 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/kubelet/container/testing/fake_runtime.go
select { case f.imagePullTokenBucket <- true: default: } } } } func (f *FakeRuntime) GetImageRef(_ context.Context, image kubecontainer.ImageSpec) (string, error) { f.Lock() defer f.Unlock() f.CalledFunctions = append(f.CalledFunctions, "GetImageRef") for _, i := range f.ImageList { if i.ID == image.Image { return i.ID, nil } } return "", f.InspectErr }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 14 00:23:50 UTC 2024 - 13.9K bytes - Viewed (0) -
pkg/kubelet/images/image_manager.go
Value: v, }) } spec := kubecontainer.ImageSpec{ Image: image, Annotations: podAnnotations, RuntimeHandler: podRuntimeHandler, } imageRef, err := m.imageService.GetImageRef(ctx, spec) if err != nil { msg := fmt.Sprintf("Failed to inspect image %q: %v", container.Image, err) m.logIt(ref, v1.EventTypeWarning, events.FailedToInspectImage, logPrefix, msg, klog.Warning)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 08 00:30:31 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/kubelet/container/runtime.go
PullImage(ctx context.Context, image ImageSpec, pullSecrets []v1.Secret, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error) // GetImageRef gets the reference (digest or ID) of the image which has already been in // the local storage. It returns ("", nil) if the image isn't in the local storage. GetImageRef(ctx context.Context, image ImageSpec) (string, error) // ListImages gets all images currently on the machine.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 27.8K bytes - Viewed (0)