Skip to content

Commit

Permalink
Update eviction.go (#1388)
Browse files Browse the repository at this point in the history
Karpenter Controller says as `Did not to evict pod due to PDB violation`. However, it should ideally have messages as `Did not evict pod due to PDB violation`

Have made same changes in the Code. 

#1384
  • Loading branch information
gowthasa committed Feb 21, 2022
1 parent 3f7cf29 commit 8a56624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/termination/eviction.go
Expand Up @@ -96,7 +96,7 @@ func (e *EvictionQueue) evict(ctx context.Context, nn types.NamespacedName) bool
return false
}
if errors.IsTooManyRequests(err) { // 429
logging.FromContext(ctx).Debugf("Did not to evict pod %s due to PDB violation.", nn.String())
logging.FromContext(ctx).Debugf("Did not evict pod %s due to PDB violation.", nn.String())
return false
}
if errors.IsNotFound(err) { // 404
Expand Down

0 comments on commit 8a56624

Please sign in to comment.