Commit Graph

18811 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
a54748d652 Merge pull request #118495 from MadhavJivrajani/cleanup-cacher-testing
storage: Cleanup cacher testing
2023-06-07 08:48:12 -07:00
Madhav Jivrajani
7f87ec9406 storage: Add MadhavJivrajani as reviewer
Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-06-07 17:37:44 +05:30
Kubernetes Prow Robot
8b7c7d7839 Merge pull request #118522 from jpbetz/remove-bad-merge-key
Remove invalid merge key
2023-06-06 20:52:11 -07:00
Joe Betz
087fbc9304 Remove invalid merge key 2023-06-06 21:18:59 -04:00
Kubernetes Prow Robot
9ede836ea2 Merge pull request #118292 from cchapla/crd_webhook_metrics
Webhook conversion metrics [request/error counts and latency metrics]
2023-06-06 18:00:12 -07:00
Kubernetes Prow Robot
c831a08c8e Merge pull request #118253 from saschagrunert/streaming-cri-api
Move `cri/streaming` to `k8s.io/kubelet` staging repository
2023-06-06 14:14:12 -07:00
Kubernetes Prow Robot
73b5ed49a1 Merge pull request #114394 from SergeyKanzhelev/cri-api-versioning
Document versioning of CRI API
2023-06-06 11:18:11 -07:00
Kubernetes Prow Robot
6f116dc4d5 Merge pull request #118416 from sttts/sttts-etcd-options-complete
k8s.io/apiserver: remove skewed completion from EtcdOptions
2023-06-06 09:20:22 -07:00
Kubernetes Prow Robot
bfb3c37410 Merge pull request #117294 from humblec/open-containers
dependencies: update go-humanize to latest version
2023-06-06 09:20:11 -07:00
Kubernetes Prow Robot
93ec57734f Merge pull request #118362 from linxiulei/zero_copy
Do not copy bytes for cached serializations
2023-06-06 05:33:00 -07:00
Humble Chirammal
010343562c dependencies: update github.com/dustin/go-humanize v1.0.1
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-06-06 14:45:00 +05:30
Madhav Jivrajani
6d66fbc6b6 storage: Move cacher tests to reside with the cacher code
Doing this allows us to implement some more nuanced cacher manipulations
to be used in testing. For ex: implementing a test-only compaction method
for the watch cache.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-06-06 14:11:03 +05:30
Madhav Jivrajani
70978e4af6 cacher: Move common testing utils to a single file
This commit prepares for when cacher tests are moved here
from the `tests` package. Tests in that package redeclare
some of the testing utils that exist here, so dedup-ing them.

This commit also adapts to any changes in test util signatures.
There are still some utils that can be reused but currently are
highly specific to some tests. (ex: watch_cache_test.go)

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-06-06 14:08:25 +05:30
Kubernetes Prow Robot
16cbdef00a Merge pull request #118330 from MadhavJivrajani/test-watch-from-zero
storage: Implement TestWatchFromZero for cacher
2023-06-05 23:41:00 -07:00
Dr. Stefan Schimanski
e9e4acb1dd k8s.io/apiserver: remove skewed completion from EtcdOptions 2023-06-06 08:32:34 +03:00
Madhav Jivrajani
4d85a1f00c storage: Implement TestWatchFromZero for cacher
There exists a storage test to test for rv=0 and production
of ADDED events. This commit adapts the test to be used for
the watch cache as well.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-06-06 10:53:04 +05:30
Kubernetes Prow Robot
c07c739f04 Merge pull request #118282 from wojtek-t/retry_after_followup
Follow up from dynamic retryAfter
2023-06-05 15:03:06 -07:00
Eric Lin
3085b57869 Do not copy bytes for cached serializations
Since cachingObject has the encoded data cached and they are not
supposed to change. It's memory efficient to just copy the slice
references.

