-
Notifications
You must be signed in to change notification settings - Fork 50
feat(gateway-routes): add event-ledger HTTPRoute to gateway-routes chart #806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| {{- if and .Values.nvcfGatewayRoutes.enabled .Values.nvcfGatewayRoutes.routes.eventLedger.enabled }} | ||
| --- | ||
| apiVersion: gateway.networking.k8s.io/v1 | ||
| kind: HTTPRoute | ||
| metadata: | ||
| name: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.name }} | ||
| namespace: {{ .Values.nvcfGatewayRoutes.gateways.shared.namespace }} | ||
| labels: | ||
| {{- include "nvcf-gateway.labels" . | nindent 4 }} | ||
| app.kubernetes.io/component: event-ledger-route | ||
| annotations: | ||
| {{- toYaml .Values.nvcfGatewayRoutes.routes.eventLedger.routeAnnotations | nindent 4 }} | ||
| spec: | ||
| parentRefs: | ||
| - name: {{ .Values.nvcfGatewayRoutes.gateways.shared.name }} | ||
| namespace: {{ .Values.nvcfGatewayRoutes.gateways.shared.namespace }} | ||
| sectionName: {{ .Values.nvcfGatewayRoutes.gateways.shared.listenerName }} | ||
| hostnames: | ||
| {{- range .Values.nvcfGatewayRoutes.routes.eventLedger.hostnames }} | ||
| - {{ tpl . $ | quote }} | ||
| {{- end }} | ||
| rules: | ||
| # Namespace-scoped read endpoints (stats + events). Write endpoints are | ||
| # intentionally absent — they are reachable only via in-cluster Service DNS. | ||
| - matches: | ||
| - path: | ||
| type: PathPrefix | ||
| value: /v3/ledger/namespace | ||
| method: GET | ||
| backendRefs: | ||
| - name: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.name }} | ||
| namespace: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.namespace }} | ||
| port: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.port }} | ||
| # Authenticated dependency-status endpoint. | ||
| - matches: | ||
| - path: | ||
| type: Exact | ||
| value: /status | ||
| method: GET | ||
| backendRefs: | ||
| - name: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.name }} | ||
| namespace: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.namespace }} | ||
| port: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.port }} | ||
| # Unauthenticated liveness endpoint. | ||
| - matches: | ||
| - path: | ||
| type: Exact | ||
| value: /health | ||
| method: GET | ||
| backendRefs: | ||
| - name: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.name }} | ||
| namespace: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.namespace }} | ||
| port: {{ .Values.nvcfGatewayRoutes.routes.eventLedger.backend.port }} | ||
| {{- end }} | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1159,6 +1159,8 @@ nvcfGatewayRoutes: | |||||||||||||
| enabled: {{ dig "addons" "nvcfUi" "enabled" false .Values }} | ||||||||||||||
| routeAnnotations: | ||||||||||||||
| {{ dig "ingress" "gatewayApi" "routes" "nvcfUi" "routeAnnotations" dict .Values | toYaml | nindent 8 | trim }} | ||||||||||||||
| eventLedger: | ||||||||||||||
| enabled: {{ dig "addons" "eventLedger" "enabled" false .Values }} | ||||||||||||||
|
Comment on lines
+1162
to
+1163
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win Propagate
Proposed fix eventLedger:
enabled: {{ dig "addons" "eventLedger" "enabled" false .Values }}
+ routeAnnotations:
+ {{ dig "ingress" "gatewayApi" "routes" "eventLedger" "routeAnnotations" dict .Values | toYaml | nindent 8 | trim }}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
| grpc: | ||||||||||||||
| routeAnnotations: | ||||||||||||||
| {{ dig "ingress" "gatewayApi" "routes" "grpc" "routeAnnotations" dict .Values | toYaml | nindent 8 | trim }} | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Add render coverage for the new route.
Extend
deploy/helm/gateway-routes/scripts/test-render-routes.shto verify that the route renders only when enabled. Verify its hostname, backend, paths, path types, andGETmethods. Verify that disablingaddons.eventLedger.enabledrenders noHTTPRoute.As per coding guidelines, “Code changes must include tests, or the Pull Request must explain why tests are not applicable; run the repository-native test runner before committing.”
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 16-16: syntax error: expected the node content, but found '-'
(syntax)
🤖 Prompt for AI Agents
Source: Coding guidelines