fix: propagate numCores and extraCores from wekacluster to wekacontainers per role (OP-260)#2395
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
How to use the Graphite Merge QueueAdd the label main-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
abce97b to
50df2fb
Compare
50df2fb to
10dbe9f
Compare
0235f70 to
e1ff068
Compare
10dbe9f to
a5f51e7
Compare
|
Claude finished @kristina-solovyova's task in 1m 35s —— View job Code Review
SummaryThis PR does two things: (1) fixes a real bug where ObservationsBug fix:
container.Spec.NumCores = util.GetNonZeroOrDefault(rv.NumCores, container.Spec.NumCores)One implicit design decision worth documenting: once Overrides refactor ( The old pattern fetched overrides multiple times and conditionally wrote back. The new pattern fetches once, mutates, and unconditionally writes back at the end: overrides := container.Spec.GetOverrides()
// ... modify fields ...
container.Spec.Overrides = overrides // always assignedThis relies on One subtle behavior change:
Clean consolidation. The fallthrough to
The old code had a manual nil check: // old
if spec.Dynamic != nil {
computeExtraCores = spec.Dynamic.ComputeExtraCores
}The new code reads from Potential issue: SmbwHugepages: util.GetNonZeroOrDefault(dynamicTemplate.SmbwFrontendHugepages, 1400*tmpl.Cores.Smbw),Note VerdictThe refactoring is solid — no regressions visible, the |
Graphite Automations"Add anton/matt/sergey/kristina as reviwers on operator PRs" took an action on this PR • (03/25/26)2 reviewers were added to this PR based on Anton Bykov's automation. |
a5f51e7 to
716e161
Compare
|
Claude finished @kristina-solovyova's task in 31s —— View job No changes since the last review — the PR still contains the same single commit ( |
716e161 to
97c6000
Compare
|
Claude finished @kristina-solovyova's task in 1m 39s —— View job
Code Review (updated commit
|

No description provided.