feat(aws_eks): expose facets_dedicated min_nodes in spec#563
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe EKS dedicated nodepool schema adds conditional ChangesEKS dedicated nodepool configuration
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@modules/kubernetes_cluster/aws_eks/0.2/facets.yaml`:
- Around line 208-220: Update the node pool facet validation around min_nodes
and max_nodes to enforce min_nodes <= max_nodes before managed node group sizing
uses the values. Add cross-field schema validation or equivalent downstream
validation while preserving the existing 1..200 bounds and defaults.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: af1f0048-8347-4111-845d-c42099bbc0a0
📒 Files selected for processing (1)
modules/kubernetes_cluster/aws_eks/0.2/facets.yaml
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@modules/kubernetes_cluster/aws_eks/0.2/facets.yaml`:
- Around line 221-228: Update the desired_nodes schema entry in the facets
definition to enforce its relationship with min_nodes and max_nodes, rejecting
values below min_nodes or above max_nodes while retaining the existing 1..200
bounds; if the schema cannot express this cross-field validation, remove the
bounded-to-Min/Max promise from the description.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 3cf43aa2-6b60-4965-8f98-446ca634221f
📒 Files selected for processing (1)
modules/kubernetes_cluster/aws_eks/0.2/facets.yaml
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>
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>
…clamped) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0c1968e to
294ea96
Compare
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>
What
Adds a
min_nodesfield to thefacets_dedicatednodepool spec inkubernetes_cluster/aws_eks/0.2(default1).Why
The dedicated managed node group hosts Karpenter and the platform/monitoring singletons. Its
min_size/desired_sizewere hardcoded to 1, making a single dedicated node a SPOF. Exposingmin_nodeslets clusters run the dedicated node group with ≥2 nodes (across AZs) for HA.Pairs with
facets-cloud/facets-iacPR #2134, which threadsspec.nodepools.facets_dedicated.min_nodesinto the managed node group'smin_size/desired_size(defaulting to 1, backward compatible).Compatibility
default: 1— no behaviour change for existing clusters. Setmin_nodes: 2for HA.🤖 Generated with Claude Code
Summary by CodeRabbit