Commit Graph

20945 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9c5643f8fc Merge pull request #125390 from TommyStarK/kube-apiserserver/remove-deprecated-otel-NewNoopTracerProvider
kube-apiserver: remove deprecated otel NewNoopTracerProvider
2024-06-11 17:49:44 -07:00
Kubernetes Prow Robot
14b4dc83d6 Merge pull request #125438 from wojtek-t/watchcache_use_rlocker
Reduce lock contention by using reader lock in watchcache interval
2024-06-11 14:43:51 -07:00
Kubernetes Prow Robot
b669abc181 Merge pull request #122038 from lowang-bh/fixPodshow
show pod Status as phase Failed or Succeeded if it has deletionTimestamp
2024-06-11 14:43:35 -07:00
Kubernetes Prow Robot
541cfa2b87 Merge pull request #125443 from xmudrii/go-1224-12111
Update publishing-bot rules to Go 1.22.4 and 1.21.11
2024-06-11 09:18:49 -07:00
lowang-bh
4bd3274f43 show pod Status as phase Failed or Succeeded if it has deletionTimestamp
Signed-off-by: lowang-bh <lhui_wang@163.com>

fix according to comments
Signed-off-by: lowang-bh <lhui_wang@163.com>
2024-06-11 22:04:15 +08:00
Marko Mudrinić
12fd3d467c Update publishing-bot rules to Go 1.22.4 and 1.21.11
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2024-06-11 15:03:03 +02:00
Marek Siarkowicz
faa6193f34 Add tests for how recursive parameter works with object prefixes 2024-06-11 14:45:33 +02:00
Wojciech Tyczyński
6f0a400a1a Reduce lock contention by using reader lock in watchcache interval 2024-06-11 12:20:57 +02:00
Lukasz Szaszkiewicz
f6c68908ba client-go/reflector: use consistencydetector.IsDataConsistencyDetectionForWatchListEnabled 2024-06-11 09:17:14 +02:00
Lukasz Szaszkiewicz
f7f3809c51 client-go/consistencydetector: introduce CheckWatchListFromCacheDataConsistencyIfRequested 2024-06-11 09:17:10 +02:00
Kubernetes Prow Robot
a7ca13ea29 Merge pull request #125363 from cpanato/update-go-images
[go] Bump images, dependencies and versions to go 1.22.4 and distroless iptables/setcap/debian-base
2024-06-10 15:07:47 -07:00
Ben Luddy
b24defacc5 Allow decoding RFC 3339 CBOR strings to time.Time.
We had been relying on a bug in the library when it should have been rejected by default. That bug
has been fixed and a new option added to opt-in to the behavior we need.
2024-06-10 10:03:36 -04:00
Ben Luddy
c4279660ca Bump fxamacker/cbor/v2 to v2.7.0-beta.
This library release makes a number of behaviors configurable in ways that are required for CBOR
support in Kubernetes.
2024-06-10 10:02:04 -04:00
Kubernetes Prow Robot
6ba9fa89fb Merge pull request #125377 from wojtek-t/watchcache_resource_version_metric
Expose resource version metrics from watchcache
2024-06-10 03:31:29 -07:00
Kubernetes Prow Robot
e328c8fbf1 Merge pull request #125304 from p0lyn0mial/upstream-dynamic-client-uses-consistency-detector
dynamic-client: data consistency checker for list requests
2024-06-09 07:37:38 -07:00
TommyStarK
cce8551272 kube-apiserver: remove deprecated otel NewNoopTracerProvider
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2024-06-07 19:57:37 +02:00
Lukasz Szaszkiewicz
79370c6d67 client-go/dynamic: use CheckListFromCacheDataConsistencyIfRequested 2024-06-07 16:10:13 +02:00
Lukasz Szaszkiewicz
a2a48a475b client-go/util/consistencydetector: extend TestCheckListFromCacheDataConsistencyIfRequestedInternalHappyPath to work with unstructured list 2024-06-07 15:47:41 +02:00
Lukasz Szaszkiewicz
c5904424b2 client-go/util/consistencydetector: refactor TestCheckListFromCacheDataConsistencyIfRequestedInternalHappyPath to work with unstructured data 2024-06-07 15:47:41 +02:00
Kubernetes Prow Robot
96815d6dc8 Merge pull request #125379 from p0lyn0mial/upstream-unstructured-testdataconsistencychecker
client-go/consistencydetector: refactor TestDataConsistencyChecker to work with unstructured data
2024-06-07 06:25:43 -07:00
Kubernetes Prow Robot
169a952720 Merge pull request #125302 from karlkfi/karl-informer-watcher-test
Update TestNewInformerWatcher for WatchListClient
2024-06-07 04:52:20 -07:00
Lukasz Szaszkiewicz
c8971c456f client-go/consistencydetector: extend TestDataConsistencyChecker to test unstructured data 2024-06-07 13:20:56 +02:00
Lukasz Szaszkiewicz
d535f55ef9 client-go/consistencydetector: refactor TestDataConsistencyChecker to work with unstructured data 2024-06-07 10:59:18 +02:00
Wojciech Tyczyński
dbed4f1210 Expose resource version metrics from watchcache 2024-06-07 09:39:23 +02:00
Kubernetes Prow Robot
3532601ad8 Merge pull request #124963 from p0lyn0mial/upstream-data-consistency-checker-for-list-requests
client-go: data consistency checker for list requests
2024-06-07 00:33:04 -07:00
Kubernetes Prow Robot
eef6c6082d Merge pull request #124642 from wojtek-t/resilient_watchcache_initialization
Implement ResilientWatchCacheInitialization
2024-06-06 18:38:14 -07:00
Kubernetes Prow Robot
4e2a6201a4 Merge pull request #125356 from p0lyn0mial/upstream-improve-testdrivechecklistfromcache-test
improve TestDriveCheckListFromCacheDataConsistencyIfRequested
2024-06-06 09:16:38 -07:00
cpanato
a3b193c6e9 [go] Bump images, dependencies and versions to go 1.22.4 and distroless iptables/setcap/debian-base
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-06-06 18:13:15 +02:00
Wojciech Tyczyński
2854d84056 Fix ChangeCRD test 2024-06-06 15:59:03 +02:00
Sascha Grunert
c08e3aff65 Add k8s.io/cri-client to staging/README.md
The new repo was missing from the list, so now it has been added.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-06-06 13:23:09 +02:00
Lukasz Szaszkiewicz
448180db60 make update 2024-06-06 10:31:58 +02:00
Lukasz Szaszkiewicz
7c03e3774d client-gen: rework list and use CheckListFromCacheDataConsistencyIfRequested 2024-06-06 10:31:45 +02:00
Lukasz Szaszkiewicz
82794c4963 fix TestDriveCheckListFromCacheDataConsistencyIfRequested 2024-06-06 10:27:23 +02:00
Kubernetes Prow Robot
9e2075b3c8 Merge pull request #125189 from mimowo/improve-ready-comment
Improve the Job API comment for ready field
2024-06-05 11:37:07 -07:00
Kubernetes Prow Robot
a2911e06a7 Merge pull request #125078 from Jefftree/patch-1
Ignore sample-controller binary
2024-06-05 06:53:01 -07:00
Kubernetes Prow Robot
dae37c2164 Merge pull request #125335 from p0lyn0mial/upstream-consistency-decector-handles-legacy-case
client-go/consistencydetector: handles the watch cache legacy case
2024-06-05 05:37:20 -07:00
Lukasz Szaszkiewicz
fe8a2d222c client-go/consistencydetector: handles the watch cache legacy case 2024-06-05 11:56:28 +02:00
Kubernetes Prow Robot
a080057dab Merge pull request #125154 from alvaroaleman/rename
Sample Controller: Use one variable for key throughout
2024-06-04 12:53:25 -07:00
Kubernetes Prow Robot
5d88b0e08f Merge pull request #124381 from alexzielenski/cel/allOf-validation
apiextensions-apiserver: Support CEL and additionalProperties used inside `allOf`
2024-06-04 10:14:10 -07:00
Kubernetes Prow Robot
e6d641651a Merge pull request #124692 from linxiulei/watchlist_opt
cacher: apply key for initial events
2024-06-04 04:22:20 -07:00
Eric Lin
d9c6c8aa50 cacher: apply key for initial events
For case of SendInitialEvents, a buffer of objects is created. That
process takes a significant amount of memory and CPU when the resource
is of a large volume. Many objects may be not relevant when key is provided.
This commit applies key when composing the buffer for SendInitialEvents.

