Skip to content

Commit

Permalink
Add logging for unexpected pod eviction errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dewjam committed Feb 28, 2022
1 parent 82ea63b commit a9e4680
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/termination/eviction.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (e *EvictionQueue) evict(ctx context.Context, nn types.NamespacedName) bool
return true
}
if err != nil {
logging.FromContext(ctx).Debugf("Could not evict pod %s due to an unexpected error: %s", nn.String(), err)
return false
}
return true
Expand Down

0 comments on commit a9e4680

Please sign in to comment.