kubectl: note a bug with a comment

This doesn't seem to be affecting anything and I'm not sure what the
correct behavior needs to be here. I'll highlight this in the code
review and hopefully work out a correct solution with the help of the
reviewers.
This commit is contained in:
Alexander Campbell 2017-05-25 13:38:23 -07:00
parent ef9ae61240
commit 7b54199fd5

View File

@ -332,6 +332,8 @@ func (reaper *StatefulSetReaper) Stop(namespace, name string, timeout time.Durat
}
if timeout == 0 {
numReplicas := ss.Spec.Replicas
// BUG: this timeout is never used.
timeout = Timeout + time.Duration(10*numReplicas)*time.Second
}
retry := NewRetryParams(reaper.pollInterval, reaper.timeout)