Signed-off-by: Eric Lin <exlin@google.com>
2023-06-05 18:03:48 +00:00
Sascha Grunert
db9fcfeed2 Move cri/streaming to k8s.io/kubelet staging repository
Container runtimes like CRI-O and containerd reuse the code by copying
it from Kubernetes. To have a single source of truth for the streaming
server we now move the already isolated implementation to the
k8s.io/kubelet staging repository. This way runtimes can re-use the code
without copying the parts.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-06-05 08:08:18 +02:00
TommyStarK
da4a8d831b kubectl: use bytes.Buffer.String
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-06-04 15:45:24 +02:00
Dr. Stefan Schimanski
f351c6d1ec k8s.io/apiserver: apply storage object count tracker implicitly 2023-06-02 20:24:06 +02:00
Tim Hockin
45c9e06616 Fix errant debugging code in codegen 2023-06-02 10:09:51 -07:00
Kubernetes Prow Robot
bd0ac4cba3 Merge pull request #118384 from Jefftree/gnostic-models-branch
Update gnostic library to point to gnostic-models
2023-06-02 10:06:53 -07:00
Jefftree
2111e79f56 Update gnostic references 2023-06-02 14:34:26 +00:00
Jefftree
1993a4cb37 vendor 2023-06-02 14:34:25 +00:00
Kubernetes Prow Robot
decf1e1a9b Merge pull request #117870 from howardjohn/client/run-errorhandler-race
informer: fix race against Run and SetTransform/SetWatchErrorHandler
2023-06-01 15:41:45 -07:00
Kubernetes Prow Robot
2815a28dfa Merge pull request #118339 from jpbetz/bump-cel-go
Bump cel go to latest version
2023-06-01 09:09:46 -07:00
Kubernetes Prow Robot
1bcc388dc6 Merge pull request #118351 from pohly/dra-test-driver-grpc-calls
DRA test driver: GRPC calls
2023-06-01 03:33:46 -07:00
Kubernetes Prow Robot
82f7cf6010 Merge pull request #117930 from LronDC/master
kubectl: optimize usage message of commands which have subcommands.
2023-06-01 02:19:46 -07:00
Patrick Ohly
d0a64739e2 e2e dra: collect and check GRPC calls
If kubelet plugin registration fails, it would be good to know more about the
communication with kubelet. Capturing the GRPC calls and then checking that
makes the failure messages more informative. Here's an example where a failure
was triggered by temporarily modifying the check so that it didn't find the
call:

  [FAILED] Timed out after 30.000s.
  Expected:
      <[]app.GRPCCall | len:2, cap:2>: [
          {
              FullMethod: "/pluginregistration.Registration/GetInfo",
              Request:
                  {},
              Response:
                  endpoint: /var/lib/kubelet/plugins/test-driver/dra.sock
                  name: test-driver.cdi.k8s.io
                  supported_versions:
                  - 1.0.0
                  type: DRAPlugin,
              Err: nil,
          },
          {
              FullMethod: "/pluginregistration.Registration/NotifyRegistrationStatus",
              Request:
                  plugin_registered: true,
              Response:
                  {},
              Err: nil,
          },
      ]
  to contain successful NotifyRegistrationStatus call
2023-06-01 09:58:05 +02:00
Joe Betz
68901de898 Enable optionals and add tests 2023-05-31 18:36:50 -04:00
Joe Betz
5c0b59891d Bump cel-go to v0.16.0 2023-05-31 18:36:43 -04:00
Chinmay Chapla
c539c73916 Changes to buckets and comments 2023-05-31 19:23:57 +00:00
John Howard
35d2431b3a informer: fix race against Run and SetTransform/SetWatchErrorHandler
`SetWatchErrorHandler` claims it will fail if Run() has already started.
But if they are called concurrently, it will actually trigger a data
race.

With this PR:
```
62702 runs so far, 0 failures (100.00% pass rate). 59.152682ms avg, 189.068387ms max, 26.623785ms min
```

Without this PR:
```
5012 runs so far, 38 failures (99.25% pass rate). 58.675502ms avg, 186.018084ms max, 29.468104ms min
```
2023-05-31 08:24:26 -07:00
Chinmay Chapla
6426962059 Changes to histogram buckets 2023-05-31 14:31:08 +00:00
Kubernetes Prow Robot
e1af716860 Merge pull request #115694 from mpuckett159/fix/explain-jsonpath
Fix/explain jsonpath
2023-05-30 18:19:44 -07:00
Chinmay Chapla
705c6ff315 Review comments, added metric namespace, moved utility functions, and etc 2023-05-31 01:04:57 +00:00
Kubernetes Prow Robot
12d3f5ce1a Merge pull request #117602 from alexanderConstantinescu/revise-providerid
[KCCM]:  have providerID trigger re-sync, but not be required for load balancer syncs
2023-05-30 14:57:44 -07:00
Kubernetes Prow Robot
fe9ef26af5 Merge pull request #113362 from sxllwx/ftr/extract_listobject_use_copy
Faster ExtractList. Add ExtractListWithAlloc variant.
2023-05-29 09:25:43 -07:00
Kubernetes Prow Robot
7f2a1e8cd3 Merge pull request #118132 from marseel/improve_reflector_retries
Improve backoff policy in reflector.
2023-05-29 08:23:44 -07:00
wangxiang
4b4b3b71b7 clean up dead code 2023-05-29 21:40:46 +08:00
Jordan Liggitt
bf116e8594 Optimize reflect checks further, save item type information 2023-05-28 00:46:35 -04:00
scott
12e3d9fcc4 Implement WithAlloc variants for EachListItem and ExtractList 2023-05-28 00:46:35 -04:00
scott
efc601302a Extract List reflect optimization 2023-05-27 23:26:36 -04:00
scott
b8a3bd673d Add WithAlloc interface and stub implementations with base benchmarks 2023-05-27 23:26:35 -04:00
Kubernetes Prow Robot
b374404825 Merge pull request #117505 from SergeyKanzhelev/localhostOnWord
change the seccompProfile field description to match the imlpementation
2023-05-27 14:09:40 -07:00
Kubernetes Prow Robot
d05b79c836 Merge pull request #118269 from liggitt/genproto
Update google.golang.org/genproto
2023-05-26 14:43:25 -07:00
Chinmay Chapla
8df1a5e6dc Webhook conversion metrics 2023-05-26 19:34:36 +00:00
Jordan Liggitt
a045fedd02 Update google.golang.org/genproto 2023-05-26 13:20:33 -04:00
Kubernetes Prow Robot
c35a2775b2 Merge pull request #115554 from yt2985/cleanSA
LegacyServiceAccountTokenCleanUp alpha
2023-05-26 08:54:53 -07:00