vendor containerd (#2135)

For containerd/containerd#2135

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2018-05-31 16:30:11 +09:00
parent 0a5c05bcd4
commit 097249054d
100 changed files with 11740 additions and 5166 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package client
import (
"context"
"time"
"github.com/pkg/errors"
@@ -33,11 +34,11 @@ func NewCRIPluginClient(endpoint string, timeout time.Duration) (api.CRIPluginSe
if err != nil {
return nil, errors.Wrap(err, "failed to get dialer")
}
conn, err := grpc.Dial(addr,
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
conn, err := grpc.DialContext(ctx, addr,
grpc.WithBlock(),
grpc.WithInsecure(),
// TODO(random-liu): WithTimeout is being deprecated, use context instead.
grpc.WithTimeout(timeout),
grpc.WithDialer(dialer),
)
if err != nil {