From 8438eee612c7dafd091dd42e316565d9c82e01ff Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Thu, 12 Nov 2020 10:49:17 +0100 Subject: [PATCH] Use reservations if user has not set limits Signed-off-by: Nicolas De Loof --- ecs/convert.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecs/convert.go b/ecs/convert.go index 865ffff25..84e51e258 100644 --- a/ecs/convert.go +++ b/ecs/convert.go @@ -389,6 +389,9 @@ func getConfiguredLimits(service types.ServiceConfig) (types.UnitBytes, int64, e } limits := service.Deploy.Resources.Limits + if limits == nil { + limits = service.Deploy.Resources.Reservations + } if limits == nil { return 0, 0, nil }