Commit Graph

130591 Commits

Author SHA1 Message Date
Patrick Ohly
165bb1da58 DRA kubelet: use TimedWorkersQueue
Conceptually TimedWorkersQueue is similar to the current code: it spawns
goroutines and cancels them. Using it makes the code a bit shorter, even though
the TimedWorkersQueue API could be a bit nicer and more consistent (key string
vs. WorkerArgs as parameters).

Depending on the tainteviction package is a bit odd, which is the reason why
TimedWorkersQueue wasn't already used earlier. But there don't seem to be other
implementations of this common
problem. https://pkg.go.dev/k8s.io/client-go/util/workqueue#TypedDelayingInterface
doesn't work because queue entries cannot be removed.

This doesn't really solve the problem of tracking goroutines for wiping because
TimedWorkersQueue doesn't support that. But not tracking is arguably better
than doing it wrong and this only affects unit tests, so it should be okay.
2025-06-24 10:42:45 +02:00
Ed Bartosh
4ee7374b24 DRA kubelet: add connection monitoring
This ensures that ResourceSlices get removed also when a plugin becomes
unresponsive without removing the registration socket.

Tests are from https://github.com/kubernetes/kubernetes/pull/131073 by Ed
with some modifications, the implementation is new.
2025-06-24 10:42:41 +02:00
Patrick Ohly
f927cd0108 DRA kubelet: simplify plugin creation and connection handling
Instead of creating the gRPC connection on demand and forcing gRPC to connect,
we establish it immediately and rely on gRPC to handle the underlying
connection automatically like it usually does.

It's not clear what benefit the one second connection timeout had. The way it
is now, gRPC calls still fail when the underlying connection cannot be
established. Having to have a separate context for establishing that connection
just made the code more complex.

