Skip to content

feat: INF-3543 Align HTTPRoute BackendRefs With Rollout Services#419

Open
jmpalomares wants to merge 5 commits intomainfrom
feat/inf-3543-httprouting-rollouts
Open

feat: INF-3543 Align HTTPRoute BackendRefs With Rollout Services#419
jmpalomares wants to merge 5 commits intomainfrom
feat/inf-3543-httprouting-rollouts

Conversation

@jmpalomares
Copy link
Contributor

@jmpalomares jmpalomares commented Feb 24, 2026

Fix Envoy Gateway HTTPRoute backendRefs to honor Argo Rollouts by redirecting Service targets to *-rollout when rollouts are enabled (including extraServices), matching _ingress.tpl behavior.

  1. _httproutes.tpl: Builds a rollout services map from global argoRollout and extraServices, then rewrites matching backendRefs with the -rollout suffix.

  2. _ingress.tpl: Applies the same rollout services map pattern, rewriting both custom (.backend) and default backend service names to target *-rollout when applicable.

  3. _backendtrafficpolicy.tpl (new): Optional, per-route BackendTrafficPolicy CRD.
    Supports spec or inline fields; defaults targetRefs to the HTTPRoute when not provided.

  4. _clienttrafficpolicy.tpl (new): Optional, per-route ClientTrafficPolicy CRD.
    Same shape and defaults as BackendTrafficPolicy.

Test:

Tested rendering the yaml files using flask-blueprint-app

Scenario HTTPRoute Ingress
argoRollout disabled flask-blueprint-app flask-blueprint-app
argoRollout enabled flask-blueprint-app-rollout flask-blueprint-app-rollout
extraService worker (rollout on) flask-blueprint-app-worker-rollout flask-blueprint-app-worker-rollout
extraService api (rollout off) flask-blueprint-app-api flask-blueprint-app-api

Templates correctly:

  • Append -rollout to the main service when global rollout is enabled
  • Append -rollout to extraServices that have their own argoRollout.enabled: true
  • Leave services unchanged when rollout is disabled

https://parcellab.atlassian.net/browse/INF-3543
https://parcellab.atlassian.net/browse/INF-3539

Copilot AI review requested due to automatic review settings February 24, 2026 07:55
@jmpalomares jmpalomares requested review from a team as code owners February 24, 2026 07:55
@github-actions github-actions bot added the yaml label Feb 24, 2026

This comment was marked as resolved.

Copy link
Contributor

@kpplis kpplis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hope you tested it :)

@github-actions github-actions bot added the docs label Feb 24, 2026
@andibeuge

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants