apiserver/pkg/server
Lukasz Szaszkiewicz 49d90ce0ad DelegatingAuthenticationOptions TokenReview request timeout
it turns out that setting a timeout on HTTP client affect watch requests made by the delegated authentication component.
with a 10 second timeout watch requests are being re-established exactly after 10 seconds even though the default request timeout for them is ~5 minutes.

this is because if multiple timeouts were set, the stdlib picks the smaller timeout to be applied, leaving other useless.
for more details see a937729c2c/src/net/http/client.go (L364)

instead of setting a timeout on the HTTP client we should use context for cancellation.

Kubernetes-commit: d690d71d27c78f2f7981b286f5b584455ff30246
2021-04-09 13:20:51 +02:00
..
dynamiccertificates switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
egressselector fix all keps links 404 for kep folder migration 2021-01-14 14:03:21 +08:00
filters apiserver: improve correlation by using the audit ID 2021-03-02 19:27:43 -05:00
healthz bump apiserver_request_total to STABLE status 2021-03-04 07:52:00 -08:00
httplog apiserver: improve correlation by using the audit ID 2021-03-02 19:27:43 -05:00
mux switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
options DelegatingAuthenticationOptions TokenReview request timeout 2021-04-09 13:20:51 +02:00
resourceconfig switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
routes Strip defaults in new places 2020-11-11 12:42:12 -08:00
storage fix staticcheck: vendor/k8s.io/apiserver/pkg/server 2020-11-17 11:58:13 +01:00
config.go apiserver: manage audit ID associated with a request 2021-03-02 19:22:39 -05:00
config_selfclient.go Refactor the process to get ip address of loopback interface 2019-11-02 11:14:04 +08:00
config_selfclient_test.go Skip TestLoopbackHostPortIPv6 run on non-IPv6 env 2020-08-31 23:20:49 +05:30
config_test.go do not allow inflight watermark histograms to fall too far behind 2020-10-05 11:26:48 -04:00
deleted_kinds.go refact RemoveDeletedKinds to eliminate questions about interating over mutated maps 2021-03-03 16:02:08 -05:00
deleted_kinds_test.go Use a versioner to convert an internal type into an external type for 2021-02-23 11:13:50 -05:00
deprecated_insecure_serving.go switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
doc.go update docs.go files under staging/src/k8s.io/apiserver/pkg/server 2019-02-03 20:43:13 +00:00
genericapiserver.go Add ability to skip OpenAPI handler installation 2021-03-17 00:26:23 +00:00
genericapiserver_test.go Deflake TestPrepareRun 2021-03-06 19:46:00 -05:00
handler.go switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
healthz.go Allow adding healthz and livez checks independent to each other 2021-02-13 17:29:34 +01:00
healthz_test.go add readyz endpoint for kube-apiserver readiness checks 2019-05-30 11:19:49 -07:00
hooks.go switch over k/k to use klog v2 2020-04-17 15:25:06 -04:00
plugins.go Remove alpha InitializerConfiguration types, Initializers admission plugin 2019-01-16 10:19:44 -05:00
secure_serving.go log tls handshake error at trace level to avoid error flooding, and add 2020-05-20 11:29:44 +08:00
signal.go make Kubelet bootstrap certificate signal aware 2020-07-04 12:08:04 +08:00
signal_posix.go apiservers: add synchronous shutdown mechanism on SIGTERM+INT 2017-08-29 13:16:11 +00:00
signal_windows.go apiservers: add synchronous shutdown mechanism on SIGTERM+INT 2017-08-29 13:16:11 +00:00