Jan Chaloupka
f3d91fc69f
refactor(TestFindDuplicatePods): inline p8 pod creation
2025-12-14 14:04:23 +01:00
Jan Chaloupka
e9dcd4e54d
refactor(TestFindDuplicatePods): inline p7 pod creation
2025-12-14 14:03:22 +01:00
Jan Chaloupka
8490ed9c8f
refactor(TestFindDuplicatePods): inline p6 pod creation
2025-12-14 14:01:21 +01:00
Jan Chaloupka
01fb826bd3
refactor(TestFindDuplicatePods): inline p5 pod creation
2025-12-14 13:58:38 +01:00
Jan Chaloupka
9b50aa91f8
refactor(TestFindDuplicatePods): inline p4 pod creation
2025-12-14 13:44:24 +01:00
Jan Chaloupka
7a5bf8c2f0
refactor(TestFindDuplicatePods): inline p3 pod creation
2025-12-14 13:43:34 +01:00
Jan Chaloupka
df06442830
refactor(TestFindDuplicatePods): inline p2 pod creation
2025-12-14 13:39:56 +01:00
Jan Chaloupka
180548cc1a
refactor(TestFindDuplicatePods): inline p1 pod creation
2025-12-14 13:37:23 +01:00
Jan Chaloupka
0aee6cff48
refactor(TestFindDuplicatePods): introduce buildTestPodWithRSOwnerRefWithNamespaceForNode1 helper
2025-12-14 13:33:56 +01:00
Jan Chaloupka
7a0257a682
refactor(TestFindDuplicatePods): introduce buildTestPodWithRSOwnerRefForNode1 helper
2025-12-14 13:25:40 +01:00
Jan Chaloupka
f5253faeb0
refactor(TestFindDuplicatePods): set owner refs through a dedicated function
2025-12-14 13:25:34 +01:00
Jan Chaloupka
59f499e2cd
refactor(TestFindDuplicatePods): replace direct ownerRef assignment with test.SetRSOwnerRef
2025-12-14 13:25:14 +01:00
Jan Chaloupka
008265db9b
refactor(TestFindDuplicatePods): consolidate ownerRef as all the cases produce the same owner reference
2025-12-14 13:25:09 +01:00
Jan Chaloupka
61190b805b
refactor(TestFindDuplicatePods): buildTestPodForNode1 for default testing configuration
2025-12-14 13:24:03 +01:00
Jan Chaloupka
e46b5db6d5
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:35 +01:00
Jan Chaloupka
b21fb4a655
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:35 +01:00
Jan Chaloupka
8f3c5f4978
refactor(TestFindDuplicatePods): drop unused variable
2025-12-14 12:49:27 +01:00
Jan Chaloupka
6f94e19385
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:27 +01:00
Jan Chaloupka
3bb99512d8
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:27 +01:00
Jan Chaloupka
56f49bc78f
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:27 +01:00
Jan Chaloupka
800dd280cd
refactor(TestFindDuplicatePods): drop unused variable
2025-12-14 12:49:17 +01:00
Jan Chaloupka
8dada79593
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:46:05 +01:00
Jan Chaloupka
660e2dba40
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:46:03 +01:00
Jan Chaloupka
294ce39231
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:46:01 +01:00
Jan Chaloupka
f2031ddcb0
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:59 +01:00
Jan Chaloupka
7435b5d474
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:56 +01:00
Jan Chaloupka
b5f177efa0
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:54 +01:00
Jan Chaloupka
4a4ec4afb7
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:52 +01:00
Jan Chaloupka
0c33be962d
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:50 +01:00
Jan Chaloupka
511ed214b0
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:48 +01:00
Jan Chaloupka
3d4263bf5e
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:45 +01:00
Jan Chaloupka
96171413ba
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:43 +01:00
Jan Chaloupka
5578211253
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:38 +01:00
Jan Chaloupka
08c2fc7621
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:35 +01:00
googs1025
2cce141feb
Improves the validation logic in the plugins
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-08-07 17:21:01 +08:00
googs1025
33894afe2b
feature: use contextal logging for plugins
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-06-13 19:45:55 +08:00
Jan Chaloupka
1974c12e0f
Extend plugin's New with a context.Context
...
The new context.Context can be later used for passing a contextualized
logger. Or, other initialization steps that require the context.
2025-05-19 12:23:44 +02:00
Amir Alavi
48aede9fde
update license to year 2025
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-01-02 13:36:59 -05:00
Kubernetes Prow Robot
0f1890e5cd
Merge pull request #1480 from ingvagabund/omitempty-for-plugin-args
...
Plugin args: tag arguments with omitempty to reduce the marshalled json size
2024-09-02 12:00:56 +01:00
Jan Chaloupka
cbade38d23
[tests] de-duplicate framework handle initialization
2024-08-12 17:05:30 +02:00
Jan Chaloupka
cb0c1b660d
Plugin args: tag arguments with omitempty to reduce the marshalled json size
2024-08-06 15:20:18 +02:00
zhifei92
e60f525ec6
feat: support MaxNoOfPodsToEvictTotal
2024-07-09 14:00:27 +08:00
Jan Chaloupka
18d0e4a540
PodEvictor: turn an exceeded limit into an error
...
When checking for node limit getting exceeded the pod eviction
never fails. Thus, ignoring the metric reporting when a pod fails
to be evicted due to node limit constrains.
The error also allows plugin to react on other limits getting
exceeded. E.g. the limit on the number of pods evicted per namespace.
2024-07-06 20:14:43 +02:00
Amir Alavi
e26f6429a2
feat: pod evictor options
2024-07-05 21:40:55 -04:00
Jan Chaloupka
0901cb18bf
NewPodEvictor: drop nodes parameter
2024-06-22 15:08:00 +02:00
googs1025
0e2478ac41
add validation ut
2024-06-13 11:56:33 +08:00
acejilam
19ced3d630
reduce cycle times
...
Signed-off-by: acejilam <acejilam@gmail.com >
2024-03-14 22:43:20 +08:00
Gabriel Tiossi
bb5930eb21
Improve PodEvictor observability through EvictOptions ( #1349 )
...
* feat: profile name for pods_evicted metric
Support new label "profile" for "pods_evicted" metric to allow
understand which profiles are evicting more pods, allowing better
observability
* refactor: evictoptions improved observability
Send profile and strategy names for EvictOptions, allowing Evictors to
access observability information
* cleanup: remove unnecessary evictoption reference
* feat: evictoptions for nodeutilzation
Explicit usage of options when invoking evictPods from the helper
function from nodeutilization for both highnodeutilization and
lownodeutilization
2024-03-02 12:06:05 -08:00
dongjiang1989
1715f4ff81
update verify gen
...
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
2024-01-02 16:11:36 +08:00
Dmitrii Erokhin
289c003f87
fix: display ownerKey in the logs correctly
2023-11-02 11:23:11 +03:00