Repository navigation
fix(web): show the default limits instead of "no limit" - #316
Conversation
An application without resources now runs under 1 CPU and 512Mi (#301), so the configuration view states those values. Refs #301 Signed-off-by: samuel mbabhazi <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Follow-up to #313 (issue #301).
What changed
The "Resource limits" section of an application's configuration showed
no limitfor a CPU or a memory limit thatshipkeep.ymlleaves out. Since #313 that is no longer true: the application runs under 1 CPU and 512Mi. The section now shows1 CPU (default)and512Mi (default)(1 CPU (par défaut),512Mi (par défaut)in French).The two texts are fixed strings so that they can be translated. A test compares them with
DEFAULT_RESOURCESfrom@shipkeep/config-schema, so they cannot drift from what the control plane applies. The unusedno limittranslation is removed.How it was tested
resources, one limit declared, and the texts againstDEFAULT_RESOURCESin both languages. Puttingno limitback makes the test fail.resources: French and English at 1440 × 900, French at 390 × 844. An application that declares250mand64Mistill shows its own values.Security considerations
Text only. No new input, request or secret path.
Before merging
UI change: waiting for the maintainer to look at the screenshots.
Summary by CodeRabbit