Skip to content

Commit 7111e41

Browse files
committed
Remove useless get volume stat field
1 parent d87d297 commit 7111e41

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

test/e2e/storage/csimock/csi_node_volume_health.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth
9393
for _, t := range tests {
9494
test := t
9595
ginkgo.It(test.name, func(ctx context.Context) {
96-
// Hooks appear to be required for enableNodeVolumeStat.
9796
m.init(ctx, testParameters{
9897
registerDriver: true,
9998
enableNodeVolumeCondition: test.nodeVolumeConditionRequired,

test/e2e/storage/drivers/csi-test/mock/service/service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ type Config struct {
5555
DriverName string
5656
AttachLimit int64
5757
NodeExpansionRequired bool
58-
NodeVolumeStatRequired bool
5958
NodeVolumeConditionRequired bool
6059
VolumeMountGroupRequired bool
6160
DisableControllerExpansion bool

test/e2e/storage/drivers/csi.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ type mockCSIDriver struct {
306306
requiresRepublish *bool
307307
fsGroupPolicy *storagev1.FSGroupPolicy
308308
enableVolumeMountGroup bool
309-
enableNodeVolumeStat bool
310309
enableNodeVolumeCondition bool
311310
embedded bool
312311
calls MockCSICalls
@@ -356,7 +355,6 @@ type CSIMockDriverOpts struct {
356355
EnableNodeExpansion bool
357356
EnableSnapshot bool
358357
EnableVolumeMountGroup bool
359-
EnableNodeVolumeStat bool
360358
EnableNodeVolumeCondition bool
361359
TokenRequests []storagev1.TokenRequest
362360
RequiresRepublish *bool
@@ -589,7 +587,6 @@ func (m *mockCSIDriver) PrepareTest(ctx context.Context, f *framework.Framework)
589587
DriverName: "csi-mock-" + f.UniqueName,
590588
AttachLimit: int64(m.attachLimit),
591589
NodeExpansionRequired: m.enableNodeExpansion,
592-
NodeVolumeStatRequired: m.enableNodeVolumeStat,
593590
NodeVolumeConditionRequired: m.enableNodeVolumeCondition,
594591
VolumeMountGroupRequired: m.enableVolumeMountGroup,
595592
EnableTopology: m.enableTopology,

0 commit comments

Comments
 (0)