Commit Graph

12580 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
db63a581ca Merge pull request #134366 from tallclair/feature-gates-test
Set multiple feature gates simultaneously in test
2025-10-13 13:11:33 -07:00
Kubernetes Prow Robot
260ea59ff5 Merge pull request #134293 from bart0sh/PR203-migrate-devicemanager-to-contextual-logging
Migrate device manager to contextual logging
2025-10-13 07:23:44 -07:00
Kubernetes Prow Robot
439a3c4f35 Merge pull request #134074 from rutigs/master
Record SyncTerminatingPod error and set error status on span when non-nil err returned
2025-10-06 12:12:59 -07:00
Sergey Kanzhelev
5b7e96219f remove cpuSharesToCPUWeight that is not used any longer 2025-10-03 22:50:07 +00:00
Kubernetes Prow Robot
8c6fa3bd2f Merge pull request #134398 from humblec/metrics-csi
correct metrics function comments
2025-10-03 13:32:56 -07:00
Humble Devassy Chirammal
2ddc955558 correct metrics function comments
Signed-off-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
2025-10-03 17:11:54 +05:30
Tim Allclair
4986abe0b8 Automated refactoring to use SetFeatureGatesDuringTest 2025-10-01 21:10:53 -07:00
Ajay Sundar Karuppasamy
07991f41f0 Fix: Correct timestamp for node swap metrics
The node swap metric was incorrectly using the memory timestamp instead of the swap timestamp. This change corrects the timestamp and adds a test case to verify the fix.
2025-10-01 19:21:30 +00:00
Ed Bartosh
a20b34aa82 devicemanager: fix golangci-lint errors 2025-09-28 21:13:46 +03:00
Ed Bartosh
d45a4557c1 Migrate device manager to contextual logging 2025-09-26 16:50:34 +03:00
Tim Allclair
2c78bc981c Introduce API to codify and validate feature gate dependencies 2025-09-25 16:45:43 -07:00
Kubernetes Prow Robot
d7bd2b0343 Merge pull request #134030 from richabanker/update-metrics-docs
Update metrics docs list for v1.34
2025-09-18 08:04:15 -07:00
Kubernetes Prow Robot
a3bfeca891 Merge pull request #133728 from Frank-svg-dev/master
Fix the spelling error of grpc in the log
2025-09-16 20:00:09 -07:00
Kubernetes Prow Robot
a13da6c541 Merge pull request #133519 from PersistentJZH/fix-memory-leaks-in-kubelet-podcertsmanager
fix race condition in kubelet's PodCertsManager
2025-09-16 16:26:09 -07:00
Richa Banker
c51a8734b1 Update documented metrics list 2025-09-16 11:52:14 -07:00
Kubernetes Prow Robot
b40d570248 Merge pull request #133988 from bart0sh/PR199-migrate-kubelet-certificate-to-contextual-logging
migrate kubelet/certificate to contextual logging
2025-09-16 02:24:12 -07:00
Kubernetes Prow Robot
8826364a57 Merge pull request #131483 from tallclair/kubeletconfig
Clean up pkg/kubelet/config
2025-09-15 15:54:07 -07:00
Nick Rutigliano
4074be896b Record SyncTerminatingPod error and set error status on span when non-nil err returned
Signed-off-by: Nick Rutigliano <rutigliano.nick@gmail.com>
2025-09-15 13:34:35 -07:00
HirazawaUi
09ab06b423 Remove container name from container event messages 2025-09-12 20:00:55 +08:00
Kubernetes Prow Robot
d602326b87 Merge pull request #133363 from yliaog/implicit
Allow implicit extended resource name to be used no matter explicit extendedResourceName field is set or not in device class
2025-09-11 13:40:07 -07:00
Kubernetes Prow Robot
b18cfd6141 Merge pull request #132873 from tallclair/runtime-actuated
Make actuated resources an internal detail of the KubeGenericRuntimeManager
2025-09-10 11:48:13 -07:00
yliao
79f8d1b1c5 fixed bug such that implicit extended resource name can always be used,
no matter the explicit extendedResourceName field in device class is set or not.
2025-09-10 14:10:40 +00:00
Ed Bartosh
bf0429ed07 migrate kubelet/certificate to contextual logging 2025-09-10 12:33:33 +03:00
Kubernetes Prow Robot
3a1714daf6 Merge pull request #131324 from ali-a-a/fix-negative-pod-startup-duration
Fix negative pod startup duration values
2025-09-10 02:15:59 -07:00
Kubernetes Prow Robot
f26c1326e2 Merge pull request #133957 from bart0sh/PR199-migrate-server-to-contextual-logging
Migrate kubelet/server to contextual logging
2025-09-09 19:29:57 -07:00
Ali Abbasi Alaei
9ca3159e34 Fix fake runtime's image pull
Fixed fake_runtime.PullImage to be blocked at the fake image pulling behavior,
not just before before returning
2025-09-09 19:40:23 -04:00
Ali Abbasi Alaei
a77fc586c7 Fix negative pod startup duration
Fixed an issue with the pod startup duration metric,
which may show negative values when parallel image pulling is enabled
2025-09-09 19:36:22 -04:00
Kubernetes Prow Robot
fd71bb8bda Merge pull request #133714 from jrvaldes/upstream/fix-enableSystemLogQuery-error-message
kubelet: fix error message for EnableNodeLogQuery
2025-09-09 08:45:59 -07:00
Jian Zhihao
90c9a932d4 fix race condition in kubelet's PodCertsManager
Signed-off-by: Jian Zhihao <zhihao.kan17@gmail.com>

