Commit Graph

123507 Commits

Author SHA1 Message Date
Ben Luddy
a19d142f0d
Don't pool large CBOR encode buffers.
Objects in a sync.Pool are assumed to be fungible. This is not a good assumption for pools
of *bytes.Buffer because a *bytes.Buffer's underlying array grows as needed to accomodate writes. In
Kubernetes, apiservers tend to encode "small" objects very frequently and much larger
objects (especially large lists) only occasionally. Under steady load, pooled buffers tend to be
borrowed frequently enough to prevent them from being released. Over time, each buffer is used to
encode a large object and its capacity increases accordingly. The result is that practically all
buffers in the pool retain much more capacity than needed to encode most objects.

As a basic mitigation for the worst case, buffers with more capacity than the default max request
body size are never returned to the pool.
2024-07-10 17:27:49 -04:00
Kubernetes Prow Robot
bffc02b955
Merge pull request #125738 from pohly/hack-local-up-cluster-cors-fix
hack/local-up-cluster.sh: adapt to stricter --cors-allowed-origins
2024-06-26 20:40:18 -07:00
Kubernetes Prow Robot
921b69b133
Merge pull request #125582 from chrischdi/pr-kubeadm-kep-4471
kubeadm: implement ControlPlaneKubeletLocalMode
2024-06-26 20:40:12 -07:00
Kubernetes Prow Robot
480507464f
Merge pull request #125742 from siyuanfoundation/api-comp-ver1
Add KUBE_EMULATED_VERSION env variable to set the emulated-version of apiserver
2024-06-26 18:59:33 -07:00
Kubernetes Prow Robot
905fdda366
Merge pull request #125739 from seans3/ignore-portforward-leak
Ignore reported goroutine leak during SPDY shutdown
2024-06-26 17:57:14 -07:00
Kubernetes Prow Robot
152a0ca474
Merge pull request #125712 from benluddy/remove-cbor-test-skips
KEP-4222: Remove temporary mechanism for skipping CBOR tests.
2024-06-26 17:57:04 -07:00
Kubernetes Prow Robot
11446a394f
Merge pull request #125745 from BenTheElder/ping-ping
bump  github.com/moby/spdystream to v0.3.0
2024-06-26 15:15:41 -07:00
Kubernetes Prow Robot
9626cd34f4
Merge pull request #125741 from nilekhc/svm-crd-flake
[Storage Version Migrator] fix: increases timeout on CRD update check
2024-06-26 15:15:32 -07:00
Kubernetes Prow Robot
3084c15dd9
Merge pull request #125723 from p0lyn0mial/upstream-refactor-watch-list-kcm-units
kube-controller-manager: refactor watchlist unit tests
2024-06-26 15:15:22 -07:00
Kubernetes Prow Robot
a3a4f9658b
Merge pull request #125492 from Nordix/esotsal/123951
pod-resize-scheduler-tests: fix ci-kubernetes-e2e-ec2
2024-06-26 14:13:48 -07:00
Kubernetes Prow Robot
cd19796316
Merge pull request #125475 from AkihiroSuda/rro
KEP-3857: promote RecursiveReadOnlyMounts feature to beta
2024-06-26 14:13:39 -07:00
Kubernetes Prow Robot
c7e316374c
Merge pull request #125733 from wojtek-t/test_watch_semantics_flake
Fix test flakes for TestWatchSemantics
2024-06-26 13:09:45 -07:00
Quan Tian
59d90eb17e
Make the output of kubectl describe service more informative (#125117)
* kubectl: add internalTrafficPolicy to Service describer

* kubectl: add loadBalancer ipMode to Service describer

* kubectl: fix duplicate IP fields in Service describer

For a LoadBalancer Service, there were two "IP" fields in the output of
`kubectl describe service` if its loadBalancerIP is not empty, which
looks ambiguous.
2024-06-26 13:09:36 -07:00
Benjamin Elder
c5aa8fdc71 bump github.com/moby/spdystream to v0.3.0
picks up fix for data-race in Ping
2024-06-26 12:27:14 -07:00
Kubernetes Prow Robot
1d51766c7a
Merge pull request #125698 from pohly/dra-log-output
DRA: log output
2024-06-26 12:01:03 -07:00
Kubernetes Prow Robot
8637867c9c
Merge pull request #125422 from benluddy/cbor-disable-binarymarshaler
KEP-4222: Disable recognition of Binary(Unm|M)arshaler in CBOR serializer.
2024-06-26 12:00:54 -07:00
Kubernetes Prow Robot
25a43070ee
Merge pull request #123468 from ffromani/fix-mm-metrics-test
node: memory manager: fix the metrics tests
2024-06-26 12:00:45 -07:00
Sotiris Salloumis
7dbc2a9ea8 pod-resize-scheduler-tests: fix ci-kubernetes-e2e-ec2 2024-06-26 20:20:13 +02:00
Siyuan Zhang
126a47d4b5 Add KUBE_EMULATED_VERSION env variable to set the emulated-version of apiserver.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-06-26 11:20:10 -07:00
Kubernetes Prow Robot
a4b8d0faa8
Merge pull request #125731 from dashpole/revert_otel
Revert "Update opentelemetry dependencies to the latest release."
2024-06-26 10:59:18 -07:00
Kubernetes Prow Robot
2b122bc5fa
Merge pull request #125650 from mjudeikis/mjudeikis/generic-controlplane
Generic Control Plane: Add Extra.DisableAvailableConditionController for kube-aggregator
2024-06-26 10:59:10 -07:00
Kubernetes Prow Robot
437f6e92ec
Merge pull request #125641 from nirs/sample-cli-plugin-help
Sample cli plugin help
2024-06-26 10:59:02 -07:00
Kubernetes Prow Robot
b29dce0757
Merge pull request #125627 from yt-huang/clean-up
drop deprecated PollWithContext and adopt PollUntilContextTimeout ins…
2024-06-26 10:58:55 -07:00
Kubernetes Prow Robot
e57f8ad80b
Merge pull request #125439 from Octopusjust/k8s-pr22
pkg/printers: drop deprecated pointer package
2024-06-26 10:58:48 -07:00
Nilekh Chaudhari
027630a0dc fix: increases timeout on CRD update check
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2024-06-26 10:49:16 -07:00
Sean Sullivan
5ba8773126 Ignore reported goroutine leak during SPDY shutdown 2024-06-26 10:22:14 -07:00
Patrick Ohly
8cb4a19450 hack/local-up-cluster.sh: adapt to stricter --cors-allowed-origins
https://github.com/kubernetes/kubernetes/pull/112809 tightened what regular
expressions are allowed and now requires that they start matching with a double
dash.
2024-06-26 18:52:03 +02:00
Wojciech Tyczyński
5081ba45f9 Fix test flakes for TestWatchSemantics 2024-06-26 17:49:54 +02:00
Kubernetes Prow Robot
44c1a0eec2
Merge pull request #124667 from linxiulei/trim
controlplane/apiserver: Trim managedFields off self-requested informers
2024-06-26 08:10:20 -07:00
David Ashpole
e89a2bf6ac
./hack/update-vendor.sh 2024-06-26 14:16:58 +00:00
David Ashpole
7bcb2a96f2
Revert "fix tracing integration test"
This reverts commit a3b7cb9374.
2024-06-26 14:14:26 +00:00
David Ashpole
8a62765d84
Revert "update go workspace"
This reverts commit 045554491a.
2024-06-26 14:14:18 +00:00
David Ashpole
56fdcf0837
Revert "update unwanted dependencies"
This reverts commit d65029f9bb.
2024-06-26 14:14:06 +00:00
David Ashpole
e94047c900
Revert "update OpenTelemetry dependencies"
This reverts commit 82e9ce79c7.
2024-06-26 14:13:33 +00:00
Kubernetes Prow Robot
66126bbdc6
Merge pull request #125721 from p0lyn0mial/upstream-cacher-tests-decrease-time
apiserver/storage: decrease running time of RunWatchSemantics
2024-06-26 06:28:28 -07:00
Kubernetes Prow Robot
7996836cce
Merge pull request #125717 from cpanato/update-rules
update publishing rules to use go1.22.4 for all branches
2024-06-26 06:28:21 -07:00
Ben Luddy
cc5a18678f
Disable recognition of Binary(Unm|M)arshaler in CBOR serializer.
The underlying CBOR library will by default encode a value to and from byte string if its type
implements encoding.BinaryMarshaler or encoding.BinaryUnmarshaler, respectively. This is now
disabled via an option to avoid diverging from JSON in those cases.
2024-06-26 09:19:31 -04:00
Lukasz Szaszkiewicz
cc7063e96d kube-controller-manager: refactor watchlist unit tests 2024-06-26 12:47:46 +02:00
Kubernetes Prow Robot
4b2fafc75e
Merge pull request #125722 from serathius/remove-5s
Remove 5 seconds from TestWatchStreamSeparation execution by reusing etcdserver
2024-06-26 03:34:20 -07:00
Marek Siarkowicz
1c111c603e Remove 5 seconds from TestWatchStreamSeparation execution by reusing etcdserver 2024-06-26 11:32:57 +02:00
Lukasz Szaszkiewicz
c6ef512b5b apiserver/storage: decrease running time of RunWatchSemantics 2024-06-26 10:50:42 +02:00
Kubernetes Prow Robot
084d6c4968
Merge pull request #125699 from pohly/scheduler-framework-logging
scheduler: fix klog.KObjSlice when applied to []*NodeInfo
2024-06-26 01:50:23 -07:00
Kubernetes Prow Robot
e07314860c
Merge pull request #125713 from pacoxu/revert-125405-upstream-consistent-read-from-cache-supports-pagination
Revert "apiserver/storage/cacher: consistent read from cache supports limit"
2024-06-26 00:02:29 -07:00
Kubernetes Prow Robot
01f9712c6f
Merge pull request #125419 from benluddy/cbor-byteslice-base64
KEP-4222: Enable JSON-compatible base64 encoding of []byte for CBOR.
2024-06-26 00:02:22 -07:00
cpanato
0880712970
update publishing rules to use go1.22.4 for all branches
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-06-26 08:56:45 +02:00
Patrick Ohly
719a49cc13 scheduler: fix klog.KObjSlice when applied to []*NodeInfo
The DRA plugin does that. It didn't actually work and only printed an error
message about NodeInfo not implementing klog.KMetata. That's not a compile-time
check due to limitations with Go generics and had been missed earlier.
2024-06-26 08:11:31 +02:00
Patrick Ohly
fc55fecd45 ktesting: support capturing log output
This is a feature of the underlying k8s.io/klog/v2/ktesting which is
useful also when using the Kubernetes ktesting.
2024-06-26 08:11:31 +02:00
Kubernetes Prow Robot
10e3ec8975
Merge pull request #125706 from jpbetz/fix-fixture-test
Remove test dependency on swagger.json to fix client-go tests
2024-06-25 21:56:27 -07:00
Kubernetes Prow Robot
fb0195df11
Merge pull request #123428 from atiratree/UnhealthyPodEvictionPolicy-GA
promote PDBUnhealthyPodEvictionPolicy to GA
2024-06-25 21:56:20 -07:00
Paco Xu
df17ea2e37
Revert "apiserver/storage/cacher: consistent read from cache supports limit" 2024-06-26 11:51:12 +08:00