Skip to content

Commit

Permalink
Register eviction for forcefully deleted pods
Browse files Browse the repository at this point in the history
  • Loading branch information
Uladzislau97 committed Feb 13, 2025
1 parent dda5594 commit 8d2d4f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster-autoscaler/core/scaledown/actuation/drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ func (e Evictor) evictPod(ctx *acontext.AutoscalingContext, podToEvict *apiv1.Po
if err := forceDeletePod(ctx, podToEvict); err != nil {
return status.PodEvictionResult{Pod: podToEvict, TimedOut: false, Err: err}
}
if e.evictionRegister != nil {
e.evictionRegister.RegisterEviction(podToEvict)
}
return status.PodEvictionResult{Pod: podToEvict, TimedOut: false, Err: nil}
}
if fullEvictionPod {
Expand Down

0 comments on commit 8d2d4f1

Please sign in to comment.