Merge pull request #111372 from HeavenTonight/master

code cleanup
This commit is contained in:
Kubernetes Prow Robot
2023-03-10 11:44:40 -08:00
committed by GitHub
5 changed files with 11 additions and 11 deletions

View File

@@ -90,7 +90,7 @@ type TimerConfig struct {
// DefaultTimerConfig is the default configuration of Attach/Detach controller
// timers.
var DefaultTimerConfig TimerConfig = TimerConfig{
var DefaultTimerConfig = TimerConfig{
ReconcilerLoopPeriod: 100 * time.Millisecond,
ReconcilerMaxWaitForUnmountDuration: 6 * time.Minute,
DesiredStateOfWorldPopulatorLoopSleepPeriod: 1 * time.Minute,
@@ -900,7 +900,7 @@ func (adc *attachDetachController) addNodeToDswp(node *v1.Node, nodeName types.N
keepTerminatedPodVolumes := false
if t, ok := node.Annotations[volumeutil.KeepTerminatedPodVolumesAnnotation]; ok {
keepTerminatedPodVolumes = (t == "true")
keepTerminatedPodVolumes = t == "true"
}
// Node specifies annotation indicating it should be managed by attach