The DRAPluginManager is the central component which manages plugins. Making it responsible
for creating them reduces the number of places where a DRAPlugin struct needs to
be initialized. Doing this in the DRAPluginManager instead of a stand-alone function
simplifies the implementation of connection monitoring, because that will be
something that is tied to the DRAPluginManager state.
2025-06-24 09:05:43 +02:00
Kubernetes Prow Robot
45cd24a2c2 Merge pull request #132432 from aramase/aramase/t/fix_flake_oidc
fix unit test flake for authn config on windows
2025-06-23 11:24:27 -07:00
Kubernetes Prow Robot
285c6113ea Merge pull request #132417 from p0lyn0mial/upstream-watchlist-e2e-metadatainformer
e2e/watchlist: new test for checking metadata informer
2025-06-23 07:48:02 -07:00
Kubernetes Prow Robot
e43ab77aed Merge pull request #130542 from aroradaman/conntrack-service-target-port
Conntrack reconciler now considers service's target port during cleanup of stale flow entries
2025-06-23 07:47:55 -07:00
Kubernetes Prow Robot
314af2a00b Merge pull request #132454 from serathius/watchcache-close
Move UnsafeCorruptObjectDeletion outside of etcd3.New function
2025-06-23 06:00:53 -07:00
Marek Siarkowicz
72305f82f9 Move UnsafeCorruptObjectDeletion outside of etcd3.New function
By returning *store instead of storage.Interface we can expose Close()
function so in the future we can register it to destroyFunc in
newETCD3Storage.
2025-06-23 13:06:19 +02:00
Kubernetes Prow Robot
5e33c00e37 Merge pull request #132336 from dashpole/fix_apiserver_tracing_race
Fix APIServerTracing test data race
2025-06-22 20:26:56 -07:00
Daman Arora
af89044a78 conntrack: clean stale entries on endpoint port change
With this commit, the conntrack reconciler clears the stales
entries when endpoints change port without changing IP.

Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-06-23 00:37:28 +05:30
Kubernetes Prow Robot
ccf291b501 Merge pull request #132400 from xigang/orphan_pod_index
Add namespace-aware orphan pod indexing for improved controller performance
2025-06-20 18:46:51 -07:00
Anish Ramasekar
861e7b8fae fix unit test flake for authn config on windows
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
2025-06-20 12:30:51 -07:00
Kubernetes Prow Robot
168e02fb35 Merge pull request #132406 from dims/cleanup-shellcheck-for-temporary-HOME-directory
cleanup shellcheck for temporary HOME directory
2025-06-20 09:38:51 -07:00
Kubernetes Prow Robot
4a56df2add Merge pull request #132410 from Timothy-Dougherty/timdoug/fix-etcd-build
Fixing syntax issue for etcd image builds
2025-06-20 08:30:52 -07:00
Lukasz Szaszkiewicz
fe84377458 e2e/watchlist: new test for checking metadata informer 2025-06-20 08:28:04 +02:00
Timothy-Dougherty
db32c4cf7c fixing syntax issue for etcd builds 2025-06-20 09:11:35 +10:00
Kubernetes Prow Robot
0f478e52a8 Merge pull request #130919 from mengqiy/kubelet_rand_interval
Add random interval to nodeStatusReport interval every time after an actual node status change update or restart
2025-06-19 15:30:53 -07:00
Kubernetes Prow Robot
b569406b79 Merge pull request #129438 from pacoxu/apiserver-probe-etcd
add etcd server overrides to etcd probe factory for healthz and readyz
2025-06-19 11:30:52 -07:00
Davanum Srinivas
138e363e41 cleanup shellcheck for temporary HOME directory
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-19 11:48:15 -04:00
Kubernetes Prow Robot
72e32cb2a6 Merge pull request #132395 from Timothy-Dougherty/timdoug/fix-etcd-361-arm-builds
handling the etcd 3.6+ build directory location change
2025-06-19 05:56:51 -07:00
xigang
66c611125c Add namespace-aware orphan pod indexing
Signed-off-by: xigang <wangxigang2014@gmail.com>
2025-06-19 16:32:20 +08:00
Timothy-Dougherty
280cecb8fb fixing location to ensure the cp commands dont fail 2025-06-19 17:07:32 +10:00
Timothy-Dougherty
d2945a21fd bumping revision 2025-06-19 12:21:44 +10:00
Kubernetes Prow Robot
73014647f9 Merge pull request #132390 from dims/fix-for-gimme-when-HOME-is-not-writable
fix for gimme when $HOME is not writable
2025-06-18 19:00:51 -07:00
Timothy-Dougherty
fa1832484d handling the etcd 3.6+ build directory location change 2025-06-19 11:48:23 +10:00
Kubernetes Prow Robot
d3936ce98c Merge pull request #132346 from zhifei92/remove-container-runtime-for-volume-manager
Remove the dependency of the volume manager on the container runtime
2025-06-18 17:24:57 -07:00
Kubernetes Prow Robot
f407bd6d24 Merge pull request #132254 from carlory/cleanup-MountContainers
Cleanup after Alpha feature MountContainers was removed
2025-06-18 17:24:50 -07:00
Kubernetes Prow Robot
7b04d7faef Merge pull request #132194 from alvaroaleman/local0dev
Add an interface that all apply configurations implement
2025-06-18 15:36:50 -07:00
Davanum Srinivas
cfff359b41 fix for gimme when $HOME is not writable
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2025-06-18 18:01:28 -04:00
Eddie Torres
6f97f5bbf8 Use Mock CSI Driver for MutableCSINodeAllocatableCount storage e2e test (#132373)
* Refactor MutableCSINodeAllocatableCount storage e2e test

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Update var names and formatting

Signed-off-by: Eddie Torres <torredil@amazon.com>

* Update function names

Signed-off-by: Eddie Torres <torredil@amazon.com>

---------

Signed-off-by: Eddie Torres <torredil@amazon.com>
2025-06-18 14:02:57 -07:00
Kubernetes Prow Robot
11533d9732 Merge pull request #132344 from zhifei92/remove-probemanager-for-shutdownnamager
Remove the dependency of the shutdown manager on the probe manager.
2025-06-18 14:02:50 -07:00
Alvaro Aleman
64c44e1fa6 Test that generated applyconfigs are a runtime.ApplyConfig 2025-06-18 16:12:24 -04:00
Alvaro Aleman
a5d42f5693 Re-Generate applyconfigs 2025-06-18 16:12:24 -04:00
Alvaro Aleman
d5527b5193 Update applyconfiguration-gen so acs implement runtime.applyconfiguration 2025-06-18 16:12:24 -04:00
Alvaro Aleman
3fe4ea550e Add an interface that all applyconfigs implement 2025-06-18 16:12:24 -04:00
Kubernetes Release Robot
b0b52f4fb2 CHANGELOG: Update directory for v1.30.14 release 2025-06-18 18:59:10 +00:00
Kubernetes Release Robot
2bc98f123d CHANGELOG: Update directory for v1.31.10 release 2025-06-18 18:36:13 +00:00
Kubernetes Release Robot
20e9f160c9 CHANGELOG: Update directory for v1.32.6 release 2025-06-18 18:11:53 +00:00
Kubernetes Release Robot
9e126a3772 CHANGELOG: Update directory for v1.33.2 release 2025-06-18 17:54:50 +00:00
Lukasz Szaszkiewicz
de2f22ee8e e2e/watchlist: intro verifyStoreFor 2025-06-18 17:43:58 +02:00
Lukasz Szaszkiewicz
017c9b94da e2e/watchlist: rename toSecretPointerSlice 2025-06-18 17:34:05 +02:00
Kubernetes Prow Robot
b4e17418b3 Merge pull request #132369 from p0lyn0mial/upstream-rm-support-for-list-inconsistency-detector-to-ci-jobs
cluster/gce: rm KUBE_LIST_FROM_CACHE_INCONSISTENCY_DETECTOR
2025-06-18 06:34:51 -07:00
Kubernetes Prow Robot
8f1f17a04f Merge pull request #132305 from xigang/job_index
Job controller optimization: reduce work duration time & minimize cache locking
2025-06-18 05:27:01 -07:00
Kubernetes Prow Robot
60f0ad4615 Merge pull request #122384 from carlory/remove-kubelet-flag-register-schedulable
kubelet: remove --register-schedulable flag
2025-06-18 05:26:54 -07:00
Lukasz Szaszkiewicz
6b9ac7c516 cluster/gce: rm KUBE_LIST_FROM_CACHE_INCONSISTENCY_DETECTOR 2025-06-18 12:32:04 +02:00
Kubernetes Prow Robot
bb2199f392 Merge pull request #131717 from carlory/clean-volume-provisioning
e2e tests: remove all cloud provider calls in storage/volume_provisioning.go
2025-06-18 02:40:58 -07:00
Kubernetes Prow Robot
9cd3821f16 Merge pull request #124319 from liangyuanpeng/drop-ptr-wrappers-pkg-volume
pkg/volume:  use utils/ptr package instead of utils/pointer
2025-06-18 02:40:51 -07:00
Daman Arora
512563e7b0 pkg/proxy/conntrack: refactor
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2025-06-18 14:22:26 +05:30
xigang
91b4816c23 Optimize job controller performance: reduce work duration time & minimize cache locking
Signed-off-by: xigang <wangxigang2014@gmail.com>
2025-06-18 15:28:12 +08:00
Kubernetes Prow Robot
2689185671 Merge pull request #131542 from carlory/volume-limit-e2e
e2e tests: fix in-tree plugin volume limit
2025-06-17 15:40:50 -07:00