mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #99929 from lala123912/lint_clean
Remove unused/dead code
This commit is contained in:
commit
bb0906dcb2
@ -77,7 +77,6 @@ const (
|
|||||||
volPrefix = "vol_"
|
volPrefix = "vol_"
|
||||||
dynamicEpSvcPrefix = "glusterfs-dynamic"
|
dynamicEpSvcPrefix = "glusterfs-dynamic"
|
||||||
replicaCount = 3
|
replicaCount = 3
|
||||||
durabilityType = "replicate"
|
|
||||||
secretKeyName = "key" // key name used in secret
|
secretKeyName = "key" // key name used in secret
|
||||||
gciLinuxGlusterMountBinaryPath = "/sbin/mount.glusterfs"
|
gciLinuxGlusterMountBinaryPath = "/sbin/mount.glusterfs"
|
||||||
defaultGidMin = 2000
|
defaultGidMin = 2000
|
||||||
|
@ -31,9 +31,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
losetupPath = "losetup"
|
losetupPath = "losetup"
|
||||||
statPath = "stat"
|
|
||||||
ErrDeviceNotFound = "device not found"
|
ErrDeviceNotFound = "device not found"
|
||||||
ErrDeviceNotSupported = "device not supported"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// BlockVolumePathHandler defines a set of operations for handling block volume-related operations
|
// BlockVolumePathHandler defines a set of operations for handling block volume-related operations
|
||||||
|
@ -36,7 +36,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
maxRetries = 10
|
|
||||||
checkSleepDuration = time.Second
|
checkSleepDuration = time.Second
|
||||||
diskByIDPath = "/dev/disk/by-id/"
|
diskByIDPath = "/dev/disk/by-id/"
|
||||||
diskSCSIPrefix = "wwn-0x"
|
diskSCSIPrefix = "wwn-0x"
|
||||||
|
@ -1653,7 +1653,6 @@ func podRunning(ctx context.Context, c clientset.Interface, podName, namespace s
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
podStartTimeout = 5 * time.Minute
|
|
||||||
poll = 2 * time.Second
|
poll = 2 * time.Second
|
||||||
pvcAsSourceProtectionFinalizer = "snapshot.storage.kubernetes.io/pvc-as-source-protection"
|
pvcAsSourceProtectionFinalizer = "snapshot.storage.kubernetes.io/pvc-as-source-protection"
|
||||||
volumeSnapshotContentFinalizer = "snapshot.storage.kubernetes.io/volumesnapshotcontent-bound-protection"
|
volumeSnapshotContentFinalizer = "snapshot.storage.kubernetes.io/volumesnapshotcontent-bound-protection"
|
||||||
|
Loading…
Reference in New Issue
Block a user