Fix golint failures of util/bandwith/*.go

This commit is contained in:
viegasdom
2019-04-11 14:17:08 +01:00
parent c2254cf19a
commit 1c468bf2e2
30 changed files with 482 additions and 118 deletions

View File

@@ -35,6 +35,7 @@ func validateBandwidthIsReasonable(rsrc *resource.Quantity) error {
return nil
}
// ExtractPodBandwidthResources extracts the ingress and egress from the given pod annotations
func ExtractPodBandwidthResources(podAnnotations map[string]string) (ingress, egress *resource.Quantity, err error) {
if podAnnotations == nil {
return nil, nil, nil