Remove useless get volume stat field

This commit is contained in:
mowangdk 2024-07-18 12:08:43 +08:00
parent d87d2977f7
commit 7111e41951
3 changed files with 0 additions and 5 deletions

View File

@ -93,7 +93,6 @@ var _ = utils.SIGDescribe("CSI Mock Node Volume Health", feature.CSIVolumeHealth
for _, t := range tests {
test := t
ginkgo.It(test.name, func(ctx context.Context) {
// Hooks appear to be required for enableNodeVolumeStat.
m.init(ctx, testParameters{
registerDriver: true,
enableNodeVolumeCondition: test.nodeVolumeConditionRequired,

View File

@ -55,7 +55,6 @@ type Config struct {
DriverName string
AttachLimit int64
NodeExpansionRequired bool
NodeVolumeStatRequired bool
NodeVolumeConditionRequired bool
VolumeMountGroupRequired bool
DisableControllerExpansion bool

View File

@ -306,7 +306,6 @@ type mockCSIDriver struct {
requiresRepublish *bool
fsGroupPolicy *storagev1.FSGroupPolicy
enableVolumeMountGroup bool
enableNodeVolumeStat bool
enableNodeVolumeCondition bool
embedded bool
calls MockCSICalls
@ -356,7 +355,6 @@ type CSIMockDriverOpts struct {
EnableNodeExpansion bool
EnableSnapshot bool
EnableVolumeMountGroup bool
EnableNodeVolumeStat bool
EnableNodeVolumeCondition bool
TokenRequests []storagev1.TokenRequest
RequiresRepublish *bool
@ -589,7 +587,6 @@ func (m *mockCSIDriver) PrepareTest(ctx context.Context, f *framework.Framework)
DriverName: "csi-mock-" + f.UniqueName,
AttachLimit: int64(m.attachLimit),
NodeExpansionRequired: m.enableNodeExpansion,
NodeVolumeStatRequired: m.enableNodeVolumeStat,
NodeVolumeConditionRequired: m.enableNodeVolumeCondition,
VolumeMountGroupRequired: m.enableVolumeMountGroup,
EnableTopology: m.enableTopology,