Signed-off-by: Eric Lin <exlin@google.com>
2024-06-04 09:20:10 +00:00
Wojciech Tyczyński
a8ef6e9f01 Implement ResilientWatchCacheInitialization 2024-06-04 10:36:46 +02:00
Karl Isenberg
28e3a728e5 Update TestNewInformerWatcher for WatchListClient
- Switch to using the ProxyWatcher to validate the dance between
  closing the stop channel and closing the result channel.
- Use the new clientfeaturestesting.SetFeatureDuringTest to test with
  the WatchListClient enabled and disabled. These should result in
  almost the exact same output events from the informer
  (list ordering not garenteed), but with different input events
  recieved from the apiserver.
2024-06-03 17:31:59 -07:00
Karl Isenberg
ab5aa4762f Improve Reflector unit tests
- Add tests to confirm that Stop is always called.
- Add TODOs to show were Stop is not currently being called
  (to fix in a future PR)
2024-06-03 12:15:38 -07:00
Lukasz Szaszkiewicz
a20abdb1f4 cacher: dispatchEvents is synced to watchCache.listResourceVersion
The internal informer populates the RV as soon as it conducts
The first successful sync with the underlying store.
The cache must wait until this first sync is completed to be deemed ready.
Since we cannot send a bookmark when the lastProcessedResourceVersion is 0,
we poll aggressively for the first list RV before entering the dispatch loop.
2024-06-03 10:26:50 +02:00
Kubernetes Prow Robot
a78542e357 Merge pull request #125209 from humblec/etcd-3.5.14
make use of etcd v3.5.14 in the builds.
2024-06-01 14:12:31 -07:00
Humble Chirammal
07ef65a834 make use of etcd v3.5.14 in the builds.
https://github.com/etcd-io/etcd/releases/tag/v3.5.14

This release has been built with GO 1.21.10

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-06-01 09:06:35 +05:30
Kubernetes Prow Robot
790dfdbe38 Merge pull request #125238 from munnerz/kep-4193-nodebinding-beta
KEP-4193: promote ServiceAccountTokenNodeBinding feature to beta
2024-05-31 12:27:18 -07:00
Kubernetes Prow Robot
723c269641 Merge pull request #124916 from TessaIO/test-improve-unit-tests-for-container-name-autocompletion
test: improve unit tests for container name autocompletion
2024-05-31 12:27:09 -07:00
Alexander Zielenski
fd656ad3b4 add tests for completeness cases 2024-05-31 11:20:00 -07:00