From da15570daa2f6d7c9ad8d4a786bc88ce2999f685 Mon Sep 17 00:00:00 2001 From: yuxiaobo Date: Mon, 13 Jan 2020 18:20:23 +0800 Subject: [PATCH] fix staticcheck:pkg/volume/cinder Signed-off-by: yuxiaobo --- hack/.staticcheck_failures | 1 - pkg/volume/cinder/cinder.go | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/hack/.staticcheck_failures b/hack/.staticcheck_failures index c78b6b0ce00..5fb3a0586d3 100644 --- a/hack/.staticcheck_failures +++ b/hack/.staticcheck_failures @@ -28,7 +28,6 @@ pkg/volume pkg/volume/awsebs pkg/volume/azure_dd pkg/volume/azure_file -pkg/volume/cinder pkg/volume/csi pkg/volume/emptydir pkg/volume/fc diff --git a/pkg/volume/cinder/cinder.go b/pkg/volume/cinder/cinder.go index d09baeb0caa..e8192ef768c 100644 --- a/pkg/volume/cinder/cinder.go +++ b/pkg/volume/cinder/cinder.go @@ -362,15 +362,11 @@ type cinderVolume struct { pdName string // Filesystem type, optional. fsType string - // Specifies whether the disk will be attached as read-only. - readOnly bool // Utility interface that provides API calls to the provider to attach/detach disks. manager cdManager // Mounter interface that provides system calls to mount the global path to the pod local path. mounter mount.Interface - // diskMounter provides the interface that is used to mount the actual block device. - blockDeviceMounter mount.Interface - plugin *cinderPlugin + plugin *cinderPlugin volume.MetricsProvider }