mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-24 11:29:09 +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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user