feat(gateway-routes): add opt-in HTTPRoute for the nvcf-ui addon - #312
Conversation
📝 WalkthroughWalkthroughAdds an opt-in NVCF UI HTTPRoute and cross-namespace ReferenceGrant to the shared Gateway, includes the route in hostname uniqueness validation, and adds a CRLF parsing acceptance test. ChangesNVCF UI Gateway routing
PR body line-ending handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant SharedGateway
participant HTTPRoute
participant NVCFUIService
Client->>SharedGateway: Request nvcf-ui hostname
SharedGateway->>HTTPRoute: Match hostname and PathPrefix /
HTTPRoute->>NVCFUIService: Forward request to port 8300
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 `@deploy/helm/gateway-routes/chart/templates/httproute-nvcf-ui.yaml`:
- Around line 16-50: Add Helm chart tests for the opt-in nvcfUi route
configuration, verifying it renders disabled by default, produces the expected
HTTPRoute and matching ReferenceGrant fields when enabled, and fails when
hostnames are duplicated. Use the existing chart test conventions and symbols
under nvcfGatewayRoutes.routes.nvcfUi; if testing is not supported in this
location, document the reason in the PR 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: d3e14059-ca20-472a-bfd6-056249c09066
📒 Files selected for processing (4)
deploy/helm/gateway-routes/chart/templates/_helpers.tpldeploy/helm/gateway-routes/chart/templates/httproute-nvcf-ui.yamldeploy/helm/gateway-routes/chart/templates/referencegrant-nvcf-ui.yamldeploy/helm/gateway-routes/chart/values.yaml
31b3d7f to
c30afc0
Compare
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 `@deploy/helm/gateway-routes/chart/templates/referencegrant-nvcf-ui.yaml`:
- Around line 35-38: Update the ReferenceGrant’s spec.to entry in the manifest
template to include the configured backend Service name, using the chart’s
existing Service-name value. Keep the group and kind values unchanged so
cross-namespace access is restricted to that specific Service.
🪄 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: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 100faaa2-50be-4fb9-a03a-54ce739ae034
📒 Files selected for processing (5)
ci/test/check-pr-issue.test.shdeploy/helm/gateway-routes/chart/templates/_helpers.tpldeploy/helm/gateway-routes/chart/templates/httproute-nvcf-ui.yamldeploy/helm/gateway-routes/chart/templates/referencegrant-nvcf-ui.yamldeploy/helm/gateway-routes/chart/values.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
- deploy/helm/gateway-routes/chart/values.yaml
|
🎉 This PR is included in version nvcf-gateway-routes-v1.15.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Add a dedicated page documenting how to enable the opt-in NVCF UI gateway route introduced in PR #312 (feat(gateway-routes): add opt-in HTTPRoute for the nvcf-ui addon. The page covers prerequisites, the helmfile environment values to set, the sync command, and a verification step. It is placed in the Configuration section of the navigation between Multi-Tenancy and KAI Scheduler. Relates to #312 EOF ) Signed-off-by: Anand Parthasarathi <aparthasarat@nvidia.com>
Why
Deployments that install the nvcf-ui addon need to expose the UI through the
shared Gateway. This adds an opt-in
HTTPRoute plus the cross-namespace ReferenceGrant that the route requires.
What changed
httproute-nvcf-ui.yaml: HTTPRoute attached to the shared Gateway,matching PathPrefix
/on thenvcf-ui.<domain>hostname and forwarding tothe nvcf-ui Service (namespace
nvcf-ui, port 8300).referencegrant-nvcf-ui.yaml: ReferenceGrant permitting HTTPRoutes in theshared Gateway namespace to reference the nvcf-ui Service across namespaces.
values.yaml: newroutes.nvcfUiblock,enabled: falseby default so theroute only renders when a deployment opts in.
_helpers.tpl: addednvcfUito the root-hostname uniqueness validation listso a duplicate root PathPrefix
/hostname is caught at template time.Both templates are guarded by
nvcfGatewayRoutes.enabledandroutes.nvcfUi.enabled, so nothing renders unless the addon is turned on.Customer Release Notes
Adds an opt-in gateway route that exposes the nvcf-ui addon through the shared
Gateway when enabled.
Plan Summary
When
routes.nvcfUi.enabled=true, renders one HTTPRoute and one ReferenceGrant.No resources render by default.
Usage
Enable in values:
Testing
Rendered the chart with
helm templatefor nvcfUi enabled and disabled;confirmed both resources appear only when enabled and the hostname uniqueness
check passes.
Issues
Closes #313
References
None
Related Pull Requests
None
Dependencies
None
Summary by CodeRabbit
New Features
Bug Fixes
Summary by CodeRabbit
New Features
Bug Fixes