Commit Graph

21182 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
c3c8a9cfd4 Merge pull request #125676 from benluddy/cbor-bufferpool
KEP-4222: Don't pool large CBOR encode buffers
2024-07-10 17:08:41 -07:00
Kubernetes Prow Robot
2d877b5259 Merge pull request #125629 from benluddy/cbor-rawextension
KEP-4222: Automatically transcode RawExtension between unstructured protocols.
2024-07-10 14:54:35 -07:00
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
6a45c8b7d1 Merge pull request #125944 from timofurrer/fix/error-msg-type
Fix typo in type name of watch decode error
2024-07-10 09:02:50 -07:00
Kubernetes Prow Robot
0c8b3e5f30 Merge pull request #125986 from vinayakankugoyal/typo
Fix typo in error message for anonymous field in AuthenticationConfig…
2024-07-09 20:45:05 -07:00
Vinayak Goyal
27e8923c70 Fix typo in error message for anonymous field in AuthenticationConfiguration. 2024-07-09 21:04:28 +00:00
Ben Luddy
4755e1f859 Automatically transcode RawExtension between unstructured protocols. 2024-07-09 17:02:34 -04:00
Kubernetes Prow Robot
7127246344 Merge pull request #125945 from fxierh/sample-apiserver-rbac-fix
Add missing RBAC permissions to the sample-apiserver
2024-07-09 00:30:41 -07:00
Kubernetes Prow Robot
8c7ee69212 Merge pull request #124730 from tkashem/read-write-deadline-test
Add test to document request timeout behavior
2024-07-08 16:21:25 -07:00
Kubernetes Prow Robot
b106c291c3 Merge pull request #125841 from saschagrunert/get-container-events-ctx
cri: allow `GetContainerEvents` to pass a context
2024-07-08 14:13:41 -07:00
Kubernetes Prow Robot
53c8efbe71 Merge pull request #125743 from benluddy/extract-roundtrip-to-unstructured
Extract RoundtripToUnstructured to apimachinery apitesting library.
2024-07-08 08:22:49 -07:00
Kubernetes Prow Robot
d2d55831e5 Merge pull request #125615 from benluddy/apiextensions-json-unmarshal-copy
Copy input to UnmarshalJSON on the apiextensions JSON types.
2024-07-08 08:22:42 -07:00
Timo Furrer
fed49d06aa Fix typo in type name of watch decode error 2024-07-08 07:52:38 +02:00
Feilian Xie
a25008dd7a Add missing RBAC permissions to the sample-apiserver.
Signed-off-by: Feilian Xie <fxie@redhat.com>
2024-07-08 13:52:03 +08:00
Kubernetes Prow Robot
7ec344dcef Merge pull request #124994 from TessaIO/fix-autocompletion-for-set-context-namespace
fix: add namespace autocompletion for kubectl config set-context command
2024-07-07 21:39:43 -07:00
TessaIO
62be85249e fix: add namespace autocompletion for kubectl config set-context command
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
2024-07-07 21:10:36 +02:00
Kubernetes Prow Robot
07cc20a750 Merge pull request #125922 from dims/update_otel_27
Update opentelemetry dependencies to the latest release (Take 2)
2024-07-06 17:31:14 -07:00
Kubernetes Prow Robot
40225a788c Merge pull request #125887 from fxierh/fakediscovery-fix
[client-go] Enable FakeDiscovery client to simulate errors by fixing error handling
2024-07-06 15:31:50 -07:00
Kubernetes Prow Robot
08e1ceaa0d Merge pull request #123099 from MikeSpreitzer/update-sample-controller
Update the sample controller
2024-07-06 14:12:53 -07:00
Mike Spreitzer
fdbf0bbb2d Finish switching to utilruntime.HandleErrorWithContext
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
2024-07-06 16:11:23 -04:00
Feilian Xie
33557a2f6c Return the error returned by Invokes so the FakeDiscovery client is able to simulate any error with reactors.
Signed-off-by: Feilian Xie <fxie@redhat.com>
2024-07-07 03:23:08 +08:00
Kubernetes Prow Robot
8d0ee91fc7 Merge pull request #125835 from benluddy/roundtrip-error-fmt-strings
Fix fmt verbs for strings in roundtrip test errors
2024-07-06 05:02:53 -07:00
Davanum Srinivas
ff7942be83 update OpenTelemetry dependencies and grpc
This update dropped the otelgrpc → cloud.google.com/go/compute dependency,
among others. This dropped out because genproto cleaned up it's dependencies
on google cloud libraries, and otel updated - details in #113366.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Co-Authored-By: David Ashpole <dashpole@google.com>
2024-07-05 21:21:30 -04:00
Siyuan Zhang
d31aebe572 fix lock bug for componentGlobalsRegistry
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-07-05 15:50:10 +00:00
cpanato
8693df66d5 Update publishing-bot rules to Go 1.22.5
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-07-05 09:18:52 +02:00
Kubernetes Prow Robot
c87c06d7ff Merge pull request #125850 from dims/fix-for-typecheck-does-not-notice-compile-errors-in-test-files
Fix for typecheck doesn't notice compile errors in test files
2024-07-04 13:21:42 -07:00
Davanum Srinivas
c230a45383 Fix for typecheck doesn't notice compile errors in test files
- ensure we add all the staging modules so the _test files in there are "loaded"
- use build tags to skip tests that fail to build in specific os/arch pairs

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Co-Authored-By: Tim Hockin <thockin@google.com>
2024-07-04 15:01:41 -04:00
cpanato
0e9308f3bc Bump images, dependencies and versions to go 1.22.5 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-07-04 16:34:18 +02:00
Kubernetes Prow Robot
8ebfb8c2c2 Merge pull request #125842 from soltysh/remove_deprecated_flags
Remove deprecated kubectl run and drain flags
2024-07-04 06:46:32 -07:00
Kubernetes Prow Robot
9ec91e6551 Merge pull request #125848 from jpbetz/fix-auth-selectors
Drop removed APIs from etcd data tests, remove special case logic for binaryVersion=0.0 and all usages
2024-07-03 17:40:32 -07:00
Kubernetes Prow Robot
d95de06fa7 Merge pull request #125659 from saschagrunert/oci-volumesource-cri-api
[KEP-4639] Add OCI VolumeSource CRI API
2024-07-03 15:46:15 -07:00
Joe Betz
1864e7131e Remove special case logic in apiserver to serve all APIs when binary version is set artifically to 0.0 2024-07-03 14:31:14 -04:00
Mike Spreitzer
7848612de8 Brush up the sample controller
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
2024-07-03 09:57:35 -04:00
Sascha Grunert
448430701b Add OCI VolumeSource CRI API
Adding the required container runtime interface API so that runtimes and
consumers can start using it.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-07-03 09:07:46 +02:00
Abu Kashem
ae647032a7 apiserver: remove feature gate APIPriorityAndFairness 2024-07-02 13:00:43 -04:00
Maciej Szulik
4b5cf0a276 Remove deprecated kubectl drain flag
delete-local-data was deprecated back in v1.20 with this commit:
625e47aaa2