optimize cred store delete logic

# Conflicts:
#	pkg/kubelet/podcertificate/podcertificatemanager.go

optimize cleanup cred key logic

optimize ForgetPod
2025-09-09 21:29:52 +08:00
Ed Bartosh
b276c96ef8 Migrate kubelet/server to contextual logging 2025-09-09 12:49:42 +03:00
Kubernetes Prow Robot
ddd8e70b1e Merge pull request #133933 from zhifei92/cleanup-duplicate-logs
Clean up duplicate logs
2025-09-08 14:05:43 -07:00
Kubernetes Prow Robot
01f11bfa24 Merge pull request #133930 from bart0sh/PR198-migrate-stats-to-contextual-logging
chore(kubelet): migrate stats to contextual logging
2025-09-08 14:05:36 -07:00
Tim Allclair
82eb8bd23a Populate memory requests from actuated resources at pod status generation time 2025-09-08 12:56:01 -07:00
Kubernetes Prow Robot
164e467deb Merge pull request #130157 from zhifei92/migrate-kubelet-metrics-to-contextual-logging
chore(kubelet): migrate metrics to contextual logging
2025-09-08 12:21:27 -07:00
zhangzhifei16
39170e2ed6 chore: Clean up duplicate logs 2025-09-08 21:37:13 +08:00
Lan
cfeeff7ace chore(kubelet): migrate stats to contextual logging
Signed-off-by: Lan <gcslyp@gmail.com>
Co-Authored-By: Ed Bartosh <eduard.bartosh@intel.com>
2025-09-08 15:35:02 +03:00
Kubernetes Prow Robot
d95e07d0f8 Merge pull request #133926 from pohly/dra-kubelet-grpc-idle
DRA kubelet: avoid deadlock when gRPC connection to driver goes idle
2025-09-08 01:09:28 -07:00
Patrick Ohly
06c5eb992e DRA kubelet: avoid deadlock when gRPC connection to driver goes idle
When gRPC notifies the kubelet that a connection ended, the kubelet tries to
reconnect because it needs to know when a DRA driver comes back. The same code
gets called when a connection goes idle, by default after 30 minutes. In that
and only that case the conn.Connect call deadlocks while calling into the gRPC
idle manager.

This can be reproduced with a new unit test which artificially shortens the
idle timeout. This fix is to move the Connect call into a goroutine because
then both HandleConn and Connect can proceed. It's sufficient that Connect
finishes at some point, it doesn't need to be immediately.
2025-09-08 08:59:55 +02:00
zhangzhifei16
d38c1df3f3 chore(kubelet): migrate metrics to contextual logging. 2025-09-08 10:53:42 +08:00
Kubernetes Prow Robot
4786451d81 Merge pull request #130213 from zhifei92/migrate-kubelet-container-to-contextual-logging
chore(kubelet): migrate container to contextual logging
2025-09-05 15:41:25 -07:00
Kubernetes Prow Robot
3b687533aa Merge pull request #133217 from bart0sh/PR187-migrate-utils-logs-to-contextual-logging
Kubelet: Migrate util/ and logs/ to contextual logging
2025-09-05 14:37:34 -07:00
Kubernetes Prow Robot
1166dcb0ef Merge pull request #130154 from zhifei92/watchdog-migrate-structured-logging
chore(kubelet): migrate watchdog to contextual logging
2025-09-05 14:37:26 -07:00
Kubernetes Prow Robot
c02a198b55 Merge pull request #130487 from zhifei92/migrate-kubelet-prober-to-contextual-logging
chore(kubelet): migrate prober to contextual logging
2025-09-05 11:13:25 -07:00
zhangzhifei16
80e6f9e20a chore(kubelet): migrate container to contextual logging
fix: the failed ci
2025-09-05 21:55:15 +08:00
zhangzhifei16
f1b28b0d1f chore(kubelet): migrate watchdog to contextual logging
fix: fix failed typecheck

fix unit test
2025-09-05 21:40:44 +08:00
Kubernetes Prow Robot
078a8f1894 Merge pull request #130581 from zhifei92/migrate-kubelet-config-to-contextual-logging
chore(kubelet):  migrate config to contextual logging
2025-09-05 05:25:26 -07:00
Omer Aplatony
d75d4860e7 kubelet: migrate module logs to contextual logging
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>
2025-09-05 13:22:00 +03:00
Omer Aplatony
9c1cf79d74 kubelet: migrate utils to contextual logging
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
Co-authored-by: Ed Bartosh <eduard.bartosh@intel.com>
2025-09-05 13:19:56 +03:00
Kubernetes Prow Robot
c4fdf5f027 Merge pull request #133239 from Peac36/fix/133184
add paths section to kubelet statusz endpoint
2025-09-05 01:01:29 -07:00
Kubernetes Prow Robot
56f6358c11 Merge pull request #133890 from huww98/fix-volume-metrics
kubelet/metrics: fix multiple Register call
2025-09-04 23:23:00 -07:00