Skip to content

fix(DMVP-9224): support templates injection in httproute routes configs#201

Merged
mrdntgrn merged 1 commit intomainfrom
011-gateway-tpl-support
Apr 15, 2026
Merged

fix(DMVP-9224): support templates injection in httproute routes configs#201
mrdntgrn merged 1 commit intomainfrom
011-gateway-tpl-support

Conversation

@mrdntgrn
Copy link
Copy Markdown
Contributor

Summary

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:
    • backendRefs[].name: "{{ .Values.global.environment }}.api-v1".

Testing/Verification

  • Verified commit content via latest commit diff (git show -1) and file-level patch review.

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Apr 15, 2026

PR Summary 📃

  • 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! 🚀

@mrdntgrn mrdntgrn merged commit 89a6f93 into main Apr 15, 2026
3 checks passed
@mrdntgrn mrdntgrn deleted the 011-gateway-tpl-support branch April 15, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants