Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for pullImage (0.17 sec)

  1. pkg/kubelet/images/image_manager_test.go

    			inspectErr: nil,
    			pullerErr:  nil,
    			qps:        0.0,
    			burst:      0,
    			expected: []pullerExpects{
    				{[]string{"GetImageRef", "PullImage", "GetImageSize"}, nil, true, true},
    				{[]string{"GetImageRef", "PullImage", "GetImageSize"}, nil, true, true},
    				{[]string{"GetImageRef", "PullImage", "GetImageSize"}, nil, true, true},
    			}},
    		// missing image, error PullNever
    		{containerImage: "missing_image",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_image_test.go

    	// trying to pull an image with an invalid name should return an error
    	imageRef, err := fakeManager.PullImage(ctx, kubecontainer.ImageSpec{Image: ":invalid"}, nil, nil)
    	assert.Error(t, err)
    	assert.Equal(t, "", imageRef)
    
    	fakeImageService.InjectError("PullImage", fmt.Errorf("test-error"))
    	imageRef, err = fakeManager.PullImage(ctx, kubecontainer.ImageSpec{Image: "busybox"}, nil, nil)
    	assert.Error(t, err)
    	assert.Equal(t, "", imageRef)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. pkg/kubelet/images/puller.go

    }
    
    func (pip *parallelImagePuller) pullImage(ctx context.Context, spec kubecontainer.ImageSpec, pullSecrets []v1.Secret, pullChan chan<- pullResult, podSandboxConfig *runtimeapi.PodSandboxConfig) {
    	go func() {
    		if pip.tokens != nil {
    			pip.tokens <- struct{}{}
    			defer func() { <-pip.tokens }()
    		}
    		startTime := time.Now()
    		imageRef, err := pip.imageService.PullImage(ctx, spec, pullSecrets, podSandboxConfig)
    		var size uint64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 08 00:30:31 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/runtime/impl.go

    	return runtimeService.RemovePodSandbox(ctx, podSandboxID)
    }
    
    func (*defaultImpl) PullImage(ctx context.Context, imageService criapi.ImageManagerService, image *runtimeapi.ImageSpec, auth *runtimeapi.AuthConfig, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error) {
    	return imageService.PullImage(ctx, image, auth, podSandboxConfig)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. pkg/kubelet/container/testing/runtime_mock.go

    }
    
    // PullImage indicates an expected call of PullImage.
    func (mr *MockRuntimeMockRecorder) PullImage(ctx, image, pullSecrets, podSandboxConfig any) *gomock.Call {
    	mr.mock.ctrl.T.Helper()
    	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PullImage", reflect.TypeOf((*MockRuntime)(nil).PullImage), ctx, image, pullSecrets, podSandboxConfig)
    }
    
    // RemoveImage mocks base method.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 27K bytes
    - Viewed (0)
  6. pkg/kubelet/images/helpers.go

    	kubecontainer.ImageService
    	limiter flowcontrol.RateLimiter
    }
    
    func (ts throttledImageService) PullImage(ctx context.Context, image kubecontainer.ImageSpec, secrets []v1.Secret, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error) {
    	if ts.limiter.TryAccept() {
    		return ts.ImageService.PullImage(ctx, image, secrets, podSandboxConfig)
    	}
    	return "", fmt.Errorf("pull QPS exceeded")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/runtime/runtime.go

    		if lastErr != nil {
    			errs = append(errs, lastErr)
    		}
    	}
    	return errorsutil.NewAggregate(errs)
    }
    
    // PullImage pulls the image
    func (runtime *CRIRuntime) PullImage(image string) (err error) {
    	for i := 0; i < constants.PullImageRetry; i++ {
    		if _, err = runtime.impl.PullImage(context.Background(), runtime.imageService, &runtimeapi.ImageSpec{Image: image}, nil, nil); err == nil {
    			return nil
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_image.go

    	"k8s.io/kubernetes/pkg/features"
    	kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
    	"k8s.io/kubernetes/pkg/util/parsers"
    )
    
    // PullImage pulls an image from the network to local storage using the supplied
    // secrets if necessary.
    func (m *kubeGenericRuntimeManager) PullImage(ctx context.Context, image kubecontainer.ImageSpec, pullSecrets []v1.Secret, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error) {
    	img := image.Image
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 08 00:30:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. pkg/kubelet/container/testing/fake_runtime.go

    	f.CalledFunctions = append(f.CalledFunctions, "GetContainerLogs")
    	return f.Err
    }
    
    func (f *FakeRuntime) PullImage(ctx context.Context, image kubecontainer.ImageSpec, pullSecrets []v1.Secret, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error) {
    	f.Lock()
    	f.CalledFunctions = append(f.CalledFunctions, "PullImage")
    	if f.Err == nil {
    		i := kubecontainer.Image{
    			ID:   image.Image,
    			Spec: image,
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/instrumented_services.go

    	return out, err
    }
    
    func (in instrumentedImageManagerService) PullImage(ctx context.Context, image *runtimeapi.ImageSpec, auth *runtimeapi.AuthConfig, podSandboxConfig *runtimeapi.PodSandboxConfig) (string, error) {
    	const operation = "pull_image"
    	defer recordOperation(operation, time.Now())
    
    	imageRef, err := in.service.PullImage(ctx, image, auth, podSandboxConfig)
    	recordError(operation, err)
    	return imageRef, err
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top