Yuan Wang
aac951d902
Add dependency for NodeDeclaredFeatures
2025-11-10 09:41:02 +00:00
Yuan Wang
83c5cd5526
Implement restartPod action
2025-11-10 09:41:02 +00:00
Natasha Sarkar
4eb0d39bf5
emit more events when the pod resize status changes
2025-11-05 22:42:36 +00:00
Stephen Kitt
81cec6df1d
Bump to mockery v3
...
mockery has introduced breaking changes and switched to a v3 branch,
this migrates to that, mostly using the built-in migration tool. Mocks
are now generated in single files per package, except in packages
containing mocks for multiple interface packages (in
pkg/kubelet/container/testing).
Signed-off-by: Stephen Kitt <skitt@redhat.com >
2025-08-29 13:43:54 +02:00
yliao
34a64db2c7
extended resource backed by DRA: implementation
2025-07-29 18:55:21 +00:00
Yuan Wang
9086e52fee
Implement restart rules in kubelet
2025-07-24 16:49:54 +00:00
Natasha Sarkar
8957109b76
only record resizes in progress and pending after all pods are added
2025-07-18 22:29:30 +00:00
Natasha Sarkar
d845e1fd6b
record 'kubelet_pod_pending_resizes' metric
2025-07-18 22:27:40 +00:00
Natasha Sarkar
23005281f7
record 'kubelet_pod_in_progress_resizes' metric
2025-07-18 22:27:39 +00:00
Natasha Sarkar
62521d8350
fix observedGeneration in pod resize conditions
2025-07-15 18:23:30 +00:00
Natasha Sarkar
c925243779
address feedback
2025-07-08 21:53:20 +00:00
Natasha Sarkar
87fe2491a1
add some additional helpers to kubelet status manager
2025-07-08 17:07:59 +00:00
Davanum Srinivas
03afe6471b
Add a replacement for cmp.Diff using json+go-difflib
...
Co-authored-by: Jordan Liggitt <jordan@liggitt.net >
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2025-06-16 17:10:42 -04:00
Natasha Sarkar
92359cdc69
update godoc for and rename observedGeneration helpers
2025-04-24 16:05:01 +00:00
Kubernetes Prow Robot
077a382170
Merge pull request #131242 from zhifei92/update-mockery-version
...
Upgrade the mockery version to v2.53.3
2025-04-23 17:09:43 -07:00
zhangzhifei16
c1ff9cf4e8
chore: Upgrade the mockery version to v2.53.3.
2025-04-10 21:16:47 +08:00
Chulong Li
d868eeb088
Migrate pkg/kubelet/status to contextual logging
...
Update with logger from context
Fix nil pointer issue in TestUpdateReadiness
2025-03-20 21:58:14 +08:00
Natasha Sarkar
16abcd78bd
[FG:InPlacePodVerticalScaling] surface pod resize actuation errors in pod resize conditions ( #130902 )
...
* surface pod resize actuation errors in pod resize conditions
* update kubelet unit tests
* fix all other kubelet unit tests
* fix linter error
* address feedback
* fix test failure
2025-03-19 20:12:54 -07:00
Natasha Sarkar
4c2be4bdde
kubelet sets observedGeneration in conditions
2025-03-18 15:43:24 +00:00
Natasha Sarkar
a15520fbea
Move pod resize status to pod conditions
2025-03-17 22:01:05 +00:00
Natasha Sarkar
7848744bf9
remove kubelet fake status manager
2025-03-13 17:11:05 +00:00
Natasha Sarkar
40e7d88f02
Kubelet sets pod.status.observedGeneration behind FG
2025-03-06 22:31:04 +00:00
Tim Allclair
fe4671356c
Call allocationManager directly
2025-02-21 09:28:37 -08:00
Tim Allclair
84ec78ede7
Extract pod allocation manager from status manager
2025-02-18 19:49:41 -08:00
Tim Allclair
81e54a2a01
Move allocation state out of statusmanager
2025-02-18 19:49:41 -08:00
Tim Allclair
3f4ef42e9a
Move PodResizeStatus cache out of allocated state
2025-02-18 09:19:23 -08:00
Filipe Xavier
14c0bc19ac
kubelet: improve allocated resources checkpointing
...
changed calls to set allocation from container level to pod level on status manager.
2025-02-06 09:20:39 -03:00
Kubernetes Prow Robot
0634e21fb5
Merge pull request #128367 from vivzbansal/sidecar-2
...
[FG:InPlacePodVerticalScaling] Implement resize for sidecar containers
2025-02-05 14:38:15 -08:00
Kubernetes Prow Robot
6e3546228d
Merge pull request #129895 from tallclair/refactor-allocation
...
Delete unused code: allocated state ClearState
2025-02-02 09:40:55 -08:00
Kubernetes Prow Robot
0e9ca10eeb
Merge pull request #129504 from felipeagger/cleanup/ckpt-pod-alloc-state-mem
...
Cleanup Kubelet Checkpointing: Refactor state mem
2025-01-30 13:05:33 -08:00
Filipe Xavier
f7df3ec07f
move log restored state to better location.
2025-01-30 12:06:12 -04:00
Tim Allclair
424c7ca7e5
Remove unused ClearState function
2025-01-29 12:04:40 -08:00
vivzbansal
5ed5732fa2
Refactored status manager code of updatePodFromAllocation
2025-01-27 19:46:54 +00:00
vivzbansal
6c5cf68722
Resolved latest review comments
2025-01-27 19:46:33 +00:00
vivzbansal
d1fac494f4
resolve merge conflicts
2025-01-27 19:42:13 +00:00
Davanum Srinivas
4e05bc20db
Linter to ensure go-cmp/cmp is used ONLY in tests
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2025-01-24 20:49:14 -05:00
Filipe Xavier
fd35f652d4
fix state mem constructor and adjust restoreState
2025-01-11 15:37:57 -03:00
Filipe Xavier
efdd6bea2e
kubelet checkpoint: refactor state memory
...
refactor state mem constructor to accept the state as parameter
and SetPodAllocation to update a single pod.
2025-01-07 16:31:06 -03:00
Filipe Xavier
8e872978e8
kubelet: improve allocated resources checkpointing
...
changed calls to set allocation from container level to pod level on status manager.
2025-01-07 09:20:36 -03:00
Paco Xu
03a15fa65d
Revert "[FG:InPlacePodVerticalScaling] Graduate to Beta"
2024-11-20 14:55:29 +08:00
Tim Allclair
479b300227
Fix unit tests
2024-11-09 14:29:02 -08:00
vivzbansal
763e810fb5
refactor code to add sidecar container support in IPPR
2024-11-07 21:20:48 +00:00
Tim Allclair
ea53083c14
Don't checkpoint ResizeStatus
2024-11-05 15:48:35 -08:00
yunwang0911
f428881ec0
Update pkg/kubelet/status/state/state_checkpoint_test.go
2024-10-31 14:02:35 +08:00
yunwang0911
05493c0924
Update pkg/kubelet/status/state/state_checkpoint_test.go
...
Co-authored-by: Tim Allclair <timallclair@gmail.com >
2024-10-30 18:11:10 +08:00
yunwang0911
e4c8eefeb2
Update pkg/kubelet/status/state/state_checkpoint_test.go
...
Co-authored-by: Tim Allclair <timallclair@gmail.com >
2024-10-30 18:08:53 +08:00
yunwang
b00f221a85
fix InPlacePodVerticalScaling restore bug: the content wrote to and read from file pod_status are different
2024-10-29 13:39:58 +08:00
yunwang0911
114d4df4b4
Update pkg/kubelet/status/state/state_checkpoint.go
...
Co-authored-by: Tim Allclair <timallclair@gmail.com >
2024-10-29 11:39:54 +08:00
yunwang0911
8edc80c470
Update pkg/kubelet/status/state/state_checkpoint_test.go
...
Co-authored-by: Tim Allclair <timallclair@gmail.com >
2024-10-29 11:39:41 +08:00
yunwang0911
9d18e900c8
Update pkg/kubelet/status/state/checkpoint.go
...
Co-authored-by: Tim Allclair <timallclair@gmail.com >
2024-10-29 11:39:32 +08:00