Kubernetes Prow Robot
b35e93ec7a
Merge pull request #1510 from Juneezee/chore/yaml
...
chore: replace `github.com/ghodss/yaml` with `sigs.k8s.io/yaml`
2024-09-09 10:08:27 +01:00
Kubernetes Prow Robot
4d6a0f1c0e
Merge pull request #1508 from fanhaouu/fix-run-e2e-tests-bug
...
[e2e] no test timeouts, produce the same image tag as in production
2024-09-09 09:22:27 +01:00
Kubernetes Prow Robot
73432b788c
Merge pull request #1506 from a7i/docs-v0.31
...
descheduler v0.31: update docs and manifests
2024-09-09 09:02:28 +01:00
Eng Zer Jun
33868c44df
chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml
...
At the time of making this commit, the package `github.com/ghodss/yaml`
is no longer actively maintained.
`sigs.k8s.io/yaml` is a permanent fork of `ghodss/yaml` and is actively
maintained by Kubernetes SIG.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2024-09-08 23:48:16 +08:00
Amir Alavi
4989cc3b6c
descheduler v0.31: update docs and manifests
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-09-05 19:00:41 -04:00
Hao Fan
ab6a3ca2d6
avoid e2e test timeout
2024-09-04 01:26:30 +08:00
Hao Fan
fdd69106a3
modify IMAGE_TAG to fix the version parsing issue
2024-09-04 01:26:20 +08: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
Kubernetes Prow Robot
ed6a133449
Merge pull request #1507 from bendikp/make-security-context-conditional
...
feat(helm): make securityContext conditional in Deployment and CronJob
2024-09-02 11:42:56 +01:00
Bendik Paulsrud
0b505946bf
feat(helm): make securityContext conditional in Deployment and CronJob
2024-08-30 08:29:51 +02:00
Kubernetes Prow Robot
dbe4423749
Merge pull request #1504 from a7i/k8s-1.31-e2e
...
descheduler v0.31: update e2e test versions
2024-08-29 11:42:29 +01:00
Kubernetes Prow Robot
a300009b5d
Merge pull request #1505 from a7i/python-eol
...
chore: upgrade python EOL and action versions
2024-08-29 10:02:29 +01:00
Amir Alavi
9fa48cd97e
chore: upgrade python EOL and action versions
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-08-28 23:24:36 -04:00
Amir Alavi
0cf1fc906e
descheduler v0.31: update e2e test versions
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-08-28 23:04:59 -04:00
Kubernetes Prow Robot
4e4c5f79fb
Merge pull request #1496 from a7i/k8s-1.30
...
bump k8s.io libs to v0.31.0
2024-08-15 12:47:53 -07:00
Kubernetes Prow Robot
8abb3509f9
Merge pull request #1498 from ingvagabund/readme-drop-v1alpha-descheduling-policy-mention
...
README: drop v1alpha1 descheduler policy mention
2024-08-15 07:29:18 -07:00
Jan Chaloupka
3eece465fb
README: drop v1alpha1 descheduler policy mention
2024-08-15 15:08:11 +02:00
Amir Alavi
33a747096b
bump k8s.io libs to v0.31.0
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-08-14 14:51:32 -04:00
Kubernetes Prow Robot
f6fe8fd0bd
Merge pull request #1485 from ingvagabund/simplify-TestPodEvictorReset
...
[unit test]: simplify test pod evictor reset
2024-08-14 02:18:43 -07:00
Jan Chaloupka
29c0a90998
TestPodEvictorReset: replace duplicates strategy with node taints to simplify the testing
2024-08-14 11:00:20 +02:00
Kubernetes Prow Robot
640b675e86
Merge pull request #1484 from ingvagabund/test-descheduling-limits
...
[unit test]: test descheduling limits
2024-08-14 01:53:04 -07:00
Kubernetes Prow Robot
c0c26e762b
Merge pull request #1483 from ingvagabund/dedup-framework-init
...
tests: de-duplicate framework handle initialization
2024-08-14 01:20:26 -07:00
Jan Chaloupka
91e5e06b5f
[unit test]: test descheduling limits
2024-08-14 10:15:58 +02:00
Kubernetes Prow Robot
df7791fafa
Merge pull request #1482 from ingvagabund/drop-v1alpha1
...
Remove descheduler/v1alpha1 type
2024-08-13 19:14:43 -07:00
Jan Chaloupka
cbade38d23
[tests] de-duplicate framework handle initialization
2024-08-12 17:05:30 +02:00
Jan Chaloupka
1e0b1a9840
Remove descheduler/v1alpha1 type
2024-08-09 09:49:59 +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
Kubernetes Prow Robot
daaa3a277e
Merge pull request #1479 from sklirg/feat/container-oci-annotation-source
...
docs: Provide OCI annotation for where to find image sources
2024-08-05 17:48:51 -07:00
Håkon Solbjørg
683cd7f794
docs: Provide OCI annotation for where to find image sources
...
Add a label for the OCI annotation for image source, as per
https://github.com/opencontainers/image-spec/blob/main/annotations.md
2024-08-05 17:35:13 +02:00
Kubernetes Prow Robot
2189fe4479
Merge pull request #1474 from ingvagabund/e2e-build-and-run-descheduler-image
...
[TestTooManyRestarts] e2e: build a descheduler image and run the descheduler as a pod
2024-08-04 11:58:38 -07:00
Jan Chaloupka
e4c361d902
e2e: build a descheduler image and run the descheduler as a pod
2024-08-04 12:06:01 +02:00
Kubernetes Prow Robot
de7cec0640
Merge pull request #1476 from shahar-h/go-1.22.5
...
bump go to 1.22.5
2024-08-03 08:34:37 -07:00
Shahar Harari
48690989da
bump go to 1.22.5
...
Signed-off-by: Shahar Harari <shahar.harari@sap.com >
2024-07-30 08:24:34 +03:00
Kubernetes Prow Robot
601f213b4f
Merge pull request #1469 from ingvagabund/e2e-fix-leaderelection
...
e2e: TestLeaderElection: delete the lease and increase the retry period
2024-07-29 20:01:28 -07:00
Kubernetes Prow Robot
8e70190c8a
Merge pull request #1430 from a7i/fix-minor-ver-parse
...
fix: minor version parsing in version compatibility check
2024-07-29 19:41:17 -07:00
Amir Alavi
a3146a1705
fix: minor version parsing in version compatibility check
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-07-28 11:44:12 -04:00
Victor Gonzalez
55a0812ae6
skip eviction when pod creation time is below minPodAge threshold setting ( #1475 )
...
* skip eviction when pod creation time is below minPodAge threshold setting
In the default initialization phase of the descheduler, add a new
constraint to not evict pods that creation time is below minPodAge
threshold.
Added value:
- Avoid crazy pod movement when the autoscaler scales up and down.
- Avoid evicting pods when they are warming up.
- Decreases the overall cost of eviction as no pod will be evicted
before doing significant amount of work.
- Guard against scheduling. Descheduling loops in situations where
the descheduler has a different node fit logic from scheduler,
like not considering topology spread constraints.
* Use *time.Duration instead of uint for MinPodAge type
* Remove '(in minutes)' from default evictor configuration table
* make fmt
* Add explicit name for Duration field
* Use Duration.String()
2024-07-26 05:59:21 -07:00
Kubernetes Prow Robot
f3569b5fe2
Merge pull request #1354 from ingvagabund/evictions-in-background
...
KEP-1397: descheduler integration with evacuation API as an alternative to eviction API
2024-07-24 11:47:35 -07:00
Jan Chaloupka
d2bd573cdb
e2e: TestLeaderElection: delete the lease and increase the retry period
...
In some random cases none of the deschedulers acquires a lease.
Making the test fail.
2024-07-22 17:24:56 +02:00
Kubernetes Prow Robot
95ef2bbec3
Merge pull request #1471 from ingvagabund/e2e-duplicates
...
e2e: TestRemoveDuplicates: limit the tested namespace
2024-07-21 08:55:18 -07:00
Kubernetes Prow Robot
355cff67c1
Merge pull request #1472 from ingvagabund/e2e-run-descheduler-from-top-instead-of-a-plugin
...
e2e: TestTooManyRestarts: run descheduler as a whole instead of a single plugin
2024-07-20 12:18:55 -07:00
Kubernetes Prow Robot
9220a1c009
Merge pull request #1473 from ingvagabund/bump-golangci-lint
...
bump(github.com/golangci/golangci-lint)=v1.59.1
2024-07-20 11:46:36 -07:00
Jan Chaloupka
b60a3fcfeb
bump(github.com/golangci/golangci-lint)=v1.59.1
2024-07-19 12:54:25 +02:00
Jan Chaloupka
ab467a5dd2
e2e: TestTooManyRestarts: run descheduler as a whole instead of a single plugin
2024-07-19 11:10:19 +02:00
Jan Chaloupka
f66efaf8db
e2e: TestRemoveDuplicates: limit the tested namespace
...
RemoveDuplicates is namespaced scope. Limiting the namespace will avoid
unexpected evictions from other namespaces.
2024-07-19 09:25:20 +02:00
Kubernetes Prow Robot
0c9750cc7f
Merge pull request #1468 from adammw/adammw/podlifetime-initcontainerstatus
...
feat: add init and ephemeral container checks to PodLifeTime
2024-07-17 06:09:07 -07:00
Adam Malcontenti-Wilson
f23967a88e
feat: add init and ephemeral container checks to PodLifeTime
2024-07-17 14:36:35 +10:00
Kubernetes Prow Robot
a6e75fe0bd
Merge pull request #1467 from a7i/helm-unittest
...
helm unit tests
2024-07-15 23:39:10 -07:00
Amir Alavi
9b5026314f
helm unit tests
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-07-15 14:45:31 -04:00
Kubernetes Prow Robot
c56a408b2c
Merge pull request #1443 from a7i/amir/leader-election-namespace-typo
...
fix: helm leader-election typo to `resourceNamespace`
2024-07-14 09:21:10 -07:00
Amir Alavi
fc1b54318f
fix: helm leader-election typo to resourceNamespace
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-07-13 11:46:23 -04:00
Kubernetes Prow Robot
da862a5698
Merge pull request #1444 from ternbusty/feature/namespace-override
...
feat: Add namespace override settings in Helm Chart
2024-07-11 20:19:22 -07:00
Kubernetes Prow Robot
eb6c325553
Merge pull request #1464 from eminaktas/update-pointer-to-ptr
...
refactor: replace k8s.io/utils/pointer with k8s.io/utils/ptr
2024-07-11 07:42:58 -07:00
Emin Aktas
f8e128d862
refactor: replace k8s.io/utils/pointer with k8s.io/utils/ptr
...
Signed-off-by: Emin Aktas <eminaktas34@gmail.com >
2024-07-11 11:36:34 +03:00
Kubernetes Prow Robot
a2a45db6de
Merge pull request #1463 from zhifei92/update-readme
...
Update README about maxNoOfPodsToEvictTotal
2024-07-11 01:31:47 -07:00
zhifei92
d8084e8b39
update README about maxNoOfPodsToEvictTotal
2024-07-11 16:05:36 +08:00
Kubernetes Prow Robot
b614c8bc7c
Merge pull request #1458 from ingvagabund/pod-evictor-thread-safe
...
pod evictor: make it thread safe
2024-07-10 04:48:26 -07:00
Kubernetes Prow Robot
9b41edd382
Merge pull request #1460 from ingvagabund/context
...
descheduler_test.go: initDescheduler: pass a new ctx with cancel inst…
2024-07-09 11:24:11 -07:00
Jan Chaloupka
bc60a058ef
pod evictor: make it thread safe
...
Currently, all the plugins are run in a sequence.
No plugin executes evictions in parallel within.
Yet, there's no guarantee a future plugin (e.g. a custom one)
will not attemp to evict pods in parallel.
2024-07-09 12:39:08 +02:00
Kubernetes Prow Robot
546a39e88c
Merge pull request #1451 from zhifei92/support-total-pods-limit
...
The descheduler supports limiting the total number of pods evicted per rescheduling cycle
2024-07-09 03:35:17 -07:00
zhifei92
578086ca8e
refactor: optimize error descriptions
2024-07-09 17:14:34 +08:00
Jan Chaloupka
ea2eeccff4
descheduler_test.go: initDescheduler: pass a new ctx with cancel instead of returning a cancel
2024-07-09 09:19:59 +02:00
Kubernetes Prow Robot
d0695abea9
Merge pull request #1459 from ingvagabund/descheduler-test-refactoring
...
descheduler_test.go refactoring
2024-07-08 23:39:16 -07:00
zhifei92
e60f525ec6
feat: support MaxNoOfPodsToEvictTotal
2024-07-09 14:00:27 +08:00
Jan Chaloupka
3362fec7b0
Define initDescheduler for further use
...
Can be used by other tests executing individual descheduling cycle
explicitly.
2024-07-08 17:28:51 +02:00
Jan Chaloupka
f240648df2
Set OwnerReferences through GetReplicaSetOwnerRefList
2024-07-08 17:10:07 +02:00
Jan Chaloupka
a818c01832
Use v1alpha2 descheduling policy
2024-07-08 17:04:53 +02:00
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
Kubernetes Prow Robot
fc01793949
Merge pull request #1413 from duplabe/readme-toc-location-fix
...
fix TOC location in Readme
2024-05-22 00:21:24 -07:00
balazs.benyo
22dfa5d559
fix TOC location in Readme
2024-05-22 08:21:23 +02:00
Kubernetes Prow Robot
4b8e2076e9
Merge pull request #1412 from duplabe/helm-fix-default-descheduler-policy
...
fix helm's default deschedulerPolicy
2024-05-21 13:12:11 -07:00
Kubernetes Prow Robot
1c1b1a7207
Merge pull request #1390 from omerap12/helm_chart_allow_falsey_value
...
Helm chart - allow 'falsey' value in cmdOption
2024-05-21 12:32:53 -07:00
balazs.benyo
2675dbedef
fix helm's default deschedulerPolicy
2024-05-21 20:47:59 +02:00
Kubernetes Prow Robot
77a0693e0c
Merge pull request #1378 from hanyouqing/youqing/fix-the-replica-type-for-the-helm-chart
...
Fix the replicas value type for the descheduler helm-chart
2024-05-20 18:18:29 -07:00
Kubernetes Prow Robot
79990946eb
Merge pull request #1405 from a7i/kustomize-image-tags
...
[release 1.30] update kustomize image tags and helm versions
2024-05-20 06:36:42 -07:00
Amir Alavi
4671199be7
upgrade helm chart to v0.30.0
2024-05-20 07:23:30 -04:00
Kubernetes Prow Robot
a82fc7b4e4
Merge pull request #1408 from a7i/amir/bump-go-1.22.3
...
bump to to 1.22.3 to address CVE-2024-24788
2024-05-19 19:56:17 -07:00
Amir Alavi
2ac072e5da
bump to to 1.22.3 to address CVE-2024-24788
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-05-19 20:27:28 -04:00
Amir Alavi
ee5bc6991d
[release 1.30] update kustomize image tags
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-05-18 21:05:44 -04:00
Kubernetes Prow Robot
0ec8581964
Merge pull request #1400 from a7i/kube-1.30
...
[release 1.30] upgrade kubernetes version and docs
2024-05-18 13:29:22 -07:00
Amir Alavi
2f7544344b
bump golangci lint to v1.58.1
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-05-18 10:23:38 -04:00
Amir Alavi
b08f1fa8b5
fix: code-gen scripts to use new flags
...
in recent kubernetes 1.30, the code-gen flags were changed. --output-file-base -> --output-file based on 144141734d \#diff-beaa4412ca0edb2451061daa9570ce25858ec41951938fc60f17e2370462ad8e
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-05-18 10:01:23 -04:00
Amir Alavi
fca4a0970f
[release 1.30] upgrade kubernetes version and docs
...
Signed-off-by: Amir Alavi <amir.alavi@zendesk.com >
2024-05-14 14:17:34 -04:00
Jan Chaloupka
b1c6e24f93
KEP-1397: descheduler integration with evacuation API as an alternative to eviction API
2024-05-14 13:42:42 +02:00
Kubernetes Prow Robot
fda4c96937
Merge pull request #1396 from ingvagabund/keps-framework-update-diagram
...
KEP-753: Descheduling framework: update diagram
2024-05-13 06:03:17 -07:00
Jan Chaloupka
3ef05e9e7f
KEP-753: Descheduling framework: update diagram
...
Update the profiles to reflect only Deschedule and Balance plugins are
run and the order of first Deschedule of all profiles then Balance of
all profiles.
2024-05-11 19:25:43 +02:00
Kubernetes Prow Robot
4bbafe7c19
Merge pull request #1372 from ingvagabund/kep-descheduling-framework
...
753 - Descheduling framework
2024-05-10 20:37:58 -07:00
Omer Aplatony
9f5fc14410
Fixed options without value
2024-05-08 17:42:40 +03:00
Youqing Han
b2bb8272af
Convert the replicas value to int for comparision
2024-05-08 11:41:10 +08:00
Omer Aplatony
149a4c11c4
Added speaces
2024-05-03 17:37:32 +03:00
Omer Aplatony
2ce9d46b8c
allow 'falsey' value in cmdOption
2024-05-03 14:39:37 +03:00
Kubernetes Prow Robot
77ec804529
Merge pull request #1381 from yuanchen8911/exitcode
...
Add an extra parameter ExitCode to RemoveFailedPods
2024-05-02 20:27:52 -07:00
Yuan Chen
25b9edae3c
Add an extra parameter ExitCode to RemoveFailedPod
...
Update README.md
Fix README and test files
Update README
Address a7i's comments
Update README
2024-05-02 17:11:50 -07:00
Jan Chaloupka
8da68695e1
753 - Descheduling framework
2024-04-28 18:52:10 +02:00
Kubernetes Prow Robot
b95380641f
Merge pull request #1379 from yuanchen8911/readme
...
Fix and improve the namespace filtering description in README
2024-04-18 17:55:45 -07:00
Yuan Chen
10d0ce0dfa
Fix and improve the namespace filtering description in README
2024-04-18 17:03:32 -07:00
Youqing Han
667df9b606
Fix the replicas type for the helm-chart
2024-04-18 12:05:14 +08:00
Angelos Mimidis
2c06a33d41
helm: Allow the use of existing policy configMap ( #1376 )
...
* Allow the use of existing policy configMap.
* Update charts/descheduler/templates/configmap.yaml
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
* Remove references to unused variable and update documentation regarding deschedulerPolicy
* Add missing newLine at EOF
* Update charts/descheduler/values.yaml
* remove trailing space
---------
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
2024-04-16 20:15:51 -07:00
Julian Lawrence
4bd348d9b7
bump to go 1.22.2 ( #1374 )
...
* bump to 1.22.2 for CVE-2023-45288
* updated gofmt update/verify versions
* doc update
2024-04-09 16:21:37 -07:00
Gabriel Tiossi
82559025b1
Allow eviction of DaemonSet pods ( #1342 )
...
* feat: evictDaemonSetPods flag for evictors
* test: evictDaemonSetPods unit and e2e
* docs: evictDaemonSetPods
2024-04-09 07:47:34 -07:00
Kubernetes Prow Robot
a2c88582fa
Merge pull request #1373 from ingvagabund/bump-golangorg-x-net
...
bump(golang.org/x/net)=v0.23.0
2024-04-08 07:38:16 -07:00
Jan Chaloupka
a321a38328
bump(golang.org/x/net)=v0.23.0
2024-04-08 16:11:17 +02:00
Kubernetes Prow Robot
970b35d737
Merge pull request #1369 from fanhaouu/feat-avoid-defaultEvictorArgs-conversion-twice
...
avoid redundant type conversion of DefaultEvictorArgs parameter in DefaultEvictor
2024-04-03 18:58:17 -07:00
Kubernetes Prow Robot
364f467421
Merge pull request #1365 from ls-2018/master
...
`RemoveDuplicates`: reduce cycle times identifying duplicates
2024-04-03 18:58:10 -07:00
Amir Alavi
dd94f2ed93
use v1alpha2 api for helm chart default values ( #1139 )
2024-03-29 13:29:32 -07:00
Hao Fan
7f20b5c891
fix: avoid redundant type conversion of DefaultEvictorArgs parameters in DefaultEvictor
...
Signed-off-by: Hao Fan <hao.fan@shopee.com >
2024-03-28 15:25:42 +08:00
Kubernetes Prow Robot
e63e159c04
Merge pull request #1360 from etoster/remove-only-pods-violating-included-node-taints
...
Add argument to remove only pods violating allowlisted taints
2024-03-25 07:39:12 -07:00
etoster
b7697869f2
add argument to remove only pods violating specific node taints
2024-03-25 15:21:21 +01:00
acejilam
19ced3d630
reduce cycle times
...
Signed-off-by: acejilam <acejilam@gmail.com >
2024-03-14 22:43:20 +08:00
Kubernetes Prow Robot
82af9c6321
Merge pull request #1257 from a7i/minreplicas-evictor-threshold
...
skip eviction when replica count is below evictor `minReplicas` threshold setting
2024-03-13 06:46:54 -07:00
Amir Alavi
37df42df7c
skip eviction when replica count is below evictor minReplicas threshold setting
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-03-13 09:29:27 -04:00
Pravar Agrawal
ed1efe436f
Bump to k8s v0.30.0-alpha.3 ( #1359 )
...
* update go.mod for v0.30.0-alpha.3
* update vendor deps
* regenrate go.mod transitive dependencies
---------
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
2024-03-12 20:09:33 -07:00
Niki Manoledaki
749e81c51c
Check whether pod matches the inter-pod anti-affinity of another Pod in a given Node in NodeFit() ( #1356 )
...
* Check if Pod matches inter-pod anti-affinity of other pod on node as part of NodeFit()
* Add unit tests for checking inter-pod anti-affinity match in NodeFit()
* Export setPodAntiAffinity() helper func to test utils
* Add docs for inter-pod anti-affinity in README
* Refactor logic for inter-pod anti-affinity to use in multiple pkgs
* Move logic for finding match between pods with antiaffinity out of framework to reuse in other pkgs
* Move interpod antiaffinity funcs to pkg/utils/predicates.go
* Add unit tests for inter-pod anti-affinity check
* Test logic in GroupByNodeName
* Test NodeFit() case where pods matches inter-pod anti-affinity
* Test for inter-pod anti-affinity pods match terms, have label selector
* NodeFit inter-pod anti-affinity check returns early if affinity spec not set
2024-03-12 19:50:03 -07:00
Kubernetes Prow Robot
dc2cf723bc
Merge pull request #1362 from jackfrancis/pod-fit-logs
...
Disambiguate node fit log messages
2024-03-08 20:21:38 -08:00
Jack Francis
d7c12c5f00
Disambiguate node fit log messages
...
Signed-off-by: Jack Francis <jackfrancis@gmail.com >
2024-03-06 13:59:14 -08:00
Kubernetes Prow Robot
a5f322521e
Merge pull request #1358 from tioxy/fix_metrics_evictoptions
...
Fix node taint wrong EvictOption field
2024-03-04 05:40:44 -08:00
Gabriel Tiossi
52d226321b
fix(plugins): node taint wrong option
2024-03-03 03:28:18 +00: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
Kubernetes Prow Robot
6c865fdf32
Merge pull request #1348 from a7i/amir/toomanyrestarts-initcontainer
...
fix: `RemovePodsHavingTooManyRestarts` to include `InitContainerStatuses`
2024-02-07 05:36:34 -08:00
Kubernetes Prow Robot
af1ffe7a15
Merge pull request #1346 from a7i/amir/trim-managed-fields
...
trim managedFields in shared informer factory
2024-02-07 05:17:13 -08:00
Amir Alavi
97c0044a74
fix: RemovePodsHavingTooManyRestarts to include InitContainerStatuses
...
Signed-off-by: Amir Alavi <amir.alavi@zendesk.com >
2024-02-06 14:21:42 -05:00
Amir Alavi
c7f8670b11
trim managedFields in shared informer factory
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-02-01 09:58:44 -05:00
Kubernetes Prow Robot
99472b6223
Merge pull request #1343 from a7i/CVE-2023-48795
...
chore: update dependencies for security vulnerabilities (CVE-2023-48795)
2024-01-29 02:08:38 -08:00
Amir Alavi
492da1b8a9
chore: update dependencies for security vulnerabilities (CVE-2023-48795)
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-01-25 11:26:25 -05:00
Kubernetes Prow Robot
70f3619fad
Merge pull request #1289 from UAntBou/master
...
feat: Add support for topologySpreadConstraints
2024-01-17 05:13:05 +01:00
Kubernetes Prow Robot
0d096edbee
Merge pull request #1337 from a7i/v1alpha1-deprecate-notice
...
v1alpha1: log deprecation notice
2024-01-08 16:45:26 +01:00
dongjiang
e7980442ef
PodLifeTime: update support pods with container status and pods reason (#1330 )
...
* update support podlifetime status
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
* update verify gen
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
---------
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
2024-01-06 17:50:32 +01:00
Kubernetes Prow Robot
c2cf78a760
Merge pull request #1334 from xujihui1985/fix/correct-failed-unittest
...
fix(podlifetime): fix failed unittest
2024-01-05 20:17:55 +01:00
xujihui1985
5092595384
fix: filter pod with age greater than MaxPodLifeTimeSeconds
...
when the pod createtimestamp is greater than the current time (which is
not make sense in real life, but when doing test with such case,
it is possible), it will convert to a large number if we convert it
to uint, and though it can pass the test, but doesn't make sense.
2024-01-03 20:13:26 +08:00
Amir Alavi
d513c5d9d7
v1alpha1: log deprecation notice
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-01-02 20:41:21 -05:00
Kubernetes Prow Robot
4d47bd7f36
Merge pull request #1335 from a7i/helm-v0.29.0
...
v0.29.0: bump helm chart and update manifests/docs
2024-01-02 19:00:04 +01:00
Amir Alavi
96657caf60
v0.29.0: bump helm chart and update manifests/docs
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-01-02 09:34:34 -05:00
Kubernetes Prow Robot
3cf2c03f69
Merge pull request #1336 from dongjiang1989/update-verify-gen
...
chores(verify-gen): fix verify-gen check
2024-01-02 14:59:51 +01:00
dongjiang1989
1715f4ff81
update verify gen
...
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
2024-01-02 16:11:36 +08:00
xujihui1985
ae7467fb27
fix(podlifetime): fix failed unittest
...
1. correct desired pod creation time
2023-12-28 20:54:25 +08:00
Kubernetes Prow Robot
3a631a3287
Merge pull request #1333 from a7i/CVE-2023-48795
...
`CVE-2023-48795`: bump k8s deps
2023-12-23 20:08:01 +01:00
Amir Alavi
4ee0740a13
github action: install correct go-version
2023-12-22 09:33:52 -05:00
Amir Alavi
992483d0fe
CVE-2023-48795: bump k8s deps
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-12-22 08:48:37 -05:00
Kubernetes Prow Robot
8dc250892b
Merge pull request #1322 from a7i/k8s-1.29
...
kubernetes 1.29: update deps and go-version
2023-12-22 09:53:06 +01:00
Amir Alavi
08356fc9fa
bump golangci-lint
2023-12-21 16:47:40 -05:00
Amir Alavi
e5e931d333
kubernetes 1.29: update deps and go-version
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-12-20 23:15:07 -05:00
Kubernetes Prow Robot
835c6c9fa1
Merge pull request #1318 from a7i/podlifetime-imagepullbackoff
...
`PodLifeTime`: consider pods with container status `ImagePullBackOff`
2023-12-20 19:46:03 +01:00
Amir Alavi
8a06ed32e2
PodLifeTime: consider pods with container status ImagePullBackOff
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-12-18 13:41:06 -05:00
Kubernetes Prow Robot
14b67000d6
Merge pull request #1317 from SataQiu/fix-log-20231212
...
fix: topologySpreadConstraint fields in structured logs
2023-12-15 17:14:15 +01:00
Kubernetes Prow Robot
dbfcd19713
Merge pull request #1314 from dongjiang1989/dualstack-support
...
helm: allow configuration of ipFamilyPolicy
2023-12-12 14:54:17 +01:00
SataQiu
f598b8909a
fix a bug where the structured log is not displayed correctly
2023-12-12 16:45:50 +08:00
dongjiang1989
e6c9dfa05d
allow configuration of ipFamilyPolicy
...
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
2023-12-10 09:47:54 +08:00
Victor Gonzalez
f0f7ebbe9a
helm: ability to specify security context for pod ( #1311 )
...
* helm: ability to specify security context for pod
* Update charts/descheduler/templates/cronjob.yaml
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
* Update charts/descheduler/templates/deployment.yaml
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
---------
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
2023-12-05 04:40:39 +01:00
Kubernetes Prow Robot
4d37ec91a2
Merge pull request #1305 from a7i/helm-v0.28.1-master
...
release v0.28.1: bump helm chart and images
2023-11-28 18:13:52 +01:00
Amir Alavi
0286871a56
release v0.28.1: bump helm chart and images
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-11-28 09:10:03 -05:00
Kubernetes Prow Robot
b2965c0724
Merge pull request #1292 from a7i/amir/k8s-0.28.4
...
chore: upgrade libs to kubernetes 0.28.4 and matching go version
2023-11-27 20:04:02 +01:00
Amir Alavi
89c7ddbaab
chore: upgrade libs to kubernetes 0.28.4 and matching go version
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-11-27 10:09:04 -05:00
Kubernetes Prow Robot
308309d6d2
Merge pull request #1299 from a7i/amir/revert-defer-done
...
fix: revert defer of context done
2023-11-27 13:17:27 +01:00
PeterSzegedi
c8d4658277
Make the logged nodeutilization percentages human-readable ( #1294 )
...
* Make percentages human-readable
* Rename the rounding function
* bump easycla
2023-11-27 11:04:19 +01:00
Amir Alavi
6f0cd50dc0
fix: revert defer of context done
2023-11-26 14:17:23 -05:00
Kubernetes Prow Robot
89f453ebb3
Merge pull request #1296 from a7i/fix-json-log
...
fix: json logging
2023-11-24 16:51:16 +01:00
Amir Alavi
783304f248
fix: json logging
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-11-24 10:07:42 -05:00
Kubernetes Prow Robot
caafe96ce7
Merge pull request #1293 from a7i/CVE-2023-47108
...
CVE-2023-47108: replace otelgrpc version
2023-11-21 19:15:15 +01:00
Amir Alavi
2a05825b38
CVE-2023-47108: replace otelgrpc version
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-11-21 09:33:36 -05:00
Kubernetes Prow Robot
2fee121df3
Merge pull request #1282 from a7i/cherry_pick_pull
...
copy cherry_pick_pull script form kubernetes/kubernetes
2023-11-20 18:35:57 +01:00
Kubernetes Prow Robot
c3424337c8
Merge pull request #1276 from jklaw90/add-reviewer
...
adding jklaw90 to reviewers
2023-11-20 16:25:05 +01:00
Antoine Boursin
b7a50fd772
feat: Add support for topologySpreadConstraints
2023-11-17 15:48:18 +01:00
Kubernetes Prow Robot
f4977d1518
Merge pull request #1249 from a7i/amir/version-skew-eks
...
fix: version skew compatibility for managed kubernetes providers
2023-11-14 12:48:58 +01:00
Kubernetes Prow Robot
96c1c299eb
Merge pull request #1281 from dimunech/fix-ownerkey-logs
...
fix: display ownerKey in the logs correctly
2023-11-09 04:31:54 +01:00
Amir Alavi
ccff5fe155
copy cherry_pick_pull script form kubernetes/kubernetes
2023-11-02 11:10:59 -04:00
Dmitrii Erokhin
289c003f87
fix: display ownerKey in the logs correctly
2023-11-02 11:23:11 +03:00
Kubernetes Prow Robot
c4ab2008e4
Merge pull request #1233 from a7i/match-label-keys
...
topologyspreadconstraint: support `matchLabelKeys`
2023-10-31 10:42:30 +01:00
Amir Alavi
19aa8a234c
docs: update supported topologySpreadConstraint fields
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-10-30 09:16:15 -04:00
Amir Alavi
bf2bd73f64
topologyspreadconstraint: refactor to match scheduler's struct and initialization
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-10-30 09:16:14 -04:00
Amir Alavi
704a82bcf4
topologyspreadconstraint: support matchLabelKeys
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-10-30 09:16:14 -04:00
Kubernetes Prow Robot
a01322a5e5
Merge pull request #1277 from a7i/amir/CVE-2023-25151
...
bump deps for CVE-2023-25151
2023-10-30 10:14:50 +01:00
Amir Alavi
30aec81951
bump deps for CVE-2023-25151
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-10-27 16:35:24 -04:00
Julian Lawrence
d8159c571d
adding jklaw90 to reviewers
2023-10-26 20:18:49 -07:00
Kubernetes Prow Robot
c59a0f0951
Merge pull request #1270 from ingvagabund/CVE-2023-44487-fixes
...
CVE 2023 44487 fixes
2023-10-19 18:31:11 +02:00
Jan Chaloupka
999dd3dc25
disable http/2 by default, enable it if needed
2023-10-19 17:15:57 +02:00
Jan Chaloupka
a243681ff8
Pin k8s to v1.28.3
2023-10-19 16:30:30 +02:00
Kubernetes Prow Robot
73eb42467a
Merge pull request #1263 from ingvagabund/bump-deps-1.28
...
Bump dependencies to address CVE-2023-44487
2023-10-16 13:44:19 +02:00
Jan Chaloupka
b8eec7a459
Bump dependencies to address CVE-2023-44487
2023-10-16 13:19:54 +02:00
Aditya Purandare
a7d8e69820
helm: ability to specify dnsConfig ( #1260 )
...
* Update values.yaml
* Update deployment.yaml
* Update cronjob.yaml
* fix indentation issue in helm chart
2023-10-11 00:12:22 +02:00
Kubernetes Prow Robot
3bd9dfc625
Merge pull request #1245 from a7i/helm-cronjob-timezone
...
helm: support of `timeZone` for CronJob
2023-09-26 04:59:13 -07:00
Amir Alavi
dca2e58b8e
fix: version skew compatibility for managed kubernetes providers
2023-09-21 21:21:26 -04:00
Antoine Deschênes
267efb3a4b
nodeFit: Use info log level if won't fit ( #1220 )
...
Pods that don't pass the nodeFit condition currently log an
unsuppressable error message to logs. This changes the log level to info
as it's a normal operating condition.
Signed-off-by: Antoine Deschênes <antoine.deschenes@linux.com >
2023-09-20 11:46:01 -07:00
Kubernetes Prow Robot
c0d60196a1
Merge pull request #1246 from a7i/v0.28-image-ref
...
update image references to point to v0.28.0
2023-09-20 07:38:02 -07:00
Amir Alavi
2e1008e290
update image references to point to v0.28.0
2023-09-19 22:06:39 -04:00
Amir Alavi
714a347692
helm: support of timeZone for CronJob
2023-09-19 22:03:42 -04:00
Kubernetes Prow Robot
af4b32c6ba
Merge pull request #1241 from a7i/fix/evicatable-namespace-docs
...
docs: fix evictableNamespaces example
2023-09-15 07:16:15 -07:00
Kubernetes Prow Robot
c602d1256f
Merge pull request #1242 from jklaw90/fix-lint-config
...
fix: golangci config
2023-09-12 18:36:11 -07:00
Julian Lawrence
a592cbc417
fixed config for lint
2023-09-11 20:50:42 -07:00
Amir Alavi
c557d187ab
docs: fix evictableNamespaces example
2023-09-10 22:07:45 -04:00
Kubernetes Prow Robot
e8427d0eb4
Merge pull request #1229 from cayla/cf/consistent-arg
...
helm: update cronjob args argument to avoid unmarshal error
2023-08-25 20:29:21 -07:00
Cayla Fauver
c0f9761a61
helm: update cronjob args argument to avoid unmarshal error
...
Make it match both the deployment parallel
33e9a52385/charts/descheduler/templates/cronjob.yaml (L71)
As well as the documented arg
https://github.com/kubernetes-sigs/descheduler/blob/master/docs/user-guide.md#balance-cluster-by-pod-age
2023-08-25 09:13:22 -04:00
Kubernetes Prow Robot
e1dc63bcc7
Merge pull request #1228 from a7i/fix-structured-err
...
fix: structured err logs in eviction
2023-08-25 01:23:17 -07:00
Amir Alavi
8a458e0dcb
fix: structured err logs in eviction
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-08-24 18:18:09 -04:00
Amir Alavi
99246cd254
topologySpreadConstraints: handle nodeTaintsPolicy and nodeAffinityPolicy constraints ( #1218 )
...
* Add handling for node eligibility
* Make tests buildable
* Update topologyspreadconstraint.go
* Updated test cases failing
* squashed changes for test case addition
corrected function name
refactored duplicate TopoContraint check logic
Added more test cases for testing node eligibility scenario
Added 5 test cases for testing scenarios related to node eligibility
* topologySpreadConstraints e2e: `nodeTaintsPolicy` and `nodeAffinityPolicy` constraints
---------
Co-authored-by: Marc Power <marcpow@microsoft.com >
Co-authored-by: nitindagar0 <81955199+nitindagar0@users.noreply.github.com >
2023-08-24 08:32:21 -07:00
Kubernetes Prow Robot
33e9a52385
Merge pull request #1225 from a7i/helm-1.28
...
helm: bump chart to v0.28.0
2023-08-24 05:54:21 -07:00
Amir Alavi
b833607504
helm: bump chart to v0.28.0
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-08-24 08:41:23 -04:00
Kubernetes Prow Robot
bae120929e
Merge pull request #1224 from a7i/docs-1.28
...
k8s 1.28: update docs and go-version
2023-08-23 08:53:29 -07:00
Amir Alavi
30dd78dcee
k8s 1.28: update docs and go-version
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-08-22 20:46:27 -04:00
Kubernetes Prow Robot
1d4dc57ad1
Merge pull request #1221 from antoinedeschenes/fix-profile-span-attribute
...
profile: fix span attribute typo
2023-08-22 15:39:55 -07:00
Antoine Deschênes
3f0c06b58d
profile: fix span attribute typo
...
Fix profile attribute "prpfile" typo in trace spans.
Signed-off-by: Antoine Deschênes <antoine.deschenes@linux.com >
2023-08-22 13:10:20 -04:00
Kubernetes Prow Robot
bb4721049f
Merge pull request #1216 from JaneLiuL/master
...
Bump Kubernetes dependencies to v1.28.0
2023-08-21 07:21:24 -07:00
Amir Alavi
78c9ae851c
upgrade kind to v0.20.0
2023-08-21 10:04:31 -04:00
Kubernetes Prow Robot
9660a7b469
Merge pull request #1202 from a7i/gitattributes
...
.gitattribute to not pollute PRs or stats
2023-08-21 05:09:23 -07:00
JaneLiuL
81aa897c48
Bump Kubernetes dependencies to v1.28.0
2023-08-17 15:59:15 +08:00
Kubernetes Prow Robot
f4c64c2c75
Merge pull request #1215 from Abirdcfly/master
...
fix: descheduler_loop_duration_seconds has wrong value
2023-08-10 01:05:27 -07:00
Abirdcfly
ca5781827a
fix: descheduler_loop_duration_seconds has wrong value
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
2023-08-09 21:36:53 +08:00
Jordi Piqué Sellés
31704047c5
feat: Implement preferredDuringSchedulingIgnoredDuringExecution for RemovePodsViolatingNodeAffinity ( #1210 )
...
* feat: Implement preferredDuringSchedulingIgnoredDuringExecution for RemovePodsViolatingNodeAffinity
Now, the descheduler can detect and evict pods that are not optimally
allocated according to the "preferred..." node affinity. It only evicts
a pod if it can be scheduled on a node that scores higher in terms of
preferred node affinity than the current one.
This can be activated by enabling the RemovePodsViolatingNodeAffinity
plugin and passing "preferredDuringSchedulingIgnoredDuringExecution" in
the args.
For example, imagine we have a pod that prefers nodes with label "key1:
value1" with a weight of 10. If this pod is scheduled on a node that
doesn't have "key1: value1" as label but there's another node that has
this label and where this pod can potentially run, then the descheduler
will evict the pod.
Another effect of this commit is that the
RemovePodsViolatingNodeAffinity plugin will not remove pods that don't
fit in the current node but for other reasons than violating the node
affinity. Before that, enabling this plugin could cause evictions on
pods that were running on tainted nodes without the necessary
tolerations.
This commit also fixes the wording of some tests from
node_affinity_test.go and some parameters and expectations of these
tests, which were wrong.
* Optimization on RemovePodsViolatingNodeAffinity
Before checking if a pod can be evicted or if it can be scheduled
somewhere else, we first check if it has the corresponding nodeAffinity
field defined. Otherwise, the pod is automatically discarded as a
candidate.
Apart from that, the method that calculates the weight that a pod
gives to a node based on its preferred node affinity has been
renamed to better reflect what it does.
2023-08-04 03:08:21 -07:00
Kubernetes Prow Robot
1be0ab2bd1
Merge pull request #1207 from a7i/amir/fix-cm-RemoveDuplicates
...
fix: base configmap missing plugin RemoveDuplicates
2023-07-26 07:06:19 -07:00
Amir Alavi
f8442fbb0d
fix: base configmap missing plugin RemoveDuplicates
2023-07-25 22:00:49 -04:00
Kubernetes Prow Robot
f7b7f50b92
Merge pull request #1203 from lucming/aggregate-errors
...
nodefit: aggregate errors
2023-07-24 08:52:13 -07:00
lucming
27a436b98a
aggregate errors
2023-07-24 23:39:26 +08:00
Kubernetes Prow Robot
8f7dea10c1
Merge pull request #1201 from a7i/1.28-beta.0
...
bump to k8s 1.28 beta.0
2023-07-24 06:44:15 -07:00
Amir Alavi
68f43fe591
.gitattribute to not pollute PRs or stats
2023-07-22 11:01:59 -04:00
Amir Alavi
a0cbfcfbca
regenerate docs for cli
2023-07-21 22:16:36 -04:00
Amir Alavi
2a91eda30d
bump to k8s 1.28 beta.0
2023-07-21 22:06:55 -04:00
Kubernetes Prow Robot
06dc26a83e
Merge pull request #1189 from harshanarayana/feature/enable-otel
...
feat: Enable open telemetry tracing
2023-07-18 04:43:10 -07:00
Harsha Narayana
add9d6e897
enable Open telemetry support for descheduler
...
1. Enable OTEL configuration and base framework
2. update generated conversion spec
3. enable docker based conversion and deep copy generate
4. fix broken unit tests
2023-07-18 11:14:21 +05:30
Kubernetes Prow Robot
d9b763a28b
Merge pull request #1186 from knelasevero/fix_priority_name
...
fix priority threshold by name alone
2023-07-10 04:17:08 -07:00
Lucas Severo Alves
3ff38bab59
fix priority threshold by name alone
2023-07-07 16:12:28 +02:00
Kubernetes Prow Robot
ed1554dd19
Merge pull request #1141 from a7i/processing-log-level
...
bump log level for processing info
2023-07-05 10:46:58 -07:00
Jan Chaloupka
931aac9c71
deschedule/balance order (continuation) ( #1177 )
...
* generalise RunDeschedulerLoop and RunProfiles and stabilish deschedule/balance order
* assign nodes outside RunDeschedulerLoop and use instanced profiles
* stop exporting internal profile bits
* refactoring RunProfiles and add methods to Deschduler
* types outside function
* shutdown eventBroadcaster outside NewDescheduler
* all new methods inside descheduler.go
* avoid exporting all Descheduler fields
* Address review comments
---------
Co-authored-by: Lucas Severo Alves <lucassalves65@gmail.com >
2023-06-21 06:37:40 -07:00
Kubernetes Prow Robot
a497541f39
Merge pull request #1174 from ingvagabund/bump-fake-watch-channel-size
...
FakeClientset: bump watch channel size
2023-06-20 10:58:21 -07:00
Amir Alavi
333b5cfbb6
bump log level for processing info
2023-06-16 08:39:05 -04:00
Kubernetes Prow Robot
eb2372137e
Merge pull request #1148 from a7i/tsc-constraints
...
removepodsviolatingtopologyspreadconstraint: implement explicit constraints
2023-06-16 05:36:23 -07:00
Amir Alavi
7f2f6f2b16
removepodsviolatingtopologyspreadconstraint: implement explicit constraints
2023-06-16 08:20:26 -04:00
Amir Alavi
5f0edb5f93
removepodsviolatingtopologyspreadconstraint: topologyBalanceNodeFit to control whether to perform nodefit when balacning domains
2023-06-16 07:56:32 -04:00
Amir Alavi
f5a7f716b3
use pod informers for listing pods in removepodsviolatingtopologyspreadconstraint and removepodsviolatinginterpodantiaffinity ( #1163 )
...
* use pod informers for listing pods in removepodsviolatingtopologyspreadconstraint and removepodsviolatinginterpodantiaffinity
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
* workaround in topologyspreadconstraint test to ensure that informer's index returns pods sorted by name
---------
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-06-15 23:30:19 -07:00
Kubernetes Prow Robot
5163ac3ace
Merge pull request #1173 from jongwooo/chore/replace-deprecated-command-with-environment-file
...
Replace deprecated command with environment file
2023-06-15 06:52:19 -07:00
Jan Chaloupka
4c272e6ea2
FakeClientset: bump watch channel size
...
Huge clusters with thousands of pods can quickly exceed the default
watch channel size of the fake clientset. Causing the channel
to panic with "channel full".
2023-06-15 11:07:09 +02:00
Jongwoo Han
c637b7f0e6
Replace deprecated command with environment file
2023-06-15 12:12:44 +09:00
Kubernetes Prow Robot
5462a599af
Merge pull request #1165 from a7i/toomanyrestarts-CrashLoopBackOff
...
TooManyRestart: state filter for CrashLoopBackOff
2023-06-13 09:47:59 -07:00
Kubernetes Prow Robot
7dcd7fa50f
Merge pull request #1166 from a7i/pause-image
...
update pause image from 'kubernetes/pause' to 'registry.k8s.io/pause'
2023-06-08 01:46:13 -07:00
Amir Alavi
6271d51125
update pause image from 'kubernetes/pause' to 'registry.k8s.io/pause'
2023-06-07 23:32:31 -04:00
Amir Alavi
0bdbf51eb2
Move CrashLoopBackOff container state from PodLifeTime to TooManyRestarts plugin
2023-06-07 23:29:11 -04:00
Amir Alavi
9aad51f328
Revert "Merge pull request #1164 from a7i/podlifetime-CrashLoopBackOff"
...
This reverts commit 699297711a , reversing
changes made to 877d9b18ee .
2023-06-07 21:00:47 -04:00
Kubernetes Prow Robot
699297711a
Merge pull request #1164 from a7i/podlifetime-CrashLoopBackOff
...
PodLifeTime: support CrashLoopBackOff container state
2023-06-07 10:46:13 -07:00
Amir Alavi
1b976529bc
PodLifeTime: support CrashLoopBackOff container state
2023-06-06 18:21:43 -04:00
10hin
877d9b18ee
pod anti-affinity check among nodes ( #1033 )
...
* pod anti-affinity check among nodes
* avoid pod equality check with UID field
also add node equality check with Name for short-cut
* add test case for anti-affinity violation among different node
* reduce ListPodsOnANode call
* fix old code
* apply gofumpt -w -extra
move klog/v2 import entry to bottom according to master code
2023-06-05 05:21:25 -07:00
Nicolas Lamirault
b58ec3b458
Custom labels for ServiceMonitor resource ( #1147 )
...
* Add: Custom labels for ServiceMonitor resource
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com >
* Fix: indentation
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com >
---------
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com >
2023-05-31 06:41:46 -07:00
Kubernetes Prow Robot
e94a6f129a
Merge pull request #1160 from a7i/chart-v0.27.1
...
bump chart to v0.27.1
2023-05-31 01:29:46 -07:00
Kubernetes Prow Robot
1b22e102ce
Merge pull request #1159 from mikutas/missing-header
...
docs: supplement missing link
2023-05-30 17:47:45 -07:00
Amir Alavi
a35e3f49b4
bump chart to v0.27.1
2023-05-30 09:19:11 -04:00
mikutas
9313041d77
docs: supplement missing link
2023-05-30 17:09:47 +09:00
Kubernetes Prow Robot
83c81e6b58
Merge pull request #1150 from a7i/fix-imagepullsecrets-indent
...
fix: imagepullsecrets indentation for kind: Deployment
2023-05-25 18:24:51 -07:00
Kubernetes Prow Robot
eb356fe6ff
Merge pull request #1151 from a7i/helm-arg-cmd
...
helm: ability to override command and args. set args inline
2023-05-25 00:12:51 -07:00
Amir Alavi
a62bb54a3a
helm: ability to override command and args. set args inline
2023-05-16 13:02:09 -04:00
Amir Alavi
92017d0fdd
fix: imagepullsecrets indentation for kind: Deployment
2023-05-16 12:48:05 -04:00
Kubernetes Prow Robot
476bee3424
Merge pull request #1146 from a7i/generic-sets
...
update deprecated sets.String to generic sets
2023-05-12 06:29:02 -07:00
Kubernetes Prow Robot
b630ecaaf7
Merge pull request #1145 from ratnopamc/deprecate-k8s-release-url
...
Use dl.k8s.io instead of kubernetes-release bucket
2023-05-11 19:50:46 -07:00
Amir Alavi
359b38a34c
update deprecated sets.String to generic sets
2023-05-11 22:35:44 -04:00
Ratnopam Chakrabarti
2c525afc76
Use dl.k8s.io instead of kubernetes-release bucket
2023-05-11 15:30:26 +00:00
Amir Alavi
e2826fa66c
fix plugin arg conversion when using multiple profiles with same plugin ( #1143 )
...
* fix plugin arg conversion when using multiple profiles with same plugin
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
* PR feedback to refactor validateDeschedulerConfiguration error handling
---------
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-05-11 08:25:03 -07:00
Kubernetes Prow Robot
0f5a5a2235
Merge pull request #1096 from a7i/version-compatibility-test
...
add unit tests for version compatibility check
2023-05-09 01:38:55 -07:00
Amir Alavi
1f6a736aab
add unit tests for version compatibility check
2023-05-05 14:57:43 -04:00
Kubernetes Prow Robot
8cbbe5501b
Merge pull request #1137 from a7i/gha-1.27
...
update helm github action workflow to v0.27.0
2023-05-05 08:25:13 -07:00
Amir Alavi
dd63aac88c
update helm github action workflow
2023-05-05 10:11:41 -04:00
Amir Alavi
4cae47fc70
update helm chart to v0.27.0 ( #1136 )
...
* update helm chart to v0.27.0
* update manifest version and docs
* fix 1.27 release version from README.md
Co-authored-by: Mike Dame <mikedame@google.com >
---------
Co-authored-by: Mike Dame <mikedame@google.com >
2023-05-05 07:09:12 -07:00
Kubernetes Prow Robot
eeafdb253a
Merge pull request #1116 from a7i/docs-1.27
...
k8s 1.27: update docs and README
2023-05-03 18:46:44 -07:00
Amir Alavi
e328b5ec53
k8s 1.27: update docs and README
2023-05-02 13:04:41 -04:00
Kubernetes Prow Robot
5ba1fef671
Merge pull request #1129 from yanggangtony/code-clean
...
Do some code cleans.
2023-05-02 04:36:12 -07:00
yanggang
71fb4a2117
Do some code cleans.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-05-01 23:09:33 +08:00
Kubernetes Prow Robot
776f196569
Merge pull request #1135 from AllenZMC/fix-policy-yaml
...
fix policy example configmap
2023-05-01 00:04:17 -07:00
czm
51ddd817e8
fix policy example configmap
...
Signed-off-by: czm <czm1192198606@live.com >
2023-04-29 17:12:32 +08:00
Kubernetes Prow Robot
773cb54e57
Merge pull request #1133 from damemi/missing-quote
...
Add missing quote to configmap
2023-04-28 07:44:16 -07:00
Mike Dame
753812a679
Add missing quote to configmap
2023-04-28 14:29:09 +00:00
Kubernetes Prow Robot
109650621a
Merge pull request #1132 from damemi/docs-version-note
...
Add note on documentation versions with links
2023-04-28 02:18:23 -07:00
Kubernetes Prow Robot
c7a025237e
Merge pull request #1127 from ingvagabund/update-documents-evict-ep
...
Drop remaining mentions of evict extension point
2023-04-28 02:18:16 -07:00
Kubernetes Prow Robot
01f5cc9f6d
Merge pull request #1130 from knelasevero/add_approver
...
Add knelasevero to approvers
2023-04-26 23:18:15 -07:00
Mike Dame
d6d93f4d2f
Add note on documentation versions with links
2023-04-26 17:12:35 +00:00
Lucas Severo Alves
6ee8344d9a
add knelasevero to approvers
2023-04-26 17:00:12 +02:00
Kubernetes Prow Robot
748bf31d6f
Merge pull request #1122 from damemi/issue-1121
...
Add json tags to internal api fields
2023-04-26 07:00:15 -07:00
Jan Chaloupka
4565184481
Drop remaining mentions of evict extension point
2023-04-26 09:59:49 +02:00
Mike Dame
d9316d1872
Add json tags to internal fields and basic config test
2023-04-24 12:54:43 +00:00
Kubernetes Prow Robot
a7113dab50
Merge pull request #1120 from ingvagabund/remove-evict-extension-point
...
Drop Evict extension point
2023-04-24 05:43:01 -07:00
Jan Chaloupka
76e7e4f57b
Drop Evict extension point
...
The Evict extension point is not currently in use.
All DefaultEvictor plugin functionality is exposed through Filter and
PreEvictionFilter extension points instead.
Thus, no need to limit the number of evictors enabled.
2023-04-20 17:52:40 +02:00
Kubernetes Prow Robot
e8c099c6d3
Merge pull request #1109 from a7i/amir/update-0.26.1-refs
...
update v0.26.1 references
2023-04-12 07:22:32 -07:00
Amir Alavi
ac2b727fe3
bump to k8s 1.27 ( #1115 )
...
* bump to k8s 1.27
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
* bump go version to 1.20.3
* bump k8s version and kine for e2e
---------
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-04-12 07:08:32 -07:00
Kubernetes Prow Robot
5c69cdad29
Merge pull request #1112 from yanggangtony/fix-error-msg-for-cachedClient
...
Fix typo log message for cachedClient
2023-04-06 20:17:15 -07:00
yanggang
e96c570ff4
Fix typo log message for cachedClient
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-07 09:31:47 +08:00
Kubernetes Prow Robot
ae24dceaae
Merge pull request #1111 from yanggangtony/delete-ioutil
...
Delete "io/ioutil" package.
2023-04-06 06:43:48 -07:00
yanggang
aef6c05032
Delete "io/ioutil" package.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-06 11:29:22 +08:00
Kubernetes Prow Robot
ce0d31fd5f
Merge pull request #1097 from ingvagabund/list-of-extension-points
...
Populate extension points automatically for deschedule, balance, filter and preEvictionFilter
2023-04-03 08:17:51 -07:00
Jan Chaloupka
3510aba01d
Detect individual extension points from plugin types
...
- Populate extension points automatically from plugin types
- Make a list of enabled extension points based on a profile
configuration
- Populate filter and pre-eviction filter handles from their
corresponding extension points
2023-04-03 17:04:31 +02:00
Amir Alavi
2bf7ab8f2a
update v0.26.1 references
2023-04-03 10:09:24 -04:00
Kubernetes Prow Robot
347f89533c
Merge pull request #1105 from yanggangtony/fix-notes-for-podutil
...
fix go doc for method IsPodWithPVC
2023-04-03 06:19:51 -07:00
Kubernetes Prow Robot
e972f4c1ed
Merge pull request #1100 from a7i/1.27-rc0
...
bump to k8s 1.27 rc0
2023-04-03 06:03:54 -07:00
Kubernetes Prow Robot
ed611052cf
Merge pull request #1104 from yanggangtony/fix-default-plugin
...
fix default value assignment of EvictLocalStoragePods
2023-04-02 14:47:51 -07:00
yanggang
4955ed5353
fix IsPodWithPVC func notes.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-02 08:49:52 +08:00
yanggang
90905d2c21
fix if condition for the right value of EvictLocalStoragePods
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-02 08:13:01 +08:00
Kubernetes Prow Robot
aba0064d49
Merge pull request #1103 from yanggangtony/cmd-corba-args-to-uppercase-letter
...
dry-run cli flag to use uppercase
2023-03-31 17:47:48 -07:00
yanggang
feb8989468
Make cobra args help info to uppercase.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-01 08:26:09 +08:00
Jan Chaloupka
3897ff069f
Extend PluginRegistry with plugin type
2023-03-30 10:55:59 +02:00
Kubernetes Prow Robot
208f78c6dc
Merge pull request #1101 from a7i/bump-golangci
...
bump golangci for go 1.20
2023-03-27 07:10:29 -07:00
Amir Alavi
d5b7c362dc
fix gofumpt violation
2023-03-25 11:08:07 -04:00
Amir Alavi
b16092f5a7
bump golangci for go 1.20
2023-03-25 10:52:59 -04:00
Amir Alavi
6f350ceb12
bump to k8s 1.27 rc0
2023-03-25 10:42:51 -04:00
Jan Chaloupka
757661110a
Move framework types under framework/types
2023-03-23 19:00:55 +01:00
Jan Chaloupka
bcc6c8eb2a
Descheduling profile with PoC fake plugin ( #1093 )
...
* Descheduling profile
* Fake plugin + profile unit testing
* Rename Profile config type into DeschedulerProfile
To avoid resamblance with profileImpl
* First run deschedule, then balance extension points
2023-03-23 09:14:33 -07:00
Kubernetes Prow Robot
0872b214ff
Merge pull request #1090 from dangen-effy/patch-1
...
docs: typo
2023-03-14 21:16:16 -07:00
dangen
95759f7bb6
docs: typo
...
Plugion to Plugin
2023-03-14 16:49:32 +09:00
Kubernetes Prow Robot
a86345ec97
Merge pull request #1063 from JaneLiuL/master
...
Add k8s compatibility warnings to logs
2023-03-13 18:05:12 -07:00
Kubernetes Prow Robot
2b15be7f40
Merge pull request #937 from a7i/remove-e2e-helm-action
...
remove e2e tests from helm github action
2023-03-13 13:16:50 -07:00
Amir Alavi
54d80de507
remove e2e tests from helm github action
2023-03-13 09:55:43 -04:00
JaneLiuL
7068fc6082
Add k8s compatibility warnings to logs
2023-03-13 19:30:40 +08:00
Kubernetes Prow Robot
85e9f86e85
Merge pull request #1066 from JaneLiuL/securitycontext
...
expose security context from helm chart
2023-03-09 17:32:32 -08:00
Kubernetes Prow Robot
710611527c
Merge pull request #1075 from damemi/gke-optimize-utilization-readme
...
Add note to HighNodeUtilization readme for GKE users
2023-03-08 06:33:15 -08:00
Mike Dame
25d1508485
Add note to HighNodeUtilization readme for GKE users
2023-03-08 12:59:21 +00:00
Kubernetes Prow Robot
0fdb620db7
Merge pull request #1072 from JannikSt/master
...
Fix typo in nodeutilization types
2023-03-06 06:04:30 -08:00
Jannik Straube
176d3ac024
Fix typo in nodeutilization types
2023-03-06 10:31:32 +01:00
Gaurav Dasson
c6e5cd41de
Adding descheduler policy API Version option in helm templates ( #1068 )
...
* Adding descheduler policy API Version option
in helm templates
* Updating comment for deschedulerPolicyAPIVersion
field
* Making v1alpha1 the default api version
2023-03-03 07:44:59 -08:00
Kubernetes Prow Robot
ab18575b15
Merge pull request #1057 from xiaoanyunfei/bugfix/podnum
...
check pod number
2023-03-02 05:40:56 -08:00
JaneLiuL
12965c4660
expose securityContext
2023-03-01 11:14:59 +08:00
Kubernetes Prow Robot
e51e8b831f
Merge pull request #1059 from lucming/code-cleanup
...
remove some logic useless
2023-02-16 17:49:38 -08:00
sunxiaofei
b9ddbf12ed
fitsRequest check pod num
2023-02-16 20:20:38 +08:00
lucming
02b1e8b8b9
remove some logic useless
2023-02-16 17:25:00 +08:00
Lucas Severo Alves
463158f7dc
v1alpha2 docs ( #1049 )
...
* v1alph2 docs
* remove internal toc (gh has this natively)
* fix typo and newlines
* name plugins with less confusing names
* add type column
* fix kv selector and nodeSelector desc
* group plugin types in a table
* link the deprecated doc
* warning signs
2023-02-13 18:45:30 -08:00
Harsha Narayana
93a014ef5e
metrics: enable loop duration and strategy duration metrics ( #1041 )
...
* metrics: enable loop duration and strategy duration metrics
* metrics: enable loop duration and strategy duration metrics
2023-02-03 20:08:28 -08:00
Kubernetes Prow Robot
904b8835e1
Merge pull request #1051 from gustavomfc/fix/conversion_v1alpha1_
...
Fix v1alpha1 conversion to use universal decoder
2023-02-03 06:40:30 -08:00
gustavo.carneiro
2470252841
Copyright date from 2022 to 2023
...
Signed-off-by: Gustavo Carneiro <gustavo.mfc@icloud.com >
2023-01-30 13:05:58 -03:00
gustavo.carneiro
82cbc15380
Fix v1alpha1 conversion to use universal decoder
2023-01-30 12:53:18 -03:00
Kubernetes Prow Robot
b5c3d2bfd1
Merge pull request #1048 from harshanarayana/enable-docs-auto-gen
...
enable auto generation of the documents
2023-01-24 06:08:17 -08:00
Harsha Narayana
87925e4457
enable auto generation of the documents
2023-01-24 08:55:52 +05:30
Kubernetes Prow Robot
49f60bfc43
Merge pull request #1034 from a7i/client-connection
...
support client connection configuration to provide QPS and burst
2023-01-18 11:26:34 -08:00
Lucas Severo Alves
137f3b20dc
add v1alpha2 registry based conversion ( #1006 )
...
* add v1alpha2 registry based conversion
* test defaults, set our 1st explicit default
* fix typos and dates
* move pluginregistry to its own dir
* remove unused v1alpha2.Namespace type
* move migration code folders, remove switch
* validate internalPolicy a single time
* remove structured logs
* simplify return
* check for nil methods
* properly check before adding default evictor
* add TODO comment
* bump copyright year
2023-01-17 08:10:34 -08:00
Kubernetes Prow Robot
861c6325f3
Merge pull request #1038 from damemi/0.26.0-helm-chart
...
Update helm chart to v0.26.0
2023-01-13 07:58:25 -08:00
Kubernetes Prow Robot
549fb88dac
Merge pull request #1042 from a7i/revert-995-split_help_argument_in_dockerfile
...
Revert "Split CMD into ENTRYPOINT and CMD for Dockerfile"
2023-01-11 07:39:46 -08:00
Amir Alavi
03747b0794
Revert "Split CMD into ENTRYPOINT and CMD for Dockerfile"
2023-01-11 10:17:46 -05:00
Kubernetes Prow Robot
37e64abab8
Merge pull request #995 from Bobonium/split_help_argument_in_dockerfile
...
Split CMD into ENTRYPOINT and CMD for Dockerfile
2023-01-09 00:27:29 -08:00
Amir Alavi
46e43a07bf
support client connection configuration to provide QPS and burst
2023-01-05 22:00:33 -05:00
Mike Dame
17ab593677
Update helm chart to v0.26.0
2023-01-05 18:08:46 +00:00
Kubernetes Prow Robot
e6580b97a8
Merge pull request #1035 from a7i/copyright-2023
...
update license year boilerplate by running make gen
2023-01-04 10:26:00 -08:00
Amir Alavi
923921a1aa
update license year by running make gen
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-01-04 13:09:50 -05:00
Jochen Dick
646e2a72be
Update Dockerfile
...
remove redundant empty line from end of file
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
2022-12-28 10:06:55 +01:00
Kubernetes Prow Robot
a7c16d92fa
Merge pull request #1015 from JaneLiuL/master
...
bump to k8s 1.26
2022-12-27 19:13:27 -08:00
Kubernetes Prow Robot
ca79c2679d
Merge pull request #1030 from my-git9/cleanup/ioutil
...
cleanup: remove ioutil for new go version
2022-12-26 08:27:27 -08:00
xin.li
e73634f04d
cleanup: remove ioutil for new go version
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2022-12-26 10:52:18 +08:00
Kubernetes Prow Robot
3c80f33bb0
Merge pull request #1029 from a7i/revert-1019-parallel-docker-build
...
Revert "parallelize docker build for each arch"
2022-12-22 06:03:26 -08:00
Amir Alavi
1a37c0800e
Revert "parallelize docker build for each arch"
2022-12-21 23:09:33 -05:00
Kubernetes Prow Robot
6233b6c06e
Merge pull request #1028 from damemi/one-hour-timeout
...
Increase cloud build timeout to 1 hour
2022-12-21 08:23:25 -08:00
Mike Dame
6f0ef883da
Increase cloud build timeout to 1 hour
2022-12-21 15:05:48 +00:00
Kubernetes Prow Robot
63813c9d3b
Merge pull request #1023 from a7i/increase-build-timeout
...
increase cloudbuild timeout to 30 minutes until we figure out proper optimizations
2022-12-14 09:03:36 -08:00
Amir Alavi
bf72cf52c1
increase cloudbuild timeout to 30 minutes until we figure out proper optimizations
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2022-12-14 10:57:46 -05:00
Kubernetes Prow Robot
3d706640bc
Merge pull request #1018 from a7i/docs-1.26
...
update version references in docs and readme
2022-12-14 06:43:35 -08:00
Kubernetes Prow Robot
849d8762be
Merge pull request #1019 from a7i/parallel-docker-build
...
parallelize docker build for each arch
2022-12-14 05:59:35 -08:00
Amir Alavi
1f682685ef
parallelize docker build for archs
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2022-12-14 08:41:48 -05:00
Kubernetes Prow Robot
70d917a624
Merge pull request #1022 from ism-k/master
...
Allow a setting option `ttlSecondsAfterFinished` for job
2022-12-14 04:29:33 -08:00
ism-k
29f48e8c3c
♻️ format README
2022-12-14 13:12:52 +09:00
ism-k
d7a4c221a3
♻️ update information
2022-12-14 13:12:24 +09:00
ism-k
8dbd44c467
👍 Allow setting options ttlSecondsAfterFinished
2022-12-14 13:09:32 +09:00
Amir Alavi
4d04018c93
update version references in docs and readme
2022-12-12 20:51:16 -05:00
Kubernetes Prow Robot
9f6afd4d25
Merge pull request #1016 from knelasevero/logo-readme
...
logo in readme
2022-12-12 17:47:33 -08:00
Lucas Severo Alves
97c22e1e4b
logo in readme
2022-12-12 16:19:22 +01:00
Kubernetes Prow Robot
c418736f6e
Merge pull request #1012 from a7i/go-1.19.3
...
Go 1.19.3
2022-12-12 05:03:34 -08:00
JaneLiuL
d73b33040f
bump to k8s 1.26
2022-12-12 11:44:28 +08:00
Amir Alavi
9e1805d9e1
bump go version to 1.19.3
2022-12-06 11:21:25 -05:00
Kubernetes Prow Robot
329c77ab54
Merge pull request #1010 from a7i/1.26-rc
...
bump to k8s 1.26-rc.1
2022-12-05 20:24:45 -08:00
Amir Alavi
456248d4ba
bump to k8s 1.26-rc.1
2022-12-03 18:04:46 -05:00
Lucas Severo Alves
da8b145980
use plugin registry and prepare for conversion ( #1003 )
...
* use plugin registry and prepare for conersion
* Register plugins explicitly to a registry
* check interface impl instead of struc var
* setup plugins at top level
* treat plugin type combinations
* pass registry as arg of V1alpha1ToInternal
* move registry yet another level up
* check interface type separately
2022-12-01 06:05:54 -08:00
Jan Chaloupka
6e953b2ff3
Separate migration of strategy configuration from the constructing and running the plugins ( #999 )
...
* Remove log level from Errors
Every error printed via Errors is expected to be important and always
printable.
* Invoke first Deschedule and then Balance extension points (breaking change)
* Separate plugin arg conversion from pluginsMap
* Seperate profile population from plugin execution
* Convert strategy params into profiles outside the main descheduling loop
Strategy params are static and do not change in time.
* Bump the internal DeschedulerPolicy to v1alpha2
Drop conversion from v1alpha1 to internal
* add tests to v1alpha1 to internal conversion
* add tests to strategyParamsToPluginArgs params wiring
* in v1alpha1 evictableNamespaces are still Namespaces
* add test passing in all params
Co-authored-by: Lucas Severo Alves <lseveroa@redhat.com >
2022-11-14 08:48:41 -08:00
Kubernetes Prow Robot
d997be59a9
Merge pull request #969 from Dentrax/gofumpt
...
run: `gofumpt -w -extra .`
2022-11-08 10:26:19 -08:00
Kubernetes Prow Robot
7bf60cd01e
Merge pull request #1000 from knelasevero/patch-1
...
add myself to reviewers
2022-11-08 07:19:23 -08:00
Lucas Severo Alves
ac8adfbb09
add myself to reviewers
2022-11-08 13:39:55 +01:00
Furkan
99868a41de
run: gofumpt -w -extra .
...
Enable gofumpt in golangci
Signed-off-by: Furkan <furkan.turkal@trendyol.com >
2022-11-07 09:11:27 +03:00
Kubernetes Prow Robot
f938ac5e87
Merge pull request #998 from damemi/registry-k8s-io
...
Switch to registry.k8s.io
2022-11-04 02:48:14 -07:00
Mike Dame
dfb1dbc91f
Switch to registry.k8s.io
2022-11-03 13:23:00 +00:00
Kubernetes Prow Robot
ba6b2b97d9
Merge pull request #853 from Dentrax/dry-run-warning
...
add warning when enabling both dryRun and leaderElection
2022-11-02 15:49:01 -07:00
Furkan
fa1f7969d1
add warning when enabling both dryRun and leaderElection
...
Signed-off-by: Furkan <furkan.turkal@trendyol.com >
Co-authored-by: Emin <emin.aktas@trendyol.com >
2022-11-02 19:50:22 +03:00
Kubernetes Prow Robot
5641fa335a
Merge pull request #967 from knelasevero/pre-ev-namespace-filter
...
add namespace filter to nodeutilization
2022-10-30 07:48:43 -07:00
Lucas Severo Alves
398ffa7ee0
add namespace filter to nodeutilization
2022-10-30 00:52:30 +02:00
Bobonium
4d203c5e0c
Split CMD into ENTRYPOINT and CMD for Dockerfile
...
--help is now an CMD which means explicitly providing a command override in kubernetes is no longer required. You can now simply provide the necessary arguments
2022-10-27 12:33:00 +02:00
Kubernetes Prow Robot
6481f1bc38
Merge pull request #993 from wakeful/fix-json-log
...
correct JSON log format
2022-10-25 02:18:35 -07:00
AJ
3067d2b311
correct JSON log format
2022-10-25 10:53:24 +02:00
Kubernetes Prow Robot
7777d5aa40
Merge pull request #990 from damemi/add-api-group
...
Update helm chart rolebinding to use events.k8s.io
2022-10-19 17:00:56 -07:00
Kubernetes Prow Robot
30aab9c0ae
Merge pull request #982 from damemi/fix-verify-scripts
...
Update verify scripts to use the generation scripts directly
2022-10-18 10:25:19 -07:00
Kubernetes Prow Robot
894bfe5e2e
Merge pull request #975 from madeelibm/add-scc-e2e-tests
...
add restricted security policy to e2e test pods
2022-10-18 06:17:19 -07:00
Muhammad Adeel
76a0014707
add restricted security policy to e2e test pods
...
add RunAsUser and RunAsGroup to PSC
Signed-off-by: Muhammad Adeel <muhammad.adeel@ibm.com >
2022-10-18 15:01:12 +02:00
Kubernetes Prow Robot
3f53c0b4ea
Merge pull request #988 from spike-liu/find-dirs-containing_comment_tags
...
Fix wired behavior during code generating
2022-10-17 10:49:07 -07:00
Kubernetes Prow Robot
121ea1ba5f
Merge pull request #987 from ingvagabund/readme-eviction-annotation
...
README: be more explicit about scope of the descheduler.alpha.kubernetes.io/evict annotation
2022-10-17 06:25:07 -07:00
Mike Dame
8d1d240473
Update helm chart rolebinding to use events.k8s.io
2022-10-17 13:14:31 +00:00
vlc刘诚
9a120ddc68
exclude files & folders under _tmp folder during code-generator and remove redundant path replacement to keep the consistent logic with verify-xx.sh
2022-10-17 18:41:06 +08:00
Jan Chaloupka
28e0965eeb
README: be more explicit about scope of the descheduler.alpha.kubernetes.io/evict annotation
2022-10-17 10:47:47 +02:00
Mike Dame
f2b674e690
Update verify scripts to use the generation scripts directly
2022-10-13 17:07:04 +00:00
Kubernetes Prow Robot
c2ab28b79a
Merge pull request #973 from Nordix/fix-kkustomize-link/furkat
...
📖 Fix broken kustomize reference in the root README
2022-10-07 00:21:53 -07:00
Furkat Gofurov
7bed6456d1
Fix broken kustomize reference in the root README
2022-10-06 22:00:10 +03:00
Kubernetes Prow Robot
bed8693c69
Merge pull request #971 from sanposhiho/patch-1
...
doc: fix a markdown's style on user-guide
2022-10-06 07:09:52 -07:00
Kensei Nakada
4fb781ae7c
doc: fix a markdown's style on user-guide
2022-10-06 14:48:32 +09:00
Kubernetes Prow Robot
7c7e1b9cdc
Merge pull request #953 from a7i/ct-kind-deployment
...
set helm-extra-set-args as inline command arg
2022-09-28 01:27:36 -07:00
Kubernetes Prow Robot
da3ebb7293
Merge pull request #961 from vholer/issue-960
...
includeSoftConstraints not being respected for TopologySpreadConstraint
2022-09-27 03:57:50 -07:00
Kubernetes Prow Robot
9e2c323aa9
Merge pull request #954 from spike-liu/master
...
Plugin arguments defaulting + moving plugin arguments to each corresponding plugin #925
2022-09-27 03:21:51 -07:00
Vlastimil Holer
7349b398e5
includeSoftConstraints not being respected for TopologySpreadConstraint
...
Issue #960
Signed-off-by: Vlastimil Holer <vh@fortrabbit.com >
2022-09-26 13:44:34 +02:00
Kubernetes Prow Robot
1d79f8761f
Merge pull request #956 from xiaoanyunfei/bugfix/informerfactory
...
fix sharedInformerFactory register
2022-09-26 04:39:44 -07:00
vlc刘诚
ac0261fafb
fix pull-descheduler-verify-master build error
2022-09-24 09:29:42 +08:00
vlc刘诚
bfb688e016
RemovePodsViolatingTopologySpreadConstraintArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
0d8106a32d
RemovePodsViolatingNodeTaintsArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
7b1ddf1edb
RemovePodsViolatingNodeAffinityArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
28ed86f079
RemovePodsViolatingInterPodAntiAffinityArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
fa874844a1
RemovePodsHavingTooManyRestartsArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
63396d4afc
RemoveFailedPodsArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
acc267b0b3
RemoveDuplicatesArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
1d3e130366
PodLifeTimeArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
35aff52ec4
NodeUtilizationArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
a665a7b4e6
DefaultEvictorArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
2b1746cda8
+ new line & automatic file scan mechanism for conversions/defaulters gen
2022-09-23 11:32:38 +08:00
vlc刘诚
96c03a3f97
Replace hard-code input-dirs with automatic file scan mechanism
2022-09-23 11:32:38 +08:00
vlc刘诚
3d28b85212
remove unused file: validation_pluginargs.go
2022-09-23 11:32:38 +08:00
vlc刘诚
9eb4c350d8
e2e_test fixing
2022-09-23 11:32:38 +08:00
vlc刘诚
dc04abc0e6
RemovePodsViolatingTopologySpreadConstraint defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
5a755e73f2
RemovePodsViolatingNodeTaints defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
a000bfa796
RemovePodsViolatingNodeAffinity defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
3007448bdb
RemovePodsViolatingInterPodAntiAffinity defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
b9a89196f2
RemovePodsHavingTooManyRestarts defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
78c3260692
RemoveDuplicates defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
0c88326df9
PodLifeTime defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
3b1cdcd442
NodeUtilization defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
8d471baf3e
RemoveFailedPods defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
Kubernetes Prow Robot
e31f4aac00
Merge pull request #957 from aslafy-z/patch-1
...
feat: show nodename in evicted events
2022-09-22 07:57:05 -07:00
Zadkiel Aharonian
ad82adf245
feat: show nodename in evicted events
2022-09-22 15:00:19 +02:00
sunxiaofei
c10e6d6c12
fix sharedInformerFactory register
2022-09-22 16:02:13 +08:00
Kubernetes Prow Robot
3e385d9504
Merge pull request #955 from knelasevero/pre-ev-filter
...
add PreEvictionFilter extension to DefaultEvictor Plugin
2022-09-20 09:17:20 -07:00
Lucas Severo Alves
edec8fe010
add PreEvictionFilter extension to DefaultEvictor Plugin
2022-09-20 17:29:41 +02:00
Amir Alavi
a85f2cf6f5
set helm-extra-set-args as inline command arg
2022-09-18 20:58:33 -04:00
Kubernetes Prow Robot
15045c5dcb
Merge pull request #952 from liangyuanpeng/Fix_contributor_readme
...
Fix wrong command on contributor-guide.md
2022-09-18 08:22:29 -07:00
Lan Liang
6c4d1a900d
Fix wrong command on contributor-guide.md
2022-09-18 13:51:09 +08:00