Skip to content

Commit a835101

Browse files
committed
cri: UpdatePodSandbox should return Unimplemented
errgrpc will correctly translate ErrNotImplemented to GRPC's Unimplemented, but a plain error will be returned directly. Signed-off-by: Samuel Karp <[email protected]>
1 parent 6675140 commit a835101

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/cri/instrument/instrumented_service.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package instrument
1818

1919
import (
2020
"context"
21-
"errors"
2221

2322
"github.com/containerd/errdefs"
2423
"github.com/containerd/errdefs/pkg/errgrpc"
@@ -664,5 +663,5 @@ func (in *instrumentedService) RuntimeConfig(ctx context.Context, r *runtime.Run
664663
}
665664

666665
func (in *instrumentedService) UpdatePodSandboxResources(ctx context.Context, r *runtime.UpdatePodSandboxResourcesRequest) (res *runtime.UpdatePodSandboxResourcesResponse, err error) {
667-
return nil, errors.New("not implemented yet")
666+
return nil, errgrpc.ToGRPC(errdefs.ErrNotImplemented)
668667
}

0 commit comments

Comments
 (0)