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 Jul 2, 2024
1 parent a760940 commit 25c1646
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 25c1646

Please sign in to comment.