@@ -34,6 +34,7 @@ import (
34
34
35
35
cadvisorapi "github.com/google/cadvisor/info/v1"
36
36
"github.com/google/go-cmp/cmp"
37
+
37
38
v1 "k8s.io/api/core/v1"
38
39
apiequality "k8s.io/apimachinery/pkg/api/equality"
39
40
apierrors "k8s.io/apimachinery/pkg/api/errors"
@@ -291,7 +292,7 @@ func TestUpdateNewNodeStatus(t *testing.T) {
291
292
Architecture : goruntime .GOARCH ,
292
293
ContainerRuntimeVersion : "test://1.5.0" ,
293
294
KubeletVersion : version .Get ().String (),
294
- KubeProxyVersion : "" ,
295
+ KubeProxyVersion : version . Get (). String () ,
295
296
},
296
297
Capacity : v1.ResourceList {
297
298
v1 .ResourceCPU : * resource .NewMilliQuantity (2000 , resource .DecimalSI ),
@@ -471,7 +472,7 @@ func TestUpdateExistingNodeStatus(t *testing.T) {
471
472
Architecture : goruntime .GOARCH ,
472
473
ContainerRuntimeVersion : "test://1.5.0" ,
473
474
KubeletVersion : version .Get ().String (),
474
- KubeProxyVersion : "" ,
475
+ KubeProxyVersion : version . Get (). String () ,
475
476
},
476
477
Capacity : v1.ResourceList {
477
478
v1 .ResourceCPU : * resource .NewMilliQuantity (2000 , resource .DecimalSI ),
@@ -677,7 +678,7 @@ func TestUpdateNodeStatusWithRuntimeStateError(t *testing.T) {
677
678
Architecture : goruntime .GOARCH ,
678
679
ContainerRuntimeVersion : "test://1.5.0" ,
679
680
KubeletVersion : version .Get ().String (),
680
- KubeProxyVersion : "" ,
681
+ KubeProxyVersion : version . Get (). String () ,
681
682
},
682
683
Capacity : v1.ResourceList {
683
684
v1 .ResourceCPU : * resource .NewMilliQuantity (2000 , resource .DecimalSI ),
@@ -908,7 +909,7 @@ func TestUpdateNodeStatusWithLease(t *testing.T) {
908
909
Architecture : goruntime .GOARCH ,
909
910
ContainerRuntimeVersion : "test://1.5.0" ,
910
911
KubeletVersion : version .Get ().String (),
911
- KubeProxyVersion : "" ,
912
+ KubeProxyVersion : version . Get (). String () ,
912
913
},
913
914
Capacity : v1.ResourceList {
914
915
v1 .ResourceCPU : * resource .NewMilliQuantity (2000 , resource .DecimalSI ),
0 commit comments