-
Notifications
You must be signed in to change notification settings - Fork 536
HTTPRoute forwardTo ports not required #578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Notes from the community meeting:
cc: @stevesloka @robscott |
/assign |
My proposal for path forward on this problem:
@danehans I'm not sure what you mean here, could you please rephrase? |
@hbagdi @stevesloka can we close this issue now that GEP #718 clarified where port was required? We also have #753 to track implementing that validation in the webhook. |
/close |
@hbagdi: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
In implementing HTTPRoutes, I had a question on how to handle
forwardTo.Ports
if unspecified. I was unsure of which port to use since that is currently an optional field.The docs state:
I asked a question on Slack (https://kubernetes.slack.com/archives/CR0H13KGA/p1615242865086900) and found out about this thread in Slack (https://kubernetes.slack.com/archives/CR0H13KGA/p1613674798102500?thread_ts=1613607883.098300&cid=CR0H13KGA) which already was asked. =)
My original question was this:
Chatting with @danehans the thought was to revert the port from being optional back to being required. This would allow someone to specify which port to use when forwarding traffic to an upstream all the time.
To clarify how I understand, by making the port required we can assume the following:
serviceName
is provided, thenport
is used to forward toname:port
backedRef
is provided (and notserviceName
), thenport
is used to forward tobackendRef:port
serviceName
+backendRef
is supplied, thenserviceName:port
takes priorityMy only question is that is it assumed the
port
fromforwardTo
would be used in conjunction with abackendRef
(i.e. example 2 previously), or would that referenced object want to configure those bits in that custom resource? If the backedRef wants to handle all of that itself, then maybe we should leave this alone and just require controllers to validate thatport
is provided when aserviceName
is used.// cc @danehans @robscott @howardjohn
The text was updated successfully, but these errors were encountered: