Core API: Support empty SectionName in HTTPRoute ParentRef #479
Labels
area/httproute/core
Relates to all Core features of HTTPRoute
enhancement
New feature or request
refined
Requirements are refined and the issue is ready to be implemented.
Milestone
Allow users to attach an HTTPRoute to an entire Gateway by leaving the section name of the parent ref empty.
If at least one section (listener) accepts the HTTPRoute, then the attachment is considered successful.
Acceptance Criteria:
Accepted/True/Accepted
(condition/value/reason) if at least one listener accepts the HTTPRoute.Accepted/False/<reason>
if no listeners accept the HTTPRoute.Helpful links:
Examples:
In this example, the httproute attaches to the listeners in the following ways:
http
. Bothcafe.example.com
andcafe.example.org
hostnames are allowed by thehttp
listener because the listener does not specify a hostname.https
. Only thecafe.example.com
hostname is allowed by thehttps
listener.https-gov
because its hostnames do not match the listener's hostname.In this example, the httproute attaches to the listeners in the following ways:
http
. Bothcafe.example.com
andcafe.example.org
hostnames are allowed by thehttp
listener because the listener does not specify a hostname.http-2
. Only thecafe.example.com
hostname is allowed by thehttp-2
listener.http-3
. Only thecafe.example.org
hostname is allowed by thehttp-3
listener.However, if we allow and configure all of the attachments above, we will end up with duplicate server blocks for
cafe.example.com
andcafe.example.org
. In this case we need to choose which listener to bind the route to following the guidelines of the spec.The text was updated successfully, but these errors were encountered: