From 7a43f736c4c51ff122ea9d21986d7e62f40df2cb Mon Sep 17 00:00:00 2001 From: tianshapjq Date: Sat, 9 Dec 2017 15:14:18 +0800 Subject: [PATCH] correct the annotations in container_manager.go --- pkg/kubelet/cm/container_manager.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/kubelet/cm/container_manager.go b/pkg/kubelet/cm/container_manager.go index 626b251d6d..da7bf4a464 100644 --- a/pkg/kubelet/cm/container_manager.go +++ b/pkg/kubelet/cm/container_manager.go @@ -122,11 +122,7 @@ type Status struct { SoftRequirements error } -// containerManager for the kubelet is currently an injected dependency. -// We need to parse the --qos-reserve-requests option in -// cmd/kubelet/app/server.go and there isn't really a good place to put -// the code. If/When the kubelet dependency injection gets worked out, -// maybe there will be a better place for it. +// parsePercentage parses the percentage string to numeric value. func parsePercentage(v string) (int64, error) { if !strings.HasSuffix(v, "%") { return 0, fmt.Errorf("percentage expected, got '%s'", v)