Skip to content

Commit 811e18f

Browse files
committed
remove last space line
1 parent 561b562 commit 811e18f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

cns/deviceplugin/pluginmanager_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ func TestPluginManagerStartStop(t *testing.T) {
9999
req := &v1beta1.AllocateRequest{
100100
ContainerRequests: []*v1beta1.ContainerAllocateRequest{
101101
{
102-
DevicesIDs: []string{"device-0", "device-1"},
102+
DevicesIds: []string{"device-0", "device-1"},
103103
},
104104
},
105105
}
106106
allocateResp := getAllocateResponse(t, vnetPluginEndpoint, req)
107107

108-
if len(allocateResp.ContainerResponses[0].Envs) != len(req.ContainerRequests[0].DevicesIDs) {
109-
t.Fatalf("expected allocations %v but received allocations %v", len(req.ContainerRequests[0].DevicesIDs), len(allocateResp.ContainerResponses[0].Envs))
108+
if len(allocateResp.ContainerResponses[0].Envs) != len(req.ContainerRequests[0].DevicesIds) {
109+
t.Fatalf("expected allocations %v but received allocations %v", len(req.ContainerRequests[0].DevicesIds), len(allocateResp.ContainerResponses[0].Envs))
110110
}
111111

112112
// call getDevicePluginOptions method
@@ -143,7 +143,7 @@ func TestPluginManagerStartStop(t *testing.T) {
143143

144144
type fakeKubelet struct {
145145
v1beta1.UnimplementedRegistrationServer // Required by newer protoc-gen-go-grpc to satisfy v1beta1.RegistrationServer
146-
146+
147147
vnetPluginRegisterChan chan string
148148
ibPluginRegisterChan chan string
149149
pluginPrefix string

cns/deviceplugin/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ func (s *Server) GetPreferredAllocation(context.Context, *v1beta1.PreferredAlloc
166166

167167
func (s *Server) PreStartContainer(context.Context, *v1beta1.PreStartContainerRequest) (*v1beta1.PreStartContainerResponse, error) {
168168
return &v1beta1.PreStartContainerResponse{}, nil
169-
}
169+
}

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ require (
9999
go.opencensus.io v0.24.0 // indirect
100100
go.uber.org/multierr v1.11.0 // indirect
101101
golang.org/x/crypto v0.42.0
102-
golang.org/x/net v0.44.0
103-
golang.org/x/oauth2 v0.30.0 // indirect
102+
golang.org/x/net v0.45.0
103+
golang.org/x/oauth2 v0.31.0 // indirect
104104
golang.org/x/term v0.35.0 // indirect
105105
golang.org/x/text v0.29.0 // indirect
106106
golang.org/x/time v0.12.0

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,11 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
471471
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
472472
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
473473
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
474-
golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I=
475-
golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY=
474+
golang.org/x/net v0.45.0 h1:RLBg5JKixCy82FtLJpeNlVM0nrSqpCRYzVU1n8kj0tM=
475+
golang.org/x/net v0.45.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY=
476476
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
477-
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
478-
golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU=
477+
golang.org/x/oauth2 v0.31.0 h1:8Fq0yVZLh4j4YA47vHKFTa9Ew5XIrCP8LC6UeNZnLxo=
478+
golang.org/x/oauth2 v0.31.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
479479
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
480480
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
481481
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

0 commit comments

Comments
 (0)