Lukasz Szaszkiewicz
b71fa61b79
apiserver: adds WithMuxCompleteProtection filter
...
It puts the muxCompleteProtectionKey in the context if a request has been made before muxCompleteSignal has been ready.
Putting the key protect us from returning a 404 response instead of a 503.
It is especially important for controllers like GC and NS since they act on 404s.
The presence of the key is checked in the NotFoundHandler (staging/src/k8s.io/apiserver/pkg/util/notfoundhandler/not_found_handler.go)
The race may happen when a request reaches the NotFoundHandler because not all paths have been registered in the mux
but when the registered checks are examined in the handler they indicate that the paths have been actually installed.
In that case, the presence of the key will make the handler return 503 instead of 404.
2021-10-19 09:55:11 +02:00
Lukasz Szaszkiewicz
b92ff2928a
update modules.txt
2021-10-19 09:55:11 +02:00
Lukasz Szaszkiewicz
53867975e7
apiserver: indroduces NotFoundHanlder
...
The new handler is meant to be executed at the end of the delegation chain.
It simply checks if the request have been made before the server has installed all known HTTP paths.
In that case it returns a 503 response otherwise it returns a 404.
We don't want to add additional checks to the readyz path as it might prevent fixing bricked clusters.
This specific handler is meant to "protect" requests that arrive before the paths and handlers are fully initialized.
2021-10-19 09:55:04 +02:00
Lukasz Szaszkiewicz
7a342a0f8a
kube-apiserver: wires the notFoundHandler
2021-10-18 12:41:42 +02:00
Lukasz Szaszkiewicz
207478c1e6
allow for passing a custom handler to the empty delegate
2021-10-15 18:02:27 +02:00
Kubernetes Prow Robot
d9896a23bc
Merge pull request #105615 from MikeSpreitzer/correct-linger-logging
...
Unconfuse logging wrt additional latency
2021-10-12 00:23:46 -07:00
Kubernetes Prow Robot
4753fa5dee
Merge pull request #105608 from yxxhero/reduce_code
...
reduce code for NewSchedulerCommand func
2021-10-11 23:23:46 -07:00
Kubernetes Prow Robot
a7c67c03ff
Merge pull request #105399 from mopsfelder/ppc64le
...
Allow fast builds on ppc64le
2021-10-11 22:21:46 -07:00
Kubernetes Prow Robot
a923852ba0
Merge pull request #105215 from rphillips/add_probe_shutdown
...
kubelet: add probe termination to graceful shutdowns
2021-10-11 21:19:46 -07:00
Kubernetes Prow Robot
c2cbf5ff49
Merge pull request #105509 from ravisantoshgudimetla/fix-integration
...
[scheduler] [test]: Fix PreferNominatedNode test
2021-10-11 20:01:46 -07:00
Kubernetes Prow Robot
d2f6eb6339
Merge pull request #95128 from ii/remove-unwanted-redirects
...
Limit Apiserver Proxy Redirects
2021-10-11 17:23:46 -07:00
Kubernetes Prow Robot
67afa05c17
Merge pull request #105531 from aojea/master_leases
...
improve error message on control-plane endpoint reconciler
2021-10-11 15:01:02 -07:00
Mike Spreitzer
42f698daad
Unconfused logging wrt additional latency
...
Fixed confusion in queueSet logging wrt seats and additional latency.
2021-10-11 13:21:46 -07:00
Kubernetes Prow Robot
f83b16d93d
Merge pull request #105052 from leiyiz/skip-storage-test
...
tag ginkgo tests affected by pdcsi migration for skipping
2021-10-11 13:09:02 -07:00
Kubernetes Prow Robot
194a3dea5d
Merge pull request #105605 from sttts/sttts-watch-cache-multiple-blockers
...
apiserver/watchcache: doc watch event fan-out to blocked watchers better
2021-10-11 09:32:40 -07:00
yxxhero
71a6bb3301
reduce code for NewSchedulerCommand func
...
Signed-off-by: yxxhero <aiopsclub@163.com >
2021-10-11 23:21:34 +08:00
Kubernetes Prow Robot
dc9c571166
Merge pull request #105569 from pohly/generic-ephemeral-kubelet-volume-stats
...
kubelet: also provide filesystem stats for generic ephemeral volumes
2021-10-11 07:52:39 -07:00
Kubernetes Prow Robot
668c666fce
Merge pull request #105603 from shawnhanx/eventstructuredlogging
...
Support SetStructuredLogging with the new events library
2021-10-11 06:24:51 -07:00
Kubernetes Prow Robot
1ae4af402e
Merge pull request #105582 from caesarxuchao/add-aggragator-user-header-test
...
Verifying the auth headers are set for upgraded aggregated API requests
2021-10-11 06:24:39 -07:00
Kubernetes Prow Robot
9253fefb8f
Merge pull request #105469 from MikeSpreitzer/advance-epoch
...
Advance epoch
2021-10-11 04:48:40 -07:00
shawnhanx
230cb00ddd
Support SetStructuredLogging with the new events library
2021-10-11 19:06:56 +08:00
Dr. Stefan Schimanski
94b2bb1d3d
apiserver/watchcache: doc watch event fan-out to blocked watchers better
2021-10-11 12:44:37 +02:00
Kubernetes Prow Robot
1f2813368e
Merge pull request #105542 from pohly/generic-ephemeral-volume-util-kubelet
...
kubelet: use generic ephemeral volume helper functions
2021-10-11 02:16:40 -07:00
Kubernetes Prow Robot
025ac2d57a
Merge pull request #105593 from MikeSpreitzer/fix-finishing-logs
...
Update log messages in queueSet::finishRequestLocked
2021-10-11 01:12:37 -07:00
Kubernetes Prow Robot
fb82a0d7eb
Merge pull request #104873 from pohly/json-output-stream
...
JSON output streams
2021-10-10 17:04:37 -07:00
Mike Spreitzer
3906e187a6
Update log messages in finishRequestLocked
...
Make them clearer and consistent.
2021-10-09 23:48:41 -07:00
Léiyì Zhang
822cc33955
tag ginkgo tests affected by pdcsi migration for skipping and add storageclass check for statefulset and upgrade tests
2021-10-09 17:33:56 +00:00
Patrick Ohly
b22263d835
component-base: configurable JSON output
...
This implements the replacement of klog output to different files per level
with optionally splitting JSON output into two streams: one for info messages
on stdout, one for error messages on stderr. The info messages can get buffered
to increase performance. Because stdout and stderr might be merged by the
consumer, the info stream gets flushed before writing an error, to ensure that
the order of messages is preserved.
This also ensures that the following code pattern doesn't leak info messages:
klog.ErrorS(err, ...)
os.Exit(1)
Commands explicitly have to flush before exiting via logs.FlushLogs. Most
already do. But buffered info messages can still get lost during an unexpected
program termination, therefore buffering is off by default.
The new options get added to the v1alpha1 LoggingConfiguration with new command
line flags. Because it is an alpha field, changing it inside the v1beta kubelet
config should be okay as long as the fields are clearly marked as alpha.
2021-10-09 10:10:35 +02:00
Chao Xu
4bcfd45e33
Verifying the auth headers are set for upgraded aggregated API requests
2021-10-08 17:30:44 -07:00
Mike Spreitzer
a797fbd96d
Keep the progress meter R from overflowing
...
Also add test for that situation.
2021-10-08 17:11:52 -07:00
Kubernetes Prow Robot
80056f73a6
Merge pull request #105578 from deads2k/verify-mutation
...
add verify script to catch most validation mutations
2021-10-08 14:26:24 -07:00
Kubernetes Prow Robot
76cac9dcfe
Merge pull request #105475 from aojea/egress-aggregator-upgrade
...
apiserver aggregator upgrade unit test
2021-10-08 12:37:22 -07:00
David Eads
156fefa36a
add verify script to catch most validation mutations
2021-10-08 14:37:55 -04:00
Kubernetes Prow Robot
835980ac67
Merge pull request #105424 from kerthcet/cleanup/remove-scheduler-policy-config
...
remove scheduler policy config
2021-10-08 10:57:23 -07:00
Antonio Ojea
da8ce6aa3e
improve error message on control-plane endpoint reconciler
2021-10-08 19:16:46 +02:00
Kubernetes Prow Robot
f6facec054
Merge pull request #105573 from sttts/sttts-etcd-storage-free-kv-early
...
apiserver/storage: free etcd kv early in list decoding loop
2021-10-08 09:39:11 -07:00
Kubernetes Prow Robot
76c86ce324
Merge pull request #105219 from sahilvv/ga_ttl
...
GA TTLAfterFinish
2021-10-08 09:38:59 -07:00
kerthcet
a6f695581b
remove legacy scheduler policy config, as well as associated flags policy-config-file, policy-configmap, policy-configmap-namespace and use-legacy-policy-config
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2021-10-08 23:57:49 +08:00
Kubernetes Prow Robot
63f66e6c99
Merge pull request #105012 from fromanirh/cpumanager-policy-options-beta
...
node: graduate CPUManagerPolicyOptions to beta
2021-10-08 07:32:59 -07:00
Kubernetes Prow Robot
2face135c7
Merge pull request #97415 from AlexeyPerevalov/ExcludeSharedPoolFromPodResources
...
Return only isolated cpus in podresources interface
2021-10-08 05:58:58 -07:00
Dr. Stefan Schimanski
dbf98e4266
apiserver/storage: free etcd kv early in list decoding loop
2021-10-08 14:09:07 +02:00
Kubernetes Prow Robot
8d0acaa3ff
Merge pull request #105556 from MikeSpreitzer/relax-test-different-widths
...
Relax TestDifferentWidths
2021-10-08 04:12:57 -07:00
Patrick Ohly
b1ba381ef8
kubelet: also provide filesystem stats for generic ephemeral volumes
...
When checking for a reference to a PVC, the code also needs to consider that a
PVC might be referenced indirectly through an ephemeral volume source.
2021-10-08 12:11:52 +02:00
Kubernetes Prow Robot
60ab733932
Merge pull request #105546 from Huang-Wei/fix-evt-volumebinding
...
sched: adjust events to register for VolumeBinding plugin
2021-10-08 02:12:57 -07:00
Kubernetes Prow Robot
0e260a027b
Merge pull request #105559 from MikeSpreitzer/refactor-work
...
Calculate the work in each request just once
2021-10-08 01:10:58 -07:00
Patrick Ohly
963d3c122d
resource: support using Quantity as command line value
...
The Quantity type itself cannot be used because the Set method has the wrong
signature. Embedding Quantity inside a new QuantityValue type makes it possible
to inherit most of the methods while overriding the Set method.
2021-10-08 09:05:08 +02:00
Kubernetes Prow Robot
dd650bd41f
Merge pull request #105527 from rphillips/fixes/filter_terminated_pods
...
kubelet: set terminated podWorker status for terminated pods
2021-10-07 22:19:51 -07:00
Ryan Phillips
3982fcae64
go fmt
2021-10-07 20:13:43 -05:00
Mike Spreitzer
f2c46c8f9d
Calculate the work in each request just once
2021-10-07 17:51:04 -07:00
Sahil Vazirani
3988405c8d
GA TTLAfterFinish
2021-10-07 16:58:50 -07:00