Skip to content

Commit

Permalink
removed select for context cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
sssash18 committed Jun 25, 2024
1 parent 198c755 commit 74fe3ce
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/util/provider/drain/drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -996,12 +996,6 @@ func (o *Options) evictPodWithoutPVInternal(ctx context.Context, attemptEvict bo
if i >= nretries {
attemptEvict = false
}
select {
case <-ctx.Done():
// Timeout occurred. Abort and report the remaining pods.
returnCh <- fmt.Errorf("timeout occured while waiting for pod %q terminating scheduled on node %v", pod.Name, pod.Spec.NodeName)
default:
}
if attemptEvict {
err = o.evictPod(ctx, pod, policyGroupVersion)
} else {
Expand Down

0 comments on commit 74fe3ce

Please sign in to comment.