Feat: Add Gateway API support to Helm chart#241
Conversation
- Add gatewayAPI section to values.yaml with HTTPRoute and BackendTrafficPolicy config - Create httproute.yaml template for Gateway API v1 HTTPRoute - Create backendtrafficpolicy.yaml template for Envoy Gateway timeout config - Update README.md with Gateway API documentation and examples - Bump chart version to 0.1.1 Both Ingress and Gateway API can be enabled simultaneously for migration scenarios.
Alignment with mcp-kubernetes ImplementationI've been working on aligning the Gateway API implementations across our Helm charts. After comparing this PR with the mcp-kubernetes implementation, here are the recommended changes to ensure consistency: 1. Add parentRefs Validation (Recommended)mcp-kubernetes has validation that fails early if {{- if not .Values.gatewayAPI.httpRoute.parentRefs }}
{{- fail "gatewayAPI.httpRoute.parentRefs is required when gatewayAPI.enabled is true. Specify at least one parent Gateway reference." }}
{{- end }}2. Support Both Filters AND TimeoutsCurrently this PR supports {{- if .filters }}
filters:
{{- toYaml .filters | nindent 8 }}
{{- end }}3. Add Default Match Fallback (Already Implemented)This PR correctly falls back to PathPrefix 4. Reference ImplementationThe unified implementation in mcp-kubernetes now supports:
See: mcp-kubernetes feature branch Let me know if you'd like me to update this PR with these changes. |
|
Addressed all recommendations from the alignment review: Changes Made
All 45 Helm unit tests pass. |
Summary
Adds optional Gateway API (HTTPRoute) configuration to the Helm chart, allowing users to expose the service using Gateway API instead of or alongside traditional Ingress resources.
Closes #206
Changes
New Templates
templates/httproute.yaml: Gateway API v1 HTTPRoute with:
parentRefsvalidation (fails early with clear error message)/rule when no custom rules specifiedingress.yamltemplates/backendtrafficpolicy.yaml: Envoy Gateway BackendTrafficPolicy for timeout configuration
gatewayAPI.enabledandbackendTrafficPolicy.enabledare trueConfiguration
gatewayAPIsection with comprehensive documentationTesting
Example Usage
Migration
Both Ingress and Gateway API can be enabled simultaneously for migration scenarios.
Testing
All 45 Helm unit tests pass (24 new Gateway API tests + 21 existing tests).