mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
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:
parent
ef9ae61240
commit
7b54199fd5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user