1
0
Эх сурвалжийг харах

Use reservations if user has not set limits

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 5 жил өмнө
parent
commit
8438eee612
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      ecs/convert.go

+ 3 - 0
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
 	}