Skip to content

feat: validate ports across init containers and fix native sidecar resource calculation#4615

Merged
dejanzele merged 2 commits intoarmadaproject:masterfrom
dejanzele:feat/init-container-validation
Jan 21, 2026
Merged

feat: validate ports across init containers and fix native sidecar resource calculation#4615
dejanzele merged 2 commits intoarmadaproject:masterfrom
dejanzele:feat/init-container-validation

Conversation

@dejanzele
Copy link
Member

What type of PR is this?

Enhancement and bug fix

What this PR does / why we need it

  • Extends port validation to include init containers, detecting duplicate ports across all container types
  • Fixes resource calculation for native sidecar init containers (RestartPolicy=Always) to sum their resources with main containers instead of using max()

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

…source calculation

Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
@dejanzele dejanzele force-pushed the feat/init-container-validation branch from 26fcf3a to a4adcc1 Compare January 21, 2026 14:40
@dejanzele dejanzele enabled auto-merge (squash) January 21, 2026 15:48
@dejanzele dejanzele merged commit 9122687 into armadaproject:master Jan 21, 2026
14 checks passed
Sigele pushed a commit to Sigele/armada that referenced this pull request Jan 30, 2026
…source calculation (armadaproject#4615)

<!-- Thanks for sending a pull request! Here are some tips for you: -->

#### What type of PR is this?

Enhancement and bug fix

#### What this PR does / why we need it

- Extends port validation to include init containers, detecting
duplicate ports across all container types
- Fixes resource calculation for native sidecar init containers
(`RestartPolicy=Always`) to sum their resources with main containers
instead of using `max()`

#### Which issue(s) this PR fixes
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related
issues/tests in a comment and do not use `Fixes`_*
-->
Fixes #

#### Special notes for your reviewer

Signed-off-by: Dejan Zele Pejchev <pejcev.dejan@gmail.com>
Signed-off-by: Sigele Nickerson-Adams <sigele.nickerson-adams@nmc2.ai>
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