fix(platform): propagate resource allocation ratios to packages by sircthulhu · Pull Request #2296 · cozystack/cozystack
Since the bundle restructure in 2d022e3, the cpuAllocationRatio, memoryAllocationRatio and ephemeralStorageAllocationRatio values from platform values.yaml were no longer propagated to child packages. The old monolithic bundles read these values from the cozystack ConfigMap via lookup and passed them explicitly. After migration to the Package CRD model, the bridge was lost: cozy-lib expects the ratios in _cluster config (via cozystack-values Secret), but platform never wrote them there, so the hardcoded defaults were always used. This commit restores the propagation by: - Adding cpu/memory/ephemeral-storage allocation ratios to the _cluster section in the cozystack-values Secret, so cozy-lib in all managed applications picks them up. - Passing cpuAllocationRatio to the kubevirt Package component, so the KubeVirt CR gets the configured value. Assisted-By: Claude AI Signed-off-by: Kirill Ilin <stitch14@yandex.ru>
marked this pull request as ready for review
This PR changes 0-9 lines, ignoring generated files.
Something isn't working
labels
Mar 30, 2026
Should change be backported on previus release
and removed lgtm
This PR has been approved by a maintainerlabels
Mar 30, 2026
kvaps
deleted the
fix/platform-allocation-ratio-propagation
branch
kvaps added a commit that referenced this pull request
Mar 30, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters