Commit Graph

20744 Commits

Author SHA1 Message Date
Patrick Ohly
50c1243760 cloud providers: enhance context support
27a68aee3a introduced context support for events. Creating an event
broadcaster with context makes tests more resilient against leaking goroutines
when that context gets canceled at the end of a test and enables per-test
output via ktesting.

While at it, all context.TODO calls get removed in files that were touched.
2024-04-25 11:57:16 +02:00
Kubernetes Prow Robot
e19ff7771d Merge pull request #123777 from linxiulei/nc
Remove setting NoRouteCreated condition
2024-04-25 01:20:42 -07:00
Kubernetes Prow Robot
58788c2f7b Merge pull request #124466 from serathius/featuregate-defer
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 15:31:21 -07:00
Kubernetes Prow Robot
9c4d207d18 Merge pull request #124513 from serathius/workarounds
Remove workarounds for https://github.com/etcd-io/etcd/issues/17507
2024-04-24 14:29:47 -07:00
Kubernetes Prow Robot
0b15f8cbfc Merge pull request #124344 from wojtek-t/fix_transformer
Fix race in informer transformers
2024-04-24 12:34:53 -07:00
Marek Siarkowicz
a08d1b5f32 Remove workarounds for https://github.com/etcd-io/etcd/issues/17507 2024-04-24 20:28:41 +02:00
Marek Siarkowicz
3ee8178768 Cleanup defer from SetFeatureGateDuringTest function call 2024-04-24 20:25:29 +02:00
Kubernetes Prow Robot
0f06328096 Merge pull request #124469 from serathius/etcd-3.5.13
Upgrade etcd libraries to v3.5.13
2024-04-24 08:38:17 -07:00
Kubernetes Prow Robot
b3f5c57223 Merge pull request #124263 from alvaroaleman/typed
Workqueue: Add generic versions that are properly typed
2024-04-24 08:38:08 -07:00
bells17
1c917aa463 component-helpers: Support structured and contextual logging (#120637) 2024-04-24 03:06:15 -07:00
Wojciech Tyczyński
e9f74597a8 Fix race in informer transformers 2024-04-24 10:42:01 +02:00
Marek Siarkowicz
3e5b03eb43 Upgrade etcd libraries to v3.5.13
Add otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents) to tracing options due to https://github.com/open-telemetry/opentelemetry-go-contrib/pull/3964
2024-04-24 09:56:39 +02:00
Kubernetes Prow Robot
6f6ba4ae7f Merge pull request #123572 from alexzielenski/cel/name-formats
feature: add name formats library to CEL
2024-04-23 20:09:02 -07:00
Brian Pursley
f011ed5ca5 Improve performance of TestForceApply unit test.
Change backOffPeriod from const to var, so that it can be set lower during unit test.
2024-04-23 22:04:38 -04:00
Kubernetes Prow Robot
6289589509 Merge pull request #124075 from pohly/dra-api-comments
DRA: API cleanup + fix
2024-04-23 15:07:50 -07:00
Alexander Zielenski
0ed65fca7a feature: add name formats library to CEL 2024-04-23 10:22:44 -07:00
Alexander Zielenski
11a6edfc88 test: typecheck cel test cases 2024-04-23 10:21:43 -07:00
Kubernetes Prow Robot
68879a4c46 Merge pull request #124474 from serathius/allow-bookmarks
Allow bookmark events in between delete/modify in testSimpleCRUD
2024-04-23 07:04:41 -07:00
Kubernetes Prow Robot
695a984f56 Merge pull request #124027 from liangyuanpeng/etcd_update_3.5.13
etcd: update to v3.5.13
2024-04-23 06:00:02 -07:00
Kubernetes Prow Robot
78533415e0 Merge pull request #122657 from p0lyn0mial/upstream-client-go-rest-client-watch-list
add watchlist to client-go rest client
2024-04-23 05:59:53 -07:00
Marek Siarkowicz
dc6cf87696 Allow bookmark events in between delete/modify in Test 2024-04-23 13:35:33 +02:00
Lukasz Szaszkiewicz
ad3d138cda client-go/rest: introduce watchlist 2024-04-23 12:54:11 +02:00
Kubernetes Prow Robot
16a594f907 Merge pull request #124328 from jiahuif-forks/deps/cel-go
bump cel-go to v0.20.1 and refit CEL libraries
2024-04-22 18:26:21 -07:00
Kubernetes Prow Robot
80134bcc85 Merge pull request #124340 from benluddy/dynamic-client-golden-request-test
Add test to detect unintentional changes in dynamic client requests.
2024-04-22 14:18:37 -07:00
Kubernetes Prow Robot
e2bd80aeb1 Merge pull request #123626 from benluddy/cbor-test-encode-no-duplicate-map-key
KEP-4222: Add tests for CBOR encoder handling of duplicate field names/tags.
2024-04-22 13:01:27 -07:00
Kubernetes Prow Robot
6b260382a1 Merge pull request #121574 from skitt/generic-lister-gen
Generify lister-gen
2024-04-22 11:53:12 -07:00
Andrew DeMaria
b2d1aef1e3 apiserver/options: avoid segfault by handling unset core k8s client
Fixes: https://github.com/kubernetes/apiserver/issues/108
Signed-off-by: Andrew DeMaria <ademaria@cloudflare.com>
2024-04-22 12:51:27 -06:00
Jiahui Feng
350fcf957e generated: ./hack/update-vendor.sh 2024-04-22 10:54:32 -07:00
Kubernetes Prow Robot
76de052680 Merge pull request #124346 from jwcesign/master
upgrade: upgrade dependencies github.com/prometheus/common to the newest version
2024-04-22 07:11:25 -07:00
Patrick Ohly
acfaf8c275 DRA: sync internal API doc comments
This had been done before for types.go, but namedresources.go still had one
small diff.

