-
Notifications
You must be signed in to change notification settings - Fork 690
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
move serveContext.RequestTimeout into TimeoutConfig and drop old field #2690
Comments
Note that per #2697 (comment), the new field will use the standard timeout syntax, which is slightly different from the existing syntax for RequestTimeout. Make sure to call this out in docs. |
Did anyone investigate using an admission controller (e.g. gatekeeper) to enforce this policy? If we add policy controls for every field, configuration will get rapidly out of hand. It's also way better to give policy errors before a resource enters the cluster if possible. |
I did not; I was going off of @youngnick's spec. I can play around with gatekeeper if we're interested. |
I think you probably still need the validation checks in Contour even with an admission controller. Folks would have to buy into that configuration and it sort of feels like client-side validation where you'd still want the check on the backend. |
There are also concerns that an operator who adds new limits has no built-in way of ensuring that they're not going to break existing proxies. It sounds like we need to take a step back here and think more holistically about the design for adding these types of controls. I'm going to close out the associated PR until we get to a consensus on the approach. |
Let's talk about where we go from here and come back around about how we do min/max settings. I agree that my initial ideas about this are not sustainable; we need a more general solution for policy control over settings. |
The min/max limits will be implemented via optional Gatekeeper policies. Leaving this open to track removing the old config file field after a few releases. |
I'd like to remove the deprecated field in 1.10 - 3 minor releases after it was deprecated. That sound reasonable to everyone? |
Yes, that's quite reasonable. |
Removes the request-timeout field from the root of the config file. This field has been replaced by timeouts.request-timeout, and the original field has been deprectated for several releases now. Closes projectcontour#2690. Signed-off-by: Steve Kriss <krisss@vmware.com>
Spun out from #2225:
The text was updated successfully, but these errors were encountered: