Repository navigation
feat: add default memory limit for shutdown-manager - #10221
wangyusheng1985 wants to merge 2 commits into
Conversation
The shutdown-manager container currently has default resource requests but no limits. Clusters with LimitRange or strict resource policies can inject an inappropriate limit, or users must patch via EnvoyProxy. Set a 32Mi default memory limit, matching the existing request, and leave CPU limits unset. User-overridden resources are unchanged. Fixes envoyproxy#8912 Signed-off-by: yusheng.wang <[email protected]>
✅ Deploy Preview for cerulean-figolla-1f9435 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
IIRC, there's similar PR in the past. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10221 +/- ##
==========================================
+ Coverage 81.49% 81.55% +0.05%
==========================================
Files 266 266
Lines 41409 41412 +3
==========================================
+ Hits 33748 33775 +27
+ Misses 7660 7636 -24
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
A 32Mi limit matching the request leaves no headroom for the preStop drain child process, which caused EnvoyShutdown e2e failures (connection resets during rollout). Signed-off-by: yusheng.wang <[email protected]>
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions! |
What this PR does / why we need it:
The shutdown-manager container has default CPU and memory requests but no limits. Clusters with
LimitRangeor strict resource policies can inject an inappropriate limit, and users otherwise have to patch via the EnvoyProxy CRD.This adds a default 32Mi memory limit for shutdown-manager, matching the existing request. CPU limits stay unset. User-overridden shutdown-manager resources are unchanged.
Which issue(s) this PR fixes:
Fixes #8912
PR Checklist
git commit -s). See DCO: Sign your work.api/v1alpha1andinternal/infrastructure/kubernetes/proxypass.make generate gen-check/make lintnot run locally.TestDefaultShutdownManagerContainerResourceRequirementsand updated default golden YAML. Override goldens (deployments/shutdown-manager.yaml,daemonsets/shutdown-manager.yaml) are unchanged.release-notes/current/new_features/8912-shutdown-manager-memory-limit.md.