feat: allow waitForMongodb init container resources to be specified - #270
feat: allow waitForMongodb init container resources to be specified#270wrn14897 wants to merge 2 commits into
Conversation
Ports the still-applicable half of #187 to the current chart layout. Adds hyperdx.deployment.waitForMongodb.resources (empty by default) so the wait-for-mongodb init container can carry requests/limits, which is required in clusters enforcing namespace resource quotas. The MongoDB half of #187 is obsolete: MongoDB is now a MongoDBCommunity CR whose spec is rendered verbatim, so container resources are already settable via the operator statefulSet override -- documented in values.yaml instead. Co-authored-by: Robert Gallagher <spoofedpacket@users.noreply.github.com>
🦋 Changeset detectedLatest commit: 01141b5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deep Review✅ No critical issues found. The template change itself is correct: 🟡 P2 -- recommended
🔵 P3 nitpicks (3)
Reviewers (9): correctness, testing, maintainability, project-standards, reliability, api-contract, previous-comments, agent-native, learnings-researcher. Testing gaps:
|
What
Ports the still-applicable half of #187 (by @spoofedpacket) to the current chart layout.
Adds
hyperdx.deployment.waitForMongodb.resources(empty by default) so thewait-for-mongodbinit container can carry requests/limits:Why
Clusters that enforce namespace resource quotas reject pods whose containers (including init containers) lack requests/limits. Without this value, the entire HyperDX pod is rejected even when
hyperdx.deployment.resourcesis set.Why not the MongoDB half of #187
#187 was written against the old chart layout where MongoDB was a plain Deployment (
mongodb-deployment.yaml). MongoDB is now aMongoDBCommunityCR whosemongodb.specis rendered verbatim, so container resources are already settable via the operator's statefulset override:This is now documented in
values.yamlinstead of adding a template change.Changes
templates/hyperdx/deployment.yaml— optionalresourcesblock on thewait-for-mongodbinit containervalues.yaml—hyperdx.deployment.waitForMongodb.resources: {}with commented example; doc hint onmongodb.specfor MongoDB container resourcestests/hyperdx-deployment_test.yaml— tests for default (no resources) and override renderingTesting
helm unittest charts/clickstack: 195/195 passed (28 suites)helm templateverified default output is unchanged and the override renders correctlyCloses #187