fix(platform): propagate resource allocation ratios to packages by sircthulhu · Pull Request #2296 · cozystack/cozystack

@sircthulhu

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>

@sircthulhu marked this pull request as ready for review

March 30, 2026 04:51

@dosubot dosubot bot added size:XS

This PR changes 0-9 lines, ignoring generated files.

bug

Something isn't working

labels

Mar 30, 2026

gemini-code-assist[bot]

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Mar 30, 2026

@kvaps kvaps added backport

Should change be backported on previus release

and removed lgtm

This PR has been approved by a maintainer

labels

Mar 30, 2026

@kvaps kvaps deleted the fix/platform-allocation-ratio-propagation branch

March 30, 2026 18:15

kvaps added a commit that referenced this pull request

Mar 30, 2026
…atios to packages (#2301)

# Description
Backport of #2296 to `release-1.2`.