Add support for CRI verbose fields

The remote runtime implementation now supports the `verbose` fields,
which are required for consumers like cri-tools to enable multi CRI
version support.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
Sascha Grunert
2022-02-04 12:34:53 +01:00
parent 56273a6aa3
commit effbcd3a0a
22 changed files with 198 additions and 138 deletions

View File

@@ -38,12 +38,12 @@ func (f *RemoteRuntime) ListImages(ctx context.Context, req *kubeapi.ListImagesR
// present, returns a response with ImageStatusResponse.Image set to
// nil.
func (f *RemoteRuntime) ImageStatus(ctx context.Context, req *kubeapi.ImageStatusRequest) (*kubeapi.ImageStatusResponse, error) {
status, err := f.ImageService.ImageStatus(req.Image)
resp, err := f.ImageService.ImageStatus(req.Image, false)
if err != nil {
return nil, err
}
return &kubeapi.ImageStatusResponse{Image: status}, nil
return resp, nil
}
// PullImage pulls an image with authentication config.