-
Notifications
You must be signed in to change notification settings - Fork 544
HTTPRoute timeout #2013
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
HTTPRoute timeout #2013
Conversation
Welcome @SRodi! |
Hi @SRodi. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
config/crd/experimental/gateway.networking.k8s.io_httproutes.yaml
Outdated
Show resolved
Hide resolved
@SRodi Can you also add a check for timeouts in the validator, e.g., check the value is >= 1ms?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a couple of small questions – many thanks for doing this, @SRodi! 🙂
// Specifying a zero value such as "0s" is interpreted as no timeout. | ||
// | ||
// +kubebuilder:validation:XValidation:message="backendRequest timeout cannot be longer than request timeout",rule="!(has(self.request) && has(self.backendRequest) && duration(self.request) != duration('0s') && duration(self.backendRequest) > duration(self.request))" | ||
type HTTPRouteTimeouts struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also need type HTTPRouteTimeouts = v1beta1.HTTPRouteTimeouts
in apis/v1alpha2/httproute_types.go
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave it out. We're moving away from v1alpha2 types (they're no longer served in v0.8.0 CRDs) and I'd expect most/all implementations to have moved away from them before we hit v1.0.0. I haven't had time to figure out if we should leave v1alpha2 type definitions in place for one more release or drop them in v1.0, but in either case, I think I'd rather avoid adding anything new to them.
Looks like the cel tests are failing? I'm wondering why pull-gateway-api-verify says "Job succedded" even though several tests have failed? ^^^ @robscott any idea what's wrong here? |
Does |
@frankbu @robscott as mentioned here #2013 (comment) the CEL tests are failing on standard channel but passing on experimental. What should I do about that ? |
@SRodi you want to add the tests to this file instead: https://github.com/kubernetes-sigs/gateway-api/blob/main/pkg/test/cel/httproute_experimental_test.go. The test script actually loops through the channels, and installs CRDs and runs tests specifically for that channel (using build tags). Here's the actual test command that's being run: https://github.com/kubernetes-sigs/gateway-api/blob/main/hack/verify-crds-kind.sh#L63.
Nope, experimental features are intentionally excluded from standard channel CRDs, so that part of this PR is working as intended. |
All tests are passing after moving them to httproute_experimental_test.go - thanks for clarifying this @robscott Is there anything else I should add to this PR? |
This PR is just on hold while I check the changes I introduced in #2362 - once I've either fixed any problems or confirmed it's not actually a problem, we can proceed. Until then, please sit tight. |
Fixes in #2362 were great, looks like we can remove the hold on this one. /hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adleong, frankbu, robscott, SRodi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Nice work @SRodi
Implementation to support POC on HTTRoute Timeouts for GatewayAPI references: * kubernetes-sigs/gateway-api#2013 * https://gateway-api.sigs.k8s.io/geps/gep-1742/ * https://gateway-api.sigs.k8s.io/geps/gep-2257/ * kubernetes-sigs/gateway-api#1742 * kubernetes-sigs/gateway-api#1997
What type of PR is this?
HTTPRoute Timeouts
Relates to:
What this PR does / why we need it:
POC for HTTPRout timeout proposal
Which issue(s) this PR fixes:
Relates to #1742
Does this PR introduce a user-facing change?: