chore: add warning for nodePool validation - #129
Conversation
Signed-off-by: kerthcet <kerthcet@gmail.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (5)
✨ 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 |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The user-facing admission change needs the release note required by the PR template.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds admission warnings for NodePool configurations that registered providers cannot serve.
Changes:
- Centralizes capacity-tier and egress capability checks.
- Warns instead of rejecting unsupported configurations.
- Adds webhook warning tests.
| File | Description |
|---|---|
pkg/provider/provider.go |
Adds capability-check helpers. |
pkg/provider/catalog/base.go |
Updates helper reference. |
internal/webhook/v1/nodepool_webhook.go |
Generates NodePool warnings. |
internal/webhook/v1/nodepool_webhook_test.go |
Tests warning scenarios. |
internal/controller/pod_placement_helpers.go |
Uses centralized checks. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
/lgtm |
InftyAI-Agent
left a comment
There was a problem hiding this comment.
Approved: PR has both lgtm and approved labels
InftyAI-Agent
left a comment
There was a problem hiding this comment.
Approved: PR has both lgtm and approved labels
InftyAI-Agent
left a comment
There was a problem hiding this comment.
Approved: PR has both lgtm and approved labels

What this PR does / why we need it
Which issue(s) this PR fixes
Fixes #
Special notes for your reviewer
Does this PR introduce a user-facing change?
Summary by CodeRabbit