Commit Graph

64 Commits

Author SHA1 Message Date
Ed Bartosh
1c48267565 migrate pkg/kubelet/events to contextual logging 2026-01-12 12:36:59 +02:00
Kubernetes Prow Robot
bf0e7b694f Merge pull request #135856 from natasha41575/static_pod_check
[InPlacePodVerticalScaling] remove ineffectual static pod feasibility check
2025-12-31 07:18:34 +05:30
Natasha Sarkar
9c7a83d30f remove ineffectual static pod check for resize 2025-12-30 17:35:32 +00:00
Patrick Ohly
ad79e479c2 build: remove deprecated '// +build' tag
This has been replaced by `//build:...` for a long time now.

Removal of the old build tag was automated with:

    for i in $(git grep -l '^// +build' | grep -v -e '^vendor/'); do if ! grep -q '^// Code generated' "$i"; then sed -i -e '/^\/\/ +build/d' "$i"; fi; done
2025-12-18 12:16:21 +01:00
Ed Bartosh
4822f77879 kubelet: migrate allocation to contextual logging 2025-11-12 21:50:24 +02:00
ndixita
5ac2ffcc1e Enabling NodeDeclaredFeatures in unit tests
Signed-off-by: ndixita <ndixita@google.com>
2025-11-12 08:26:15 +00:00
ndixita
10b73f8ef9 Test fixes
Signed-off-by: ndixita <ndixita@google.com>
2025-11-12 06:21:06 +00:00
ndixita
8920eb9107 Unit test for AddPod with PLR resources
Signed-off-by: ndixita <ndixita@google.com>
2025-11-11 18:19:10 +00:00
Kevin Torres
66248c262c Unit tests for allocation manager 2025-11-11 18:19:10 +00:00
ndixita
edc3b77cf8 Kubelet changes and unit tests
Signed-off-by: ndixita <ndixita@google.com>
2025-11-11 18:19:07 +00:00
ndixita
11ff4efcde Kubelet changes to support IPPR + PodLevelResources
Signed-off-by: ndixita <ndixita@google.com>
2025-11-11 18:17:28 +00:00
Kubernetes Prow Robot
9a5193796b Merge pull request #134825 from natasha41575/resize-events
[InPlacePodVerticalScaling] emit more events when the pod resize status changes
2025-11-05 15:56:50 -08:00
Natasha Sarkar
4eb0d39bf5 emit more events when the pod resize status changes 2025-11-05 22:42:36 +00:00
Kubernetes Prow Robot
c5ef945f37 Merge pull request #134445 from natasha41575/kubelet_node_cache
kubelet: synchronously fetch node and retry on NodeAffinity admission errors
2025-11-04 12:52:04 -08:00
Natasha Sarkar
5cdb983c2e fetch node synchronously on node affinity failure 2025-11-04 16:24:14 +00:00
Natasha Sarkar
1d9c646892 fix unit tests for ippr ga 2025-10-30 17:28:42 +00:00
Tim Allclair
4986abe0b8 Automated refactoring to use SetFeatureGatesDuringTest 2025-10-01 21:10:53 -07:00
Tim Allclair
09548c6bdf Move actuated resources state to kuberuntime.Manager 2025-09-03 15:53:45 -07:00
Natasha Sarkar
9a6db5ad0b remove allocationManager's reference to containerManager 2025-08-07 19:21:16 +00:00
Kubernetes Prow Robot
93844abbe2 Merge pull request #132473 from pravk03/ippr-static-mem-featuregate
[FG:InPlacePodVerticalScaling] Add a feature gate for in-place resize with static memory manager policy support
2025-07-19 15:50:25 -07:00
Praveen Krishna
067bd16b15 Add unit tests to check if right feature gate is checked based on resize request. 2025-07-19 03:37:37 +00:00
Kubernetes Prow Robot
7e6f41f9d7 Merge pull request #133045 from natasha41575/retry_pending_resizes
[FG:InPlacePodVerticalScaling] Retry pending resizes only if aggregated requests are decreasing
2025-07-18 20:28:31 -07:00
Praveen Krishna
f71080c930 Create separate feature gates for static CPU Manager and static Memory Manager support 2025-07-19 03:22:56 +00:00
Tim Allclair
6a40bcb426 Retry pending resizes if a status update leads to aggregate requests shrinking 2025-07-19 00:03:46 +00:00
Natasha Sarkar
22d724969c kubelet: record container_resize_requests metric for all resize updates 2025-07-18 23:59:05 +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
d51375dccf record 'kubelet_pod_deferred_resize_accepted_total' metric 2025-07-18 22:29:25 +00:00
Natasha Sarkar
b8fc1b6750 record 'kubelet_pod_infeasible_resizes_total' 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
0595ddaafa record 'kubelet_container_requested_resizes_total' metric 2025-07-18 22:27:39 +00:00
shiya0705
2256f5747d Add resize completed event after Inprogress conditionCleared is cleared 2025-07-18 23:43:53 +08:00
joey
1b5a08cbfb cleanup: fetch individual PodResourceInfo from allocated resource state
Signed-off-by: joey <zchengjoey@gmail.com>
2025-07-17 09:51:42 +08:00
Natasha Sarkar
62521d8350 fix observedGeneration in pod resize conditions 2025-07-15 18:23:30 +00:00
Praveen Krishna
1073b3b905 Add unit tests for AddPod() 2025-07-13 20:53:30 +00:00
Natasha Sarkar
237fbde8b1 clean up e2e test and sorting code 2025-07-10 22:30:21 +00:00
Natasha Sarkar
e8b914c4b8 address comments 2025-07-10 18:29:31 +00:00
Natasha Sarkar
6052c569db prioritize resize requests by priorityClass and qos class 2025-07-10 18:01:15 +00:00
Natasha Sarkar
381b3f376b clear just the errors rather than the entire in-progress condition when a new resize is allocated 2025-07-09 21:44:08 +00:00
Natasha Sarkar
b89ab301f5 feedback round 2 2025-07-09 20:50:07 +00:00
Natasha Sarkar
c925243779 address feedback 2025-07-08 21:53:20 +00:00
Natasha Sarkar
b46a124db3 skip pending resize evaluation if sources aren't ready 2025-07-08 17:14:49 +00:00
Natasha Sarkar
35bf1522b0 update allocation manager unit tests to cover push and retry of pending resizes 2025-07-08 17:14:48 +00:00
Natasha Sarkar
e6d165b879 move resize allocation out of the sync loop 2025-07-08 17:14:47 +00:00
Natasha Sarkar
cb2baef912 move handlePodResourcesResize unit tests into allocation_manager_test 2025-07-08 17:07:57 +00:00
Kubernetes Prow Robot
4a40077fb8 Merge pull request #132064 from natasha41575/unexportIsPodResizeInProgress
unexport the allocation manager's IsPodResizeInProgress method
2025-07-07 12:31:33 -07:00
Tim Allclair
705e89b046 Only set pod allocation if admission succeeds 2025-06-04 11:45:12 -07:00
Natasha Sarkar
47dead1c40 unexport allocationManager IsPodResizeInProgress 2025-06-02 22:46:55 +00:00
Natasha Sarkar
9b8d7ce498 pr review feedback 2025-06-02 17:51:03 +00:00
Natasha Sarkar
c4421fc13e address more feedback and some cleaning 2025-05-20 18:15:01 +00:00
Natasha Sarkar
5834476681 fix lint and unit test failures 2025-05-19 19:38:42 +00:00