From 7fffa52bbd6755e4afc60df2ad1f3118e5a186d0 Mon Sep 17 00:00:00 2001 From: carlory Date: Wed, 17 May 2017 15:44:21 +0800 Subject: [PATCH] fix func comment in helpers.go --- 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 2a36d8c81d5..4c0d549b646 100644 --- a/pkg/kubelet/eviction/helpers.go +++ b/pkg/kubelet/eviction/helpers.go @@ -932,7 +932,7 @@ func isSoftEvictionThresholds(thresholds []evictionapi.Threshold, starvedResourc return true } -// isSoftEviction returns true if the thresholds met for the starved resource are only soft thresholds +// isHardEvictionThreshold returns true if eviction should immediately occur func isHardEvictionThreshold(threshold evictionapi.Threshold) bool { return threshold.GracePeriod == time.Duration(0) }