sync: expose facets_dedicated min_nodes/desired_nodes in aws_eks spec (0.1 + 0.2)#564
sync: expose facets_dedicated min_nodes/desired_nodes in aws_eks spec (0.1 + 0.2)#564sanmesh-kakade wants to merge 1 commit into
Conversation
* feat(aws_eks): expose facets_dedicated min_nodes in spec Add min_nodes to the facets_dedicated nodepool spec (default 1) so the dedicated managed node group's minimum size is configurable. Set >= 2 for HA of the platform components pinned to the dedicated node pool. Consumed by facets-iac aws_eks/0.2 via spec.nodepools.facets_dedicated.min_nodes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(aws_eks): add facets_dedicated desired_nodes to spec Optional desired_nodes for the facets_dedicated nodepool. Falls back to min_nodes when unset. Applied at node pool creation only (managed node group ignores desired_size on updates); bounded to [min_nodes, max_nodes]. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs(aws_eks): desired_nodes must be within [min,max] (rejected, not clamped) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * feat(aws_eks): add min_nodes/desired_nodes to 0.1 spec too Mirror the 0.2 field additions in aws_eks 0.1 so both published versions expose facets_dedicated min/desired node counts. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
WalkthroughChangesEKS dedicated node pool sizing
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
modules/kubernetes_cluster/aws_eks/0.1/facets.yaml (1)
207-231: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valueCross-field bounds for
min_nodes/max_nodes/desired_nodesare only documented, not enforced by the schema. Both version schemas rely on free-text descriptions to convey thatdesired_nodesmust sit betweenmin_nodesandmax_nodes, and thatmin_nodesshould not exceedmax_nodes; the JSON Schema itself allows any combination within[1, 200]independently for each field.
modules/kubernetes_cluster/aws_eks/0.1/facets.yaml#L207-L231: no schema-level guard againstmin_nodes > max_nodesordesired_nodesoutside[min_nodes, max_nodes].modules/kubernetes_cluster/aws_eks/0.2/facets.yaml#L208-L232: same gap, identical field definitions.Given the commit messages indicate this constraint is validated during apply in facets-iac, this is likely already covered downstream; flagging here mainly for awareness in case the UI form should surface the error earlier via
x-ui-error-message/conditional rules rather than relying solely on backend validation and free text.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@modules/kubernetes_cluster/aws_eks/0.1/facets.yaml` around lines 207 - 231, The min_nodes, max_nodes, and desired_nodes fields lack UI-level cross-field validation. In modules/kubernetes_cluster/aws_eks/0.1/facets.yaml lines 207-231 and modules/kubernetes_cluster/aws_eks/0.2/facets.yaml lines 208-232, add conditional UI validation or x-ui-error-message rules so min_nodes does not exceed max_nodes and desired_nodes remains between them; retain backend apply validation and existing field constraints.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@modules/kubernetes_cluster/aws_eks/0.1/facets.yaml`:
- Around line 207-231: The min_nodes, max_nodes, and desired_nodes fields lack
UI-level cross-field validation. In
modules/kubernetes_cluster/aws_eks/0.1/facets.yaml lines 207-231 and
modules/kubernetes_cluster/aws_eks/0.2/facets.yaml lines 208-232, add
conditional UI validation or x-ui-error-message rules so min_nodes does not
exceed max_nodes and desired_nodes remains between them; retain backend apply
validation and existing field constraints.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9fac6668-9fd4-46d6-ba9d-98b6b352dd04
📒 Files selected for processing (2)
modules/kubernetes_cluster/aws_eks/0.1/facets.yamlmodules/kubernetes_cluster/aws_eks/0.2/facets.yaml
What
Sync of #563 (merged to
develop) intomaster. Cherry-pick of the same change — addsmin_nodesanddesired_nodesto thefacets_dedicatednodepool spec inkubernetes_cluster/aws_eks0.1 and 0.2.Details
min_nodes(integer, 1–200, default 1) anddesired_nodes(integer, 1–200, optional → falls back to Min) added to the form, withx-ui-orderupdated.min=1,desired→min(same as before).spec.nodepools.facets_dedicated.{min_nodes,desired_nodes}.Cherry-picked from develop merge
c7487b84.🤖 Generated with Claude Code
Summary by CodeRabbit