mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Apply suggestions from code review
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
This commit is contained in:
parent
0bee739a2f
commit
fa8d07d3e1
@ -203,7 +203,7 @@ func parseThresholdStatement(signal evictionapi.Signal, val string) (*evictionap
|
||||
if percentage < 0 {
|
||||
return nil, fmt.Errorf("eviction percentage threshold %v must be >= 0%%: %s", signal, val)
|
||||
}
|
||||
// percentage is a float and should not be greater than 1(100%)
|
||||
// percentage is a float and should not be greater than 1 (100%)
|
||||
if percentage > 1 {
|
||||
return nil, fmt.Errorf("eviction percentage threshold %v must be <= 100%%: %s", signal, val)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user