Add optional Gateway API HTTPRoute template#10
Open
TJM wants to merge 1 commit into
Open
Conversation
Adds optional templates/httproute.yaml that produces a gateway.networking.k8s.io/v1 HTTPRoute attached to a pre-existing Gateway. Backend always points at the chart's Service so the same fullname rules apply as ingress.yaml. The new values.gateway section mirrors how values.ingress is shaped: disabled by default, hostnames/parentRefs as passthrough lists, and an optional matches block (defaults to a single PathPrefix `/`). Chart version bumped 0.1.2 -> 0.2.0 because this introduces a new templated resource.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional
templates/httproute.yamlthat renders agateway.networking.k8s.io/v1HTTPRoute whengateway.enabled: true. Backend always points at this chart's Service (matching howingress.yamlreferences the Service).Bumps chart version 0.1.2 → 0.2.0 because this introduces a new templated resource (minor bump, not patch).
Motivation
Many GKE / mesh / Kubernetes-1.30+ setups use Gateway API instead of Ingress. The chart already supports
ingressbut had no Gateway API equivalent, forcing users to apply a siblingHTTPRoutemanifest separately. With this change, a singlehelm installcan attach the openspeedtest Service to a pre-existing shared Gateway.Example values:
Design notes
gateway.enabled: false, so existing installs render no change.{{ include "openspeedtest.fullname" . }}pattern used byingress.yaml, so multiple route types stay consistent.hostnamesis optional. When empty, the route matches every hostname the parent Gateway accepts.matchesis optional. When empty, the rule matches every path.parentRefsis required when enabled (no sensible default).Changes
templates/httproute.yaml— new template guarded by.Values.gateway.enabled.values.yaml— addgateway:section afteringress:with the same disabled-by-default + commented-example style.Chart.yaml— bump version0.1.2→0.2.0.Test plan
helm lintpasses.helm templatewithgateway.enabled: false(default): no HTTPRoute is emitted.helm templatewithgateway.enabled: true+parentRefs/hostnames/matches: HTTPRoute renders matching the spec.helm templatewithgateway.enabled: true+matches: []: HTTPRoute renders without amatchesblock (catch-all route).