fix: Add unit directly to amount
As it is seems that Quantity doesn't honor the unit when deserializing.
Fixes
@@ -174,9 +174,8 @@ public class OpenShiftServiceImpl implements OpenShiftService {
.withNewStrategy()
.withType("Recreate")
.withNewResources()
- // TODO: Make the limits configurable
- .addToLimits("memory", new Quantity(config.getDeploymentMemoryLimitMi(), "Mi"))
- .addToRequests("memory", new Quantity(config.getDeploymentMemoryRequestMi(), "Mi"))
+ .addToLimits("memory", new Quantity(config.getDeploymentMemoryLimitMi() + "Mi"))
+ .addToRequests("memory", new Quantity(config.getDeploymentMemoryRequestMi() + "Mi"))
.endResources()
.endStrategy()
.withNewTemplate()
