Pass runtimehandler from CRI pull image request
Starting with k8s cri-api v0.29.1, CRI supports new runtime handler flag Signed-off-by: Kirtana Ashok <kiashok@microsoft.com>
This commit is contained in:
		| @@ -92,7 +92,7 @@ func testCRIImagePullTimeoutBySlowCommitWriter(t *testing.T) { | ||||
|  | ||||
| 	ctx := namespaces.WithNamespace(logtest.WithT(context.Background(), t), k8sNamespace) | ||||
|  | ||||
| 	_, err = criService.PullImage(ctx, pullProgressTestImageName, nil, nil) | ||||
| 	_, err = criService.PullImage(ctx, pullProgressTestImageName, nil, nil, "") | ||||
| 	assert.NoError(t, err) | ||||
| } | ||||
|  | ||||
| @@ -211,7 +211,7 @@ func testCRIImagePullTimeoutByHoldingContentOpenWriter(t *testing.T) { | ||||
| 	go func() { | ||||
| 		defer close(errCh) | ||||
|  | ||||
| 		_, err := criService.PullImage(ctx, pullProgressTestImageName, nil, nil) | ||||
| 		_, err := criService.PullImage(ctx, pullProgressTestImageName, nil, nil, "") | ||||
| 		errCh <- err | ||||
| 	}() | ||||
|  | ||||
| @@ -294,7 +294,7 @@ func testCRIImagePullTimeoutByNoDataTransferred(t *testing.T) { | ||||
| 		dctx, _, err := cli.WithLease(ctx) | ||||
| 		assert.NoError(t, err) | ||||
|  | ||||
| 		_, err = criService.PullImage(dctx, fmt.Sprintf("%s/%s", mirrorURL.Host, "containerd/volume-ownership:2.1"), nil, nil) | ||||
| 		_, err = criService.PullImage(dctx, fmt.Sprintf("%s/%s", mirrorURL.Host, "containerd/volume-ownership:2.1"), nil, nil, "") | ||||
|  | ||||
| 		assert.Equal(t, context.Canceled, errors.Unwrap(err), "[%v] expected canceled error, but got (%v)", idx, err) | ||||
| 		assert.True(t, mirrorSrv.limiter.clearHitCircuitBreaker(), "[%v] expected to hit circuit breaker", idx) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kirtana Ashok
					Kirtana Ashok