Revert "plumb context with request deadline"

This reverts commit 83f869ee13.
This commit is contained in:
Jordan Liggitt
2020-11-19 18:15:04 -05:00
parent 3e21057070
commit afd92b3b3e
16 changed files with 67 additions and 389 deletions

View File

@@ -124,7 +124,7 @@ func testWebhookTimeout(t *testing.T, watchCache bool) {
},
{
name: "timed out client requests skip later mutating webhooks (regardless of failure policy) and fail",
timeoutSeconds: 4,
timeoutSeconds: 3,
mutatingWebhooks: []testWebhook{
{path: "/mutating/1/5s", policy: admissionv1beta1.Ignore, timeoutSeconds: 4},
{path: "/mutating/2/1s", policy: admissionv1beta1.Ignore, timeoutSeconds: 5},
@@ -133,7 +133,8 @@ func testWebhookTimeout(t *testing.T, watchCache bool) {
expectInvocations: []invocation{
{path: "/mutating/1/5s", timeoutSeconds: 3}, // from request
},
expectError: true,
expectError: true,
errorContains: "request did not complete within requested timeout",
},
}