Skip to content

Commit da15570

Browse files
committed
fix staticcheck:pkg/volume/cinder
Signed-off-by: yuxiaobo <[email protected]>
1 parent 36e40fb commit da15570

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pkg/volume
2828
pkg/volume/awsebs
2929
pkg/volume/azure_dd
3030
pkg/volume/azure_file
31-
pkg/volume/cinder
3231
pkg/volume/csi
3332
pkg/volume/emptydir
3433
pkg/volume/fc

pkg/volume/cinder/cinder.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,15 +362,11 @@ type cinderVolume struct {
362362
pdName string
363363
// Filesystem type, optional.
364364
fsType string
365-
// Specifies whether the disk will be attached as read-only.
366-
readOnly bool
367365
// Utility interface that provides API calls to the provider to attach/detach disks.
368366
manager cdManager
369367
// Mounter interface that provides system calls to mount the global path to the pod local path.
370368
mounter mount.Interface
371-
// diskMounter provides the interface that is used to mount the actual block device.
372-
blockDeviceMounter mount.Interface
373-
plugin *cinderPlugin
369+
plugin *cinderPlugin
374370
volume.MetricsProvider
375371
}
376372

0 commit comments

Comments
 (0)