From fa8d07d3e1aa534601a90e527ed8d5321796fc6c Mon Sep 17 00:00:00 2001 From: shawnhanx <59723284+shawnhanx@users.noreply.github.com> Date: Sun, 7 Feb 2021 09:23:07 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pkg/kubelet/eviction/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/eviction/helpers.go b/pkg/kubelet/eviction/helpers.go index 5d97dad782e..3585b6565e9 100644 --- a/pkg/kubelet/eviction/helpers.go +++ b/pkg/kubelet/eviction/helpers.go @@ -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) }