Merge pull request #99929 from lala123912/lint_clean

Remove unused/dead code
This commit is contained in:
Kubernetes Prow Robot 2021-04-08 16:00:34 -07:00 committed by GitHub
commit bb0906dcb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 7 deletions

View File

@ -77,7 +77,6 @@ const (
volPrefix = "vol_"
dynamicEpSvcPrefix = "glusterfs-dynamic"
replicaCount = 3
durabilityType = "replicate"
secretKeyName = "key" // key name used in secret
gciLinuxGlusterMountBinaryPath = "/sbin/mount.glusterfs"
defaultGidMin = 2000

View File

@ -30,10 +30,8 @@ import (
)
const (
losetupPath = "losetup"
statPath = "stat"
ErrDeviceNotFound = "device not found"
ErrDeviceNotSupported = "device not supported"
losetupPath = "losetup"
ErrDeviceNotFound = "device not found"
)
// BlockVolumePathHandler defines a set of operations for handling block volume-related operations

View File

@ -36,7 +36,6 @@ import (
)
const (
maxRetries = 10
checkSleepDuration = time.Second
diskByIDPath = "/dev/disk/by-id/"
diskSCSIPrefix = "wwn-0x"

View File

@ -1653,7 +1653,6 @@ func podRunning(ctx context.Context, c clientset.Interface, podName, namespace s
}
const (
podStartTimeout = 5 * time.Minute
poll = 2 * time.Second
pvcAsSourceProtectionFinalizer = "snapshot.storage.kubernetes.io/pvc-as-source-protection"
volumeSnapshotContentFinalizer = "snapshot.storage.kubernetes.io/volumesnapshotcontent-bound-protection"