Skip to content

Commit 72f34b8

Browse files
committed
staticcheck: pkg/volume/fc, pkg/volume/portworx and pkg/volume/vsphere_volume
Signed-off-by: yuxiaobo <[email protected]>
1 parent 3d8317a commit 72f34b8

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

hack/.staticcheck_failures

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ pkg/volume/awsebs
2626
pkg/volume/azure_dd
2727
pkg/volume/azure_file
2828
pkg/volume/csi
29-
pkg/volume/fc
3029
pkg/volume/flexvolume
3130
pkg/volume/flocker
3231
pkg/volume/iscsi
3332
pkg/volume/local
34-
pkg/volume/portworx
3533
pkg/volume/quobyte
3634
pkg/volume/rbd
3735
pkg/volume/scaleio
@@ -41,7 +39,6 @@ pkg/volume/util/fsquota
4139
pkg/volume/util/fsquota/common
4240
pkg/volume/util/operationexecutor
4341
pkg/volume/util/subpath
44-
pkg/volume/vsphere_volume
4542
test/e2e/apps
4643
test/e2e/autoscaling
4744
test/e2e/instrumentation/logging/stackdriver

pkg/volume/fc/fc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ func (plugin *fcPlugin) ConstructBlockVolumeSpec(podUID types.UID, volumeName, m
312312
type fcDisk struct {
313313
volName string
314314
podUID types.UID
315-
portal string
316315
wwns []string
317316
lun string
318317
wwids []string

pkg/volume/portworx/portworx.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ func (d *portworxVolumeDeleter) Delete() error {
383383

384384
type portworxVolumeProvisioner struct {
385385
*portworxVolume
386-
options volume.VolumeOptions
387-
namespace string
386+
options volume.VolumeOptions
388387
}
389388

390389
var _ volume.Provisioner = &portworxVolumeProvisioner{}

pkg/volume/vsphere_volume/vsphere_volume.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,11 @@ type vsphereVolume struct {
182182
podUID types.UID
183183
// Unique identifier of the volume, used to find the disk resource in the provider.
184184
volPath string
185-
// Filesystem type, optional.
186-
fsType string
187-
//diskID for detach disk
188-
diskID string
189185
// Utility interface that provides API calls to the provider to attach/detach disks.
190186
manager vdManager
191187
// Mounter interface that provides system calls to mount the global path to the pod local path.
192188
mounter mount.Interface
193-
// diskMounter provides the interface that is used to mount the actual block device.
194-
diskMounter mount.Interface
195-
plugin *vsphereVolumePlugin
189+
plugin *vsphereVolumePlugin
196190
volume.MetricsProvider
197191
}
198192

0 commit comments

Comments
 (0)