mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Remove the unused variabe: syncDuration in volumemanager
This commit is contained in:
parent
f4d125320e
commit
92aee22646
@ -75,8 +75,6 @@ type Reconciler interface {
|
|||||||
// this node, and therefore the volume manager should not
|
// this node, and therefore the volume manager should not
|
||||||
// loopSleepDuration - the amount of time the reconciler loop sleeps between
|
// loopSleepDuration - the amount of time the reconciler loop sleeps between
|
||||||
// successive executions
|
// successive executions
|
||||||
// syncDuration - the amount of time the syncStates sleeps between
|
|
||||||
// successive executions
|
|
||||||
// waitForAttachTimeout - the amount of time the Mount function will wait for
|
// waitForAttachTimeout - the amount of time the Mount function will wait for
|
||||||
// the volume to be attached
|
// the volume to be attached
|
||||||
// nodeName - the Name for this node, used by Attach and Detach methods
|
// nodeName - the Name for this node, used by Attach and Detach methods
|
||||||
@ -94,7 +92,6 @@ func NewReconciler(
|
|||||||
kubeClient clientset.Interface,
|
kubeClient clientset.Interface,
|
||||||
controllerAttachDetachEnabled bool,
|
controllerAttachDetachEnabled bool,
|
||||||
loopSleepDuration time.Duration,
|
loopSleepDuration time.Duration,
|
||||||
syncDuration time.Duration,
|
|
||||||
waitForAttachTimeout time.Duration,
|
waitForAttachTimeout time.Duration,
|
||||||
nodeName types.NodeName,
|
nodeName types.NodeName,
|
||||||
desiredStateOfWorld cache.DesiredStateOfWorld,
|
desiredStateOfWorld cache.DesiredStateOfWorld,
|
||||||
@ -108,7 +105,6 @@ func NewReconciler(
|
|||||||
kubeClient: kubeClient,
|
kubeClient: kubeClient,
|
||||||
controllerAttachDetachEnabled: controllerAttachDetachEnabled,
|
controllerAttachDetachEnabled: controllerAttachDetachEnabled,
|
||||||
loopSleepDuration: loopSleepDuration,
|
loopSleepDuration: loopSleepDuration,
|
||||||
syncDuration: syncDuration,
|
|
||||||
waitForAttachTimeout: waitForAttachTimeout,
|
waitForAttachTimeout: waitForAttachTimeout,
|
||||||
nodeName: nodeName,
|
nodeName: nodeName,
|
||||||
desiredStateOfWorld: desiredStateOfWorld,
|
desiredStateOfWorld: desiredStateOfWorld,
|
||||||
|
@ -47,7 +47,6 @@ const (
|
|||||||
// reconcilerLoopSleepDuration is the amount of time the reconciler loop
|
// reconcilerLoopSleepDuration is the amount of time the reconciler loop
|
||||||
// waits between successive executions
|
// waits between successive executions
|
||||||
reconcilerLoopSleepDuration time.Duration = 1 * time.Nanosecond
|
reconcilerLoopSleepDuration time.Duration = 1 * time.Nanosecond
|
||||||
reconcilerSyncStatesSleepPeriod time.Duration = 10 * time.Minute
|
|
||||||
// waitForAttachTimeout is the maximum amount of time a
|
// waitForAttachTimeout is the maximum amount of time a
|
||||||
// operationexecutor.Mount call will wait for a volume to be attached.
|
// operationexecutor.Mount call will wait for a volume to be attached.
|
||||||
waitForAttachTimeout time.Duration = 1 * time.Second
|
waitForAttachTimeout time.Duration = 1 * time.Second
|
||||||
@ -78,7 +77,6 @@ func Test_Run_Positive_DoNothing(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
false, /* controllerAttachDetachEnabled */
|
false, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -122,7 +120,6 @@ func Test_Run_Positive_VolumeAttachAndMount(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
false, /* controllerAttachDetachEnabled */
|
false, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -200,7 +197,6 @@ func Test_Run_Positive_VolumeMountControllerAttachEnabled(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
true, /* controllerAttachDetachEnabled */
|
true, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -279,7 +275,6 @@ func Test_Run_Positive_VolumeAttachMountUnmountDetach(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
false, /* controllerAttachDetachEnabled */
|
false, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -369,7 +364,6 @@ func Test_Run_Positive_VolumeUnmountControllerAttachEnabled(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
true, /* controllerAttachDetachEnabled */
|
true, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -460,7 +454,6 @@ func Test_Run_Positive_VolumeAttachAndMap(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
false, /* controllerAttachDetachEnabled */
|
false, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -545,7 +538,6 @@ func Test_Run_Positive_BlockVolumeMapControllerAttachEnabled(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
true, /* controllerAttachDetachEnabled */
|
true, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -631,7 +623,6 @@ func Test_Run_Positive_BlockVolumeAttachMapUnmapDetach(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
false, /* controllerAttachDetachEnabled */
|
false, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -727,7 +718,6 @@ func Test_Run_Positive_VolumeUnmapControllerAttachEnabled(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
true, /* controllerAttachDetachEnabled */
|
true, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -1007,7 +997,6 @@ func Test_Run_Positive_VolumeFSResizeControllerAttachEnabled(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
true, /* controllerAttachDetachEnabled */
|
true, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
@ -1185,7 +1174,6 @@ func Test_Run_Positive_VolumeMountControllerAttachEnabledRace(t *testing.T) {
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
true, /* controllerAttachDetachEnabled */
|
true, /* controllerAttachDetachEnabled */
|
||||||
reconcilerLoopSleepDuration,
|
reconcilerLoopSleepDuration,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
dsw,
|
dsw,
|
||||||
|
@ -52,10 +52,6 @@ const (
|
|||||||
// between successive executions
|
// between successive executions
|
||||||
reconcilerLoopSleepPeriod = 100 * time.Millisecond
|
reconcilerLoopSleepPeriod = 100 * time.Millisecond
|
||||||
|
|
||||||
// reconcilerSyncStatesSleepPeriod is the amount of time the reconciler reconstruct process
|
|
||||||
// waits between successive executions
|
|
||||||
reconcilerSyncStatesSleepPeriod = 3 * time.Minute
|
|
||||||
|
|
||||||
// desiredStateOfWorldPopulatorLoopSleepPeriod is the amount of time the
|
// desiredStateOfWorldPopulatorLoopSleepPeriod is the amount of time the
|
||||||
// DesiredStateOfWorldPopulator loop waits between successive executions
|
// DesiredStateOfWorldPopulator loop waits between successive executions
|
||||||
desiredStateOfWorldPopulatorLoopSleepPeriod = 100 * time.Millisecond
|
desiredStateOfWorldPopulatorLoopSleepPeriod = 100 * time.Millisecond
|
||||||
@ -187,7 +183,6 @@ func NewVolumeManager(
|
|||||||
kubeClient,
|
kubeClient,
|
||||||
controllerAttachDetachEnabled,
|
controllerAttachDetachEnabled,
|
||||||
reconcilerLoopSleepPeriod,
|
reconcilerLoopSleepPeriod,
|
||||||
reconcilerSyncStatesSleepPeriod,
|
|
||||||
waitForAttachTimeout,
|
waitForAttachTimeout,
|
||||||
nodeName,
|
nodeName,
|
||||||
vm.desiredStateOfWorld,
|
vm.desiredStateOfWorld,
|
||||||
|
Loading…
Reference in New Issue
Block a user