Skip to content

[YUNIKORN-3206] pod resource calculation incorrect with native sidecars#999

Closed
wilfred-s wants to merge 2 commits intoapache:masterfrom
wilfred-s:YUNIKORN-3206
Closed

[YUNIKORN-3206] pod resource calculation incorrect with native sidecars#999
wilfred-s wants to merge 2 commits intoapache:masterfrom
wilfred-s:YUNIKORN-3206

Conversation

@wilfred-s
Copy link
Contributor

What is this PR for?

Native sidecar containers are counted twice when calculation the maximum used resources during the init phase.

If the pod has large init containers and small "real" containers the overall pod size will be incorrect. In most cases the init containers will be small and the issue will go undetected.

What type of PR is it?

  • - Bug Fix

What is the Jira issue?

How should this be tested?

New unit tests added to check the speciifc use case

Native sidecar containers are counted twice when calculation the maximum
used resources during the init phase.

If the pod has large init containers and small "real" containers the
overall pod size will be incorrect. In most cases the init containers
will be small and the issue will go undetected.
@codecov
Copy link

codecov bot commented Jan 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.13%. Comparing base (368330e) to head (c54f287).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #999      +/-   ##
==========================================
- Coverage   66.16%   66.13%   -0.04%     
==========================================
  Files          72       72              
  Lines        7723     7715       -8     
==========================================
- Hits         5110     5102       -8     
  Misses       2399     2399              
  Partials      214      214              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wilfred-s wilfred-s requested a review from manirajv06 January 27, 2026 12:48
Copy link
Contributor

@manirajv06 manirajv06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@manirajv06 manirajv06 self-requested a review January 28, 2026 04:08
@wilfred-s wilfred-s deleted the YUNIKORN-3206 branch February 4, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants