Is it on purpose we can duplicate backend ref in a Route ? #4492
Unanswered
ivanmatmati
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
IMO this is expected to be allowed. The same backend could have multiple
different policies, filters, etc associated with it.
…On Thu, Feb 5, 2026 at 8:52 AM ivanmatmati ***@***.***> wrote:
Consider this HTTPRoute:
apiVersion: gateway.networking.k8s.io/v1kind: HTTPRoutemetadata:
name: route-hello-world-exact
namespace: httproutesspec:
parentRefs:
- name: hug-gateway
sectionName: http
hostnames:
- "exact.haproxy.local"
rules:
- matches:
- path:
type: Exact
value: /hostname
backendRefs:
- group: ""
kind: Service
name: hello-world-exact
port: 80
weight: 1
- group: ""
kind: Service
name: hello-world-exact
port: 80
weight: 5
Is it ok and intended that we can insert twice the same backendRef ? It
can complicate the processing for controller and it could be a permissive
entry that could hide some mistake from the user. If not intended but just
the result of a limitation, how should we handle that in a controller?
Rejection, last wins, etc ?
—
Reply to this email directly, view it on GitHub
<#4492>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEYGXLLN5JEPLWDKY25EC34KNDITAVCNFSM6AAAAACUDCQ366VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZZGQZTEOJQGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider this HTTPRoute:
Is it ok and intended that we can insert twice the same backendRef ? It can complicate the processing for controller and it could be a permissive entry that could hide some mistake from the user. If not intended but just the result of a limitation, how should we handle that in a controller? Rejection, last wins, etc ?
Beta Was this translation helpful? Give feedback.
All reactions