You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit enables template evaluation inside httpRoutes rule rendering in the gateway-api chart, so route fields can reference chart values (e.g., environment-specific backend names). It also updates the related example and bumps the chart version.
Key Changes
Bumped charts/gateway-api/Chart.yaml version from 0.1.6 to 0.1.7.
Updated charts/gateway-api/templates/httproute.yaml to render route rule YAML through tpl, enabling value/template injection in route config fields.
Updated examples/gateway-api/with-template-hostname.yaml to demonstrate templated backend service naming:
Chart Version Upgrade 📈
We've successfully bumped up the chart version from 0.1.6 to 0.1.7 in our charts/gateway-api/Chart.yaml. This simply represents a new edition of our project, making it ready for further improvements and additions. Let's celebrate this small but significant progress! 🎉
Enhanced Rule Rendering 🎨
Next, we have revamped the way we process and display rules in our charts/gateway-api/templates/httproute.yaml. Switching from toYaml to the more dynamic tpl for template processing makes handling different values in the future easier and more flexible. Essentially, it's like upgrading from a limited set of brushes to a full artist's toolkit. 🖌️
Backend Reference Name Update 🏷️
Lastly, we have updated the backend reference name in examples/gateway-api/with-template-hostname.yaml. With this change, we can now use a templated approach for the environment name. It's a bit like giving a personalized name tag to our project, allowing it to adapt to different environments with ease! It's a step forward for flexibility. 👏
Always remember, every update, no matter how small, brings us one step closer to our ultimate product vision. Let's keep rocking! 🚀
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
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
This commit enables template evaluation inside
httpRoutesrule rendering in thegateway-apichart, so route fields can reference chart values (e.g., environment-specific backend names). It also updates the related example and bumps the chart version.Key Changes
charts/gateway-api/Chart.yamlversion from0.1.6to0.1.7.charts/gateway-api/templates/httproute.yamlto render route rule YAML throughtpl, enabling value/template injection in route config fields.examples/gateway-api/with-template-hostname.yamlto demonstrate templated backend service naming:backendRefs[].name: "{{ .Values.global.environment }}.api-v1".Testing/Verification
git show -1) and file-level patch review.