It's about time we entirely drop the support for this flag. Users should
be already using delete-emptydir-data instead.
2024-07-02 15:52:04 +02:00
Maciej Szulik
f1917f18eb Remove deprecated kubectl run flags
This commits removes the following flags from kubectl run:
- filename
- force
- grace-period
- kustomize
- recursive
- timeout
- wait

Those flags are deprecated since v1.26, see this commit
09804a198c.
2024-07-02 15:51:49 +02:00
Kubernetes Prow Robot
e341d5b1aa Merge pull request #125626 from linxiulei/fix_routine_log
Fix httplog not logging watch duration
2024-07-02 04:05:59 -07:00
Sascha Grunert
ae8f6f002d cri: allow GetContainerEvents to pass a context
The context can be used for timeout purposes for example, not really for
Kubernetes but other consumers like cri-tools.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-07-02 12:03:34 +02:00
Eric Lin
06c7058115 Fix httplog not logging watch duration in separate goroutines
Signed-off-by: Eric Lin <exlin@google.com>
2024-07-02 09:58:44 +00:00
Ben Luddy
6c18d0ec2e Fix fmt verbs for strings in roundtrip test errors.
Some of the calls to t.Errorf from apitesting/roundtrip use the %#v verb (Go-syntax representation)
for string arguments that are have already been formatted for legibility by something like like
cmp.Diff. Quoting and escaping newlines in these strings makes them harder to read, like this:

> ...
> "(*storage.CSIDriver)({\n TypeMeta: (v1.TypeMeta) {\n Kind: (string) \"\",\n APIVersion: (string)
> \"\"\n },\n ObjectMeta: (v1.ObjectMeta) {\n Name: (string) (len=15) \"犱âM邽[ǎ*ʄ\",\n
> ...
2024-07-01 23:11:53 -04:00
Kubernetes Prow Robot
79fee524e6 Merge pull request #125483 from wojtek-t/storage_readiness_hook
Implement resilient watchcache initialization post-start-hook
2024-07-01 13:48:29 -07:00
Wojciech Tyczyński
a5772bd425 Implement resilient watchcache initialization post-start-hook 2024-07-01 12:54:57 +02:00
Kubernetes Prow Robot
d729af9446 Merge pull request #125591 from p0lyn0mial/upstream-promote-watch-list-to-beta
Promote WatchList feature to Beta
2024-07-01 02:31:14 -07:00
Kubernetes Prow Robot
93d56511e6 Merge pull request #125021 from aojea/servicecidrbeta
KEP-1880 Multiple Service CIDRs: Graduate to Beta (2/2)
2024-06-30 08:53:25 -07:00
Antonio Ojea
bc8bce2ef9 make update 2024-06-30 09:48:46 +00:00
Antonio Ojea
c1d06c0ae4 use networking v1beta1 for kubectl describe 2024-06-30 09:48:46 +00:00
Antonio Ojea
ca2d0857b6 promote ServiceCIDR and IPAddress to beta 2024-06-30 09:48:42 +00:00
Lin Yang
4093c354f0 [code-generator] feat: add func for generating register code (#124946)
* feat: add func for generating register code

* refactor:remove unused local variable

* fix: make the function name singular

Signed-off-by: Lin Yang <reaver@flomesh.io>

* fix: precisely matching the comment tag for register-gen

Signed-off-by: Lin Yang <reaver@flomesh.io>

---------

Signed-off-by: Lin Yang <reaver@flomesh.io>
2024-06-28 18:26:03 -07:00
Kubernetes Prow Robot
ac9aec9f9b Merge pull request #125116 from pohly/dra-one-of-source
DRA: remove "source" indirection from v1 Pod API
2024-06-28 12:46:45 -07:00