fix(config): apply cluster node port quantity to the inventory#407
fix(config): apply cluster node port quantity to the inventory#407neyy91 wants to merge 1 commit into
Conversation
The --cluster-node-port-quantity flag was stored in a Config field that nothing read, while the inventory service reads the embedded cluster.Config.InventoryExternalPortQuantity, which was never set. The operator's configured node port quantity was therefore ignored. Drop the orphaned field and route the value into the inventory config via SetClusterExternalPortQuantity. refs: akash-network/support#135
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughFixes a bug where ChangesNode Port Quantity Propagation Fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
The
--cluster-node-port-quantityflag (envAKASH_CLUSTER_NODE_PORT_QUANTITY) was assigned to aConfigfield that nothing reads. The inventory service reads the embeddedcluster.Config.InventoryExternalPortQuantity, which was never populated, so the operator's configured value was silently ignored.This drops the orphaned field and routes the flag into the inventory config via a small
SetClusterExternalPortQuantitysetter.Why
Closes akash-network/support#135: operators setting the node port quantity (e.g. to
0/1) saw no effect - the provider kept bidding with the default port quantity.Testing
Added
TestConfig_NodePortQuantityReachesInventory, asserting the configured value lands inInventoryExternalPortQuantity. The orphaned field is removed and the whole repo builds (it was read nowhere).refs: akash-network/support#135