While at it, fix some typos.
2024-04-22 14:18:45 +02:00
Stephen Kitt
54e899317e Improve the lister function documentation
In particular, document that ListAllByNamespace delegates to ListAll
if no namespace is specified.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:04 +02:00
Stephen Kitt
e6f44957cd Regenerate all listers
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:04 +02:00
Stephen Kitt
2e9adcd14a Generify lister-gen
This adds a generic implementation of a lister, and uses it to replace
the template code in generated listers. The corresponding templates
are no longer used and are removed.

Listers are reduced to their interfaces (non-namespaced and namespaced
if appropriate), their specific structs, and their constructors. All
method implementations are provided by the generic implementation. The
dedicated interface is preserved so that each lister can have its own
set of methods (e.g. the method returning the namespaced lister if
appropriate), and the dedicated struct is preserved to allow
expansions to be defined where necessary.

The external interface is unchanged and doesn't expose generics.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:04 +02:00
Stephen Kitt
44d7267bd6 Add a lister-gen expansion example
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-04-22 13:15:03 +02:00
Kubernetes Prow Robot
8946348636 Merge pull request #123900 from rmiki/task/123899
[ja]fix typo in "kubectl config delete-context -h"
2024-04-22 02:33:06 -07:00
Kubernetes Prow Robot
4d9b50bcb1 Merge pull request #123927 from p0lyn0mial/upstream-cacher-decrease-watcher-draining-no-bookmark-after
apiserver/storage/cacher: decrease running time of TestCacheWatcherDrainingNoBookmarkAfterResourceVersionReceived
2024-04-22 01:24:10 -07:00
Alvaro Aleman
ab4e555ab1 Use typed queue in Customresource Discovery Controller 2024-04-21 13:40:03 +02:00
Alvaro Aleman
0c7370bb85 Workqueue: Add generic versions that are properly typed
This change adds a generic version of the various workqueue types while
retaining compatibility for the existing exported symbols and constructors.
The generic variants are prefixed with `Typed` and the existing ones are
marked as deprecated to nudge people to transition without breaking
them.
2024-04-21 13:40:03 +02:00
jwcesign
f0aa62bc96 upgrade: upgrade dependencies github.com/prometheus/common to the newest version
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-04-20 09:53:16 +08:00
Kubernetes Prow Robot
5a71f37805 Merge pull request #124316 from pohly/dra-kubelet-remove-v1alpha2
DRA: remove support for v1alpha2 kubelet gRPC API
2024-04-19 14:18:52 -07:00
Kubernetes Prow Robot
fd8239ce8f Merge pull request #120696 from pohly/slog
slog support
2024-04-19 14:18:46 -07:00
Kubernetes Prow Robot
d1b2490c80 Merge pull request #119589 from carlory/fix-kubectl-1439
fix unusable secret manifest for type docker-registry
2024-04-19 11:44:48 -07:00
Patrick Ohly
77341f7595 DRA: remove support for v1alpha2 kubelet API
The v1alpha2 API is several releases old. No current drivers should still
depend on it.
2024-04-19 18:27:05 +02:00
Kubernetes Prow Robot
69b648a1d7 Merge pull request #124223 from chenk008/fix_apf_countTracker
Fix: EtcdOptions.StorageObjectCountTracker is nil, APF estimator got ObjectCountNotFoundErr
2024-04-19 01:56:35 -07:00
Kubernetes Prow Robot
14415eb037 Merge pull request #124365 from SataQiu/v1.30.0-api-testdata
Update API testdata: add v1.30.0 and remove v1.28.0
2024-04-18 08:49:30 -07:00
Kubernetes Prow Robot
b2c32fb015 Merge pull request #123105 from danwinship/nodeport-addresses-primary
Add `--nodeport-addresses primary`, warn on empty `--nodeport-addresses`
2024-04-18 08:49:21 -07:00
chenk008
587ce02d90 prioritize user EtcdOptions.StorageConfig.StorageObjectCountTracker 2024-04-18 23:02:16 +08:00
chenk008
4abc2b387b Fix: StorageObjectCountTracker is nil, apf estimator got ObjectCountNotFoundErr 2024-04-18 22:50:18 +08:00
Kubernetes Prow Robot
573832a42f Merge pull request #122892 from danwinship/codegen-nil
Fix generated fake clients to have same semantics as real clients on error
2024-04-18 07:48:14 -07:00
Kubernetes Prow Robot
80542ca2e3 Merge pull request #113257 from claudiubelu/path-filepath-update-staging
Replaces path.Operation with filepath.Operation (staging)
2024-04-18 06:31:21 -07:00