mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-23 02:47:57 +00:00
Apply suggestions from code review
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user