Jan Chaloupka
44b59f9b1d
initPluginRegistry as a single way to register all plugins in testing
2024-07-08 16:55:27 +02:00
Kubernetes Prow Robot
9d16c28f43
Merge pull request #1456 from ingvagabund/limit-exceeded-to-error
...
PodEvictor: turn an exceeded limit into an error
2024-07-08 06:25:06 -07:00
Kubernetes Prow Robot
f8afd679ed
Merge pull request #1457 from googs1025/refactor_method
...
fix: add info for error return
2024-07-07 11:10:32 -07:00
googs1025
db0df6c6ca
fix: add info for error return
2024-07-07 21:16:52 +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
Kubernetes Prow Robot
7657345079
Merge pull request #1452 from a7i/defaultevictor-reinit
...
fix: indexer cache error when default evictor is re-initialized
2024-07-06 04:30:53 -07:00
Kubernetes Prow Robot
d1118354c9
Merge pull request #1455 from a7i/amir/pod-evictor-options
...
feat: pod evictor options
2024-07-06 03:00:53 -07:00
Amir Alavi
e26f6429a2
feat: pod evictor options
2024-07-05 21:40:55 -04:00
Kubernetes Prow Robot
686417b6de
Merge pull request #1454 from ingvagabund/generate-uuid-for-test-pods
...
test: generate uid when building a pod
2024-07-04 01:19:59 -07:00
Jan Chaloupka
287d1b1573
test: generate uid when building a pod
...
UID is an integral part of every pod.
Even though we don't test for UID in any of the existing test cases,
future test cases might rely on it.
2024-07-02 14:30:42 +02:00
Amir Alavi
7ab36daaec
fix: indexer cache error when default evictor is re-initialized
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-06-28 00:34:55 -04:00
Kubernetes Prow Robot
f2be3fd414
Merge pull request #1436 from fanhaouu/feat-return-node-fit-error
...
return node fit error in advance
2024-06-27 10:54:41 -07:00
Kubernetes Prow Robot
9eefbf05cb
Merge pull request #1450 from googs1025/refactor
...
refactor: PodMatchNodeSelector method
2024-06-27 10:05:17 -07:00
googs1025
cfa6845a19
refactor: PodMatchNodeSelector method
2024-06-27 22:10:41 +08:00
Hao Fan
8a2b2eb37c
return node fit error in advance
2024-06-26 17:18:32 +08:00
Kubernetes Prow Robot
972d28108a
Merge pull request #1447 from ingvagabund/refactorings
...
PodEvictor: refactoring and preparation for eviction requests
2024-06-25 01:08:44 -07:00
Kubernetes Prow Robot
f294d953a3
Merge pull request #1445 from zhifei92/fix-unit-test
...
Unit-test: add necessary ownerRef to the pod.
2024-06-25 00:15:40 -07:00
Kubernetes Prow Robot
85837b1063
Merge pull request #1446 from googs1025/fix_filter
...
fix: return the unmatched cases first
2024-06-24 23:53:40 -07:00
Jan Chaloupka
fadef326ff
TestPodEvictorReset: check the dry mode evicts duplicated pods
2024-06-23 20:30:36 +02:00
Jan Chaloupka
f5060adcd1
Move fake client from the cachedClient function
...
Remove the fakeClient from cachedClient function so a different
fakeClient can be injected for testing purposes
2024-06-23 19:59:46 +02:00
Jan Chaloupka
75880226c0
Set up the pod evictor only once
...
Currently, the pod evictor is created during each descheduling cycle
to reset the internal counters and the fake client (in case a dry run is
configured). Instead, create the pod evictor once and reset only what's
needed. So later on the pod evictor can be extended with e.g. a cache
keeping the track of eviction requests that are still in progress and
required more than a single descheduling cycle to complete.
2024-06-23 19:24:27 +02:00
Jan Chaloupka
0901cb18bf
NewPodEvictor: drop nodes parameter
2024-06-22 15:08:00 +02:00
googs1025
6fdee47cbc
fix: return the unmatched cases first, then perform the eviction
2024-06-22 18:16:40 +08:00
zhifei92
ae15fed7e7
fix(unit-test): add necessary ownerRef to the pod.
2024-06-21 19:12:40 +08:00
ternbusty
ebae217631
add namespaceOverride setting to README
2024-06-21 05:43:17 +09:00
ternbusty
d7178984df
modify to use descheduler.namespace setting
2024-06-21 05:29:27 +09:00
ternbusty
2253e9816c
add namespaceOverride Setting
2024-06-21 05:28:34 +09:00
Kubernetes Prow Robot
cdbd101eae
Merge pull request #1438 from googs1025/clean_up_nodelister
...
chore: cleanup duplicated code
2024-06-20 07:07:16 -07:00
Kubernetes Prow Robot
15551bb834
Merge pull request #1431 from a7i/automated-cherry-pick-of-#1427-upstream-master
...
Automated cherry pick of #1427 : helm: upgrade to v0.30.1
2024-06-20 07:07:09 -07:00
Kubernetes Prow Robot
bdaff92c10
Merge pull request #1441 from googs1025/e2e_test
...
refactor some methods in e2e test
2024-06-20 05:20:16 -07:00
googs1025
9fea59821f
refactor e2e test
2024-06-18 22:48:53 +08:00
Kubernetes Prow Robot
2df11f837a
Merge pull request #1439 from googs1025/add_ut
...
add validation ut
2024-06-17 23:49:47 -07:00
googs1025
0e2478ac41
add validation ut
2024-06-13 11:56:33 +08:00
googs1025
ec33490314
chore: cleanup duplicated code
2024-06-12 08:56:13 +08:00
Kubernetes Prow Robot
1c8ae64726
Merge pull request #1435 from fanhaouu/feat-return-pod-qos
...
return pod qos in advance
2024-06-10 19:38:05 -07:00
Hao Fan
fd7fcbddfe
return pod qos in advance
2024-06-10 00:22:17 +08:00
Kubernetes Prow Robot
69e5c5a1ef
Merge pull request #1433 from a7i/CVE-2024-24790
...
bump go to 1.22.4 for CVE-2024-24790 and CVE-2024-24789
2024-06-09 05:34:07 -07:00
Amir Alavi
8f1102b547
bump go to 1.22.4 for CVE-2024-24790 and CVE-2024-24789
2024-06-09 07:37:01 -04:00
Kubernetes Prow Robot
9a57a37cc0
Merge pull request #1432 from a7i/go-versions
...
chore: reduce repetition of go versions
2024-06-09 00:44:23 -07:00
Amir Alavi
1dd21ba507
use jq to parse go version per pr feedback
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-06-08 18:25:56 -04:00
Amir Alavi
2ae79bee64
chore: reduce repetition of go versions
...
when we cut a new release of descheduler, we have to update the go version in multiple places
which presents an opportunity to miss updating one.
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-06-08 12:52:34 -04:00
Amir Alavi
32065f0caa
helm: upgrade to v0.30.1
2024-06-08 11:19:20 -04:00
Kubernetes Prow Robot
8714397ba6
Merge pull request #1429 from damemi/bump-otel-schema
...
Bump otel semconv to 1.24
2024-06-06 09:37:29 -07:00
Mike Dame
47cc875fe8
Don't crash if failing to create tracer provider
2024-06-06 15:57:58 +00:00
Mike Dame
d699454d5e
Bump otel semconv to 1.24
2024-06-06 13:05:55 +00:00
Jan Chaloupka
a889e57768
Address review comments
2024-06-05 14:18:42 +02:00
Kubernetes Prow Robot
748495a022
Merge pull request #1395 from fanhaouu/fix-check-pod-anti-affinity
...
fix the issue that the pod anti-filtering rules are not taking effect
2024-06-03 05:04:34 -07:00
Hao Fan
c80556fc91
fix the issue that the pod anti-filtering rules are not taking effect
2024-06-02 18:58:57 +08:00
Kubernetes Prow Robot
17af29afe4
Merge pull request #1416 from googs1025/use_cmd_context
...
use cmd context instead of using context.Background()
2024-05-28 16:55:20 -07:00
googs1025
8be82b008c
use cmd context instead of using context.Background()
2024-05-28 20:50:55 +08:00