Skip to content

Commit 3d8317a

Browse files
authored
Merge pull request kubernetes#87139 from yuxiaobo96/k8s-staticcheck2
fix staticcheck:pkg/volume/cinder
2 parents 08dd4f5 + da15570 commit 3d8317a

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
@@ -25,7 +25,6 @@ pkg/volume
2525
pkg/volume/awsebs
2626
pkg/volume/azure_dd
2727
pkg/volume/azure_file
28-
pkg/volume/cinder
2928
pkg/volume/csi
3029
pkg/volume/fc
3130
pkg/volume/flexvolume

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)