Skip to content

Commit 21072b8

Browse files
authored
Merge pull request #812 from hj-johannes-lee/update-lint
build(deps): bump google.golang.org/grpc from 1.42.0 to 1.43.0
2 parents 9926e1c + 9a16e80 commit 21072b8

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

cmd/gpu_plugin/rm/gpu_plugin_resource_manager_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func (w *mockPodResources) GetAllocatableResources(ctx context.Context,
8585
}
8686

8787
func newMockResourceManager(pods []v1.Pod) ResourceManager {
88+
//nolint: staticcheck
8889
client, err := grpc.Dial("", grpc.WithInsecure())
8990
if err != nil {
9091
os.Exit(1)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/onsi/gomega v1.17.0
1313
github.com/pkg/errors v0.9.1
1414
golang.org/x/sys v0.0.0-20211205182925-97ca703d548d
15-
google.golang.org/grpc v1.42.0
15+
google.golang.org/grpc v1.43.0
1616
k8s.io/api v0.23.0
1717
k8s.io/apimachinery v0.23.0
1818
k8s.io/client-go v1.5.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,8 @@ google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAG
10841084
google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
10851085
google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
10861086
google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
1087-
google.golang.org/grpc v1.42.0 h1:XT2/MFpuPFsEX2fWh3YQtHkZ+WYZFQRfaUgLZYj/p6A=
1088-
google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
1087+
google.golang.org/grpc v1.43.0 h1:Eeu7bZtDZ2DpRCsLhUlcrLnvYaMK1Gz86a+hMVvELmM=
1088+
google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
10891089
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
10901090
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
10911091
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=

pkg/deviceplugin/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ func watchFile(file string) error {
324324
func (srv *server) registerWithKubelet(kubeletSocket, pluginEndPoint, resourceName string) error {
325325
ctx := context.Background()
326326

327+
//nolint: staticcheck
327328
conn, err := grpc.DialContext(ctx, kubeletSocket, grpc.WithInsecure(),
328329
grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
329330
return (&net.Dialer{}).DialContext(ctx, "unix", addr)
@@ -357,6 +358,7 @@ func waitForServer(socket string, timeout time.Duration) error {
357358

358359
defer cancel()
359360

361+
//nolint: staticcheck
360362
conn, err := grpc.DialContext(ctx, socket, grpc.WithInsecure(), grpc.WithBlock(),
361363
grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
362364
return (&net.Dialer{}).DialContext(ctx, "unix", addr)

pkg/deviceplugin/server_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ func TestSetupAndServe(t *testing.T) {
179179

180180
ctx := context.Background()
181181

182+
//nolint: staticcheck
182183
conn, err := grpc.DialContext(ctx, pluginSocket, grpc.WithInsecure(),
183184
grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
184185
return (&net.Dialer{}).DialContext(ctx, "unix", addr)
@@ -229,6 +230,7 @@ func TestSetupAndServe(t *testing.T) {
229230
time.Sleep(1 * time.Second)
230231
}
231232

233+
//nolint: staticcheck
232234
conn, err = grpc.DialContext(ctx, pluginSocket, grpc.WithInsecure(),
233235
grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
234236
return (&net.Dialer{}).DialContext(ctx, "unix", addr)

0 commit comments

Comments
 (0)