feat: enable cri remote client to call with grpc calloptions

Signed-off-by: haoyun <yun.hao@daocloud.io>
This commit is contained in:
haoyun
2021-09-30 23:02:53 +08:00
parent 0f27a423ef
commit d16942cf16
4 changed files with 85 additions and 82 deletions

View File

@@ -84,7 +84,7 @@ func ConnectDaemons() error {
}
// Since CRI grpc client doesn't have `WithBlock` specified, we
// need to check whether it is actually connected.
// TODO(random-liu): Extend cri remote client to accept extra grpc options.
// TODO(#6069) Use grpc options to block on connect and remove for this list containers request.
_, err = runtimeService.ListContainers(&runtime.ContainerFilter{})
if err != nil {
return errors.Wrap(err, "failed to list containers")