File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ import (
37
37
"k8s.io/klog"
38
38
)
39
39
40
- const (
41
- defaultFSType = "ext4"
42
- )
43
-
44
40
var (
45
41
controllerServiceNotSupportErr = errors .New ("CSI driver does not support controller service" )
46
42
resizeNotSupportErr = errors .New ("CSI driver neither supports controller resize nor node resize" )
@@ -235,9 +231,6 @@ func GetVolumeCapabilities(pvSpec v1.PersistentVolumeSpec) (*csilib.VolumeCapabi
235
231
236
232
} else {
237
233
fsType := pvSpec .CSI .FSType
238
- if len (fsType ) == 0 {
239
- fsType = defaultFSType
240
- }
241
234
242
235
cap = & csilib.VolumeCapability {
243
236
AccessType : & csilib.VolumeCapability_Mount {
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ func TestResizeMigratedPV(t *testing.T) {
192
192
func TestGetVolumeCapabilities (t * testing.T ) {
193
193
blockVolumeMode := v1 .PersistentVolumeMode (v1 .PersistentVolumeBlock )
194
194
filesystemVolumeMode := v1 .PersistentVolumeMode (v1 .PersistentVolumeFilesystem )
195
+ defaultFSType := ""
195
196
196
197
tests := []struct {
197
198
name string
You can’t perform that action at this time.
0 commit comments