From 5e2e7c6f7dd67e2b595e7f9ea6da5372b820f436 Mon Sep 17 00:00:00 2001 From: "Johannes M. Scheuermann" Date: Thu, 30 May 2019 11:44:05 +0200 Subject: [PATCH] Correct Egress limits and remove unnecessary check Signed-off-by: Johannes M. Scheuermann --- pkg/server/sandbox_run.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/server/sandbox_run.go b/pkg/server/sandbox_run.go index 2ec45c0cc..75630d1b7 100644 --- a/pkg/server/sandbox_run.go +++ b/pkg/server/sandbox_run.go @@ -581,10 +581,6 @@ func toCNIBandWidth(annotations map[string]string) (*cni.BandWidth, error) { bandWidth := &cni.BandWidth{} - if ingress == nil && egress == nil { - return bandWidth, nil - } - if ingress != nil { bandWidth.IngressRate = uint64(ingress.Value()) bandWidth.IngressBurst = math.MaxUint32 @@ -592,7 +588,7 @@ func toCNIBandWidth(annotations map[string]string) (*cni.BandWidth, error) { if egress != nil { bandWidth.EgressRate = uint64(egress.Value()) - bandWidth.EgressRate = math.MaxUint32 + bandWidth.EgressBurst = math.MaxUint32 } return bandWidth, nil