Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check whether pod matches the inter-pod anti-affinity of another Pod in a given Node in NodeFit() #1356

Merged

Conversation

nikimanoledaki
Copy link
Contributor

@nikimanoledaki nikimanoledaki commented Feb 27, 2024

Closes #1279
More context: #1149

This PR:

  • Adds a check so that NodeFit() assesses whether it is possible for a given Pod to be scheduled on a given Node before descheduling it.
  • Uses the logic from the plugin RemovePodsViolatingInterPodAntiAffinity which already contains logic for fetching and comparing the pod anti-affinity rule of pods in checkPodsWithAntiAffinityExist. The logic is extracted from pkg/framework/plugins/removepodsviolatinginterpodantiaffinity -> pkg/utils/predicates.go (for the most part).
  • Updates user-facing docs about this change
  • Adds lots of unit tests!

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 27, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 27, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @nikimanoledaki. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nikimanoledaki nikimanoledaki changed the title Nm/pod anti affinity Add inter-pod anti-affinity to NodeFit() Feb 27, 2024
@nikimanoledaki nikimanoledaki changed the title Add inter-pod anti-affinity to NodeFit() Check whether pod has inter-pod anti-affinity with another Pod in given Node in NodeFit() Feb 27, 2024
@nikimanoledaki nikimanoledaki changed the title Check whether pod has inter-pod anti-affinity with another Pod in given Node in NodeFit() Check whether pod matches the inter-pod anti-affinity of another Pod in a given Node in NodeFit() Feb 27, 2024
@nikimanoledaki nikimanoledaki marked this pull request as ready for review February 27, 2024 15:27
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 27, 2024
Copy link
Contributor

@damemi damemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 27, 2024
@nikimanoledaki
Copy link
Contributor Author

/ok-to-test

@damemi thank you for approving the tests - I fixed the linter issue, would it be possible to run them again please?

Copy link

@logyball logyball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @nikimanoledaki , great work here! I've got the tests all passing, and look forward to testing this out with you. I have one question about the namespaces that we'll be comparing in order to figure out which pods need to checked for anti-affinity, let me know what you think.

pkg/descheduler/node/node_test.go Show resolved Hide resolved
pkg/utils/priority.go Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 3, 2024
@ingvagabund
Copy link
Contributor

/retest pull-descheduler-verify-master

@k8s-ci-robot
Copy link
Contributor

@ingvagabund: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

  • /test pull-descheduler-test-e2e-k8s-master-1-27
  • /test pull-descheduler-test-e2e-k8s-master-1-28
  • /test pull-descheduler-test-e2e-k8s-master-1-29
  • /test pull-descheduler-unit-test-master-master
  • /test pull-descheduler-verify-build-master
  • /test pull-descheduler-verify-master

Use /test all to run all jobs.

In response to this:

/retest pull-descheduler-verify-master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 6, 2024
@knelasevero
Copy link
Contributor

I think this can get in before we redesign nodeFit, as @a7i pointed out.

gonna approve and let lgtm's for other maintainers and @logyball

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 6, 2024
@nikimanoledaki
Copy link
Contributor Author

/test all

Copy link

@logyball logyball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! nice work

…part of NodeFit()

* Add unit tests for checking inter-pod anti-affinity match in NodeFit()
* Export setPodAntiAffinity() helper func to test utils
@nikimanoledaki nikimanoledaki force-pushed the nm/pod-anti-affinity branch 4 times, most recently from 118bf10 to 3ccd15d Compare March 12, 2024 11:20
* 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
@nikimanoledaki
Copy link
Contributor Author

nikimanoledaki commented Mar 12, 2024

Thank you @ingvagabund! I rewrote the history a bit to remove in-between draft steps & duplications, as well as group unit test commits :) Could you review when you can please? Thank you!

/test all

@nikimanoledaki nikimanoledaki requested a review from a7i March 12, 2024 11:31
* 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
@nikimanoledaki
Copy link
Contributor Author

/cc ingvagabund

@a7i
Copy link
Contributor

a7i commented Mar 12, 2024

@nikimanoledaki I'm working on getting this merged today. We have a CI job that is stuck

@a7i
Copy link
Contributor

a7i commented Mar 12, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 12, 2024
@a7i
Copy link
Contributor

a7i commented Mar 12, 2024

@a7i
Copy link
Contributor

a7i commented Mar 13, 2024

/retest-required

@a7i
Copy link
Contributor

a7i commented Mar 13, 2024

thank you for your contribution @nikimanoledaki 🏆

@k8s-ci-robot k8s-ci-robot merged commit 749e81c into kubernetes-sigs:master Mar 13, 2024
10 checks passed
@nikimanoledaki
Copy link
Contributor Author

Thank you so much for the reviews and help @a7i @logyball @ingvagabund @knelasevero @damemi! 🎉 🥳

spiceratops added a commit to spiceratops/k8s-gitops that referenced this pull request May 20, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [descheduler](https://togithub.com/kubernetes-sigs/descheduler) |
minor | `0.29.0` -> `0.30.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>kubernetes-sigs/descheduler (descheduler)</summary>

###
[`v0.30.0`](https://togithub.com/kubernetes-sigs/descheduler/releases/tag/v0.30.0):
Descheduler v0.30.0

[Compare
Source](https://togithub.com/kubernetes-sigs/descheduler/compare/v0.29.0...v0.30.0)

#### What's Changed

- fix(podlifetime): fix failed unittest by
[@&#8203;xujihui1985](https://togithub.com/xujihui1985) in
[kubernetes-sigs/descheduler#1334
- `PodLifeTime`: update support pods with container status and pods
reason by [@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[kubernetes-sigs/descheduler#1330
- v1alpha1: log deprecation notice by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1337
- feat: Add support for topologySpreadConstraints by
[@&#8203;UAntBou](https://togithub.com/UAntBou) in
[kubernetes-sigs/descheduler#1289
- chore: update dependencies for security vulnerabilities
(CVE-2023-48795) by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1343
- trim managedFields in shared informer factory by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1346
- fix: `RemovePodsHavingTooManyRestarts` to include
`InitContainerStatuses` by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1348
- Improve PodEvictor observability through EvictOptions by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1349
- Fix node taint wrong EvictOption field by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1358
- Disambiguate node fit log messages by
[@&#8203;jackfrancis](https://togithub.com/jackfrancis) in
[kubernetes-sigs/descheduler#1362
- Check whether pod matches the inter-pod anti-affinity of another Pod
in a given Node in `NodeFit()` by
[@&#8203;nikimanoledaki](https://togithub.com/nikimanoledaki) in
[kubernetes-sigs/descheduler#1356
- Bump to k8s v0.30.0-alpha.3 by
[@&#8203;pravarag](https://togithub.com/pravarag) in
[kubernetes-sigs/descheduler#1359
- skip eviction when replica count is below evictor `minReplicas`
threshold setting by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1257
- Add argument to remove only pods violating allowlisted taints by
[@&#8203;etoster](https://togithub.com/etoster) in
[kubernetes-sigs/descheduler#1360
- use v1alpha2 api for helm chart default values by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1139
- `RemoveDuplicates`: reduce cycle times identifying duplicates by
[@&#8203;ls-2018](https://togithub.com/ls-2018) in
[kubernetes-sigs/descheduler#1365
- avoid redundant type conversion of DefaultEvictorArgs parameter in
DefaultEvictor by [@&#8203;fanhaouu](https://togithub.com/fanhaouu) in
[kubernetes-sigs/descheduler#1369
- bump(golang.org/x/net)=v0.23.0 by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1373
- Allow eviction of DaemonSet pods by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1342
- bump to go 1.22.2 by [@&#8203;jklaw90](https://togithub.com/jklaw90)
in
[kubernetes-sigs/descheduler#1374
- helm: Allow the use of existing policy configMap by
[@&#8203;agmimidi](https://togithub.com/agmimidi) in
[kubernetes-sigs/descheduler#1376
- Fix and improve the namespace filtering description in README by
[@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) in
[kubernetes-sigs/descheduler#1379
- Add an extra parameter ExitCode to RemoveFailedPods by
[@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) in
[kubernetes-sigs/descheduler#1381
- 753 - Descheduling framework by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1372
- KEP-753: Descheduling framework: update diagram by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1396
- \[release 1.30] upgrade kubernetes version and docs by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1400

#### New Contributors

- [@&#8203;xujihui1985](https://togithub.com/xujihui1985) made their
first contribution in
[kubernetes-sigs/descheduler#1334
- [@&#8203;UAntBou](https://togithub.com/UAntBou) made their first
contribution in
[kubernetes-sigs/descheduler#1289
- [@&#8203;tioxy](https://togithub.com/tioxy) made their first
contribution in
[kubernetes-sigs/descheduler#1349
- [@&#8203;jackfrancis](https://togithub.com/jackfrancis) made their
first contribution in
[kubernetes-sigs/descheduler#1362
- [@&#8203;nikimanoledaki](https://togithub.com/nikimanoledaki) made
their first contribution in
[kubernetes-sigs/descheduler#1356
- [@&#8203;etoster](https://togithub.com/etoster) made their first
contribution in
[kubernetes-sigs/descheduler#1360
- [@&#8203;ls-2018](https://togithub.com/ls-2018) made their first
contribution in
[kubernetes-sigs/descheduler#1365
- [@&#8203;fanhaouu](https://togithub.com/fanhaouu) made their first
contribution in
[kubernetes-sigs/descheduler#1369
- [@&#8203;agmimidi](https://togithub.com/agmimidi) made their first
contribution in
[kubernetes-sigs/descheduler#1376
- [@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) made their
first contribution in
[kubernetes-sigs/descheduler#1379

**Full Changelog**:
kubernetes-sigs/descheduler@v0.29.0...v0.30.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguOSIsInVwZGF0ZWRJblZlciI6IjM3LjM2OC45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9oZWxtIiwidHlwZS9taW5vciJdfQ==-->
kireque pushed a commit to kireque/home-ops that referenced this pull request May 21, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [descheduler](https://togithub.com/kubernetes-sigs/descheduler) |
minor | `0.29.0` -> `0.30.0` |

---

### Release Notes

<details>
<summary>kubernetes-sigs/descheduler (descheduler)</summary>

###
[`v0.30.0`](https://togithub.com/kubernetes-sigs/descheduler/releases/tag/v0.30.0):
Descheduler v0.30.0

[Compare
Source](https://togithub.com/kubernetes-sigs/descheduler/compare/v0.29.0...v0.30.0)

#### What's Changed

- fix(podlifetime): fix failed unittest by
[@&#8203;xujihui1985](https://togithub.com/xujihui1985) in
[kubernetes-sigs/descheduler#1334
- `PodLifeTime`: update support pods with container status and pods
reason by [@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[kubernetes-sigs/descheduler#1330
- v1alpha1: log deprecation notice by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1337
- feat: Add support for topologySpreadConstraints by
[@&#8203;UAntBou](https://togithub.com/UAntBou) in
[kubernetes-sigs/descheduler#1289
- chore: update dependencies for security vulnerabilities
(CVE-2023-48795) by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1343
- trim managedFields in shared informer factory by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1346
- fix: `RemovePodsHavingTooManyRestarts` to include
`InitContainerStatuses` by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1348
- Improve PodEvictor observability through EvictOptions by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1349
- Fix node taint wrong EvictOption field by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1358
- Disambiguate node fit log messages by
[@&#8203;jackfrancis](https://togithub.com/jackfrancis) in
[kubernetes-sigs/descheduler#1362
- Check whether pod matches the inter-pod anti-affinity of another Pod
in a given Node in `NodeFit()` by
[@&#8203;nikimanoledaki](https://togithub.com/nikimanoledaki) in
[kubernetes-sigs/descheduler#1356
- Bump to k8s v0.30.0-alpha.3 by
[@&#8203;pravarag](https://togithub.com/pravarag) in
[kubernetes-sigs/descheduler#1359
- skip eviction when replica count is below evictor `minReplicas`
threshold setting by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1257
- Add argument to remove only pods violating allowlisted taints by
[@&#8203;etoster](https://togithub.com/etoster) in
[kubernetes-sigs/descheduler#1360
- use v1alpha2 api for helm chart default values by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1139
- `RemoveDuplicates`: reduce cycle times identifying duplicates by
[@&#8203;ls-2018](https://togithub.com/ls-2018) in
[kubernetes-sigs/descheduler#1365
- avoid redundant type conversion of DefaultEvictorArgs parameter in
DefaultEvictor by [@&#8203;fanhaouu](https://togithub.com/fanhaouu) in
[kubernetes-sigs/descheduler#1369
- bump(golang.org/x/net)=v0.23.0 by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1373
- Allow eviction of DaemonSet pods by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1342
- bump to go 1.22.2 by [@&#8203;jklaw90](https://togithub.com/jklaw90)
in
[kubernetes-sigs/descheduler#1374
- helm: Allow the use of existing policy configMap by
[@&#8203;agmimidi](https://togithub.com/agmimidi) in
[kubernetes-sigs/descheduler#1376
- Fix and improve the namespace filtering description in README by
[@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) in
[kubernetes-sigs/descheduler#1379
- Add an extra parameter ExitCode to RemoveFailedPods by
[@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) in
[kubernetes-sigs/descheduler#1381
- 753 - Descheduling framework by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1372
- KEP-753: Descheduling framework: update diagram by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1396
- \[release 1.30] upgrade kubernetes version and docs by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1400

#### New Contributors

- [@&#8203;xujihui1985](https://togithub.com/xujihui1985) made their
first contribution in
[kubernetes-sigs/descheduler#1334
- [@&#8203;UAntBou](https://togithub.com/UAntBou) made their first
contribution in
[kubernetes-sigs/descheduler#1289
- [@&#8203;tioxy](https://togithub.com/tioxy) made their first
contribution in
[kubernetes-sigs/descheduler#1349
- [@&#8203;jackfrancis](https://togithub.com/jackfrancis) made their
first contribution in
[kubernetes-sigs/descheduler#1362
- [@&#8203;nikimanoledaki](https://togithub.com/nikimanoledaki) made
their first contribution in
[kubernetes-sigs/descheduler#1356
- [@&#8203;etoster](https://togithub.com/etoster) made their first
contribution in
[kubernetes-sigs/descheduler#1360
- [@&#8203;ls-2018](https://togithub.com/ls-2018) made their first
contribution in
[kubernetes-sigs/descheduler#1365
- [@&#8203;fanhaouu](https://togithub.com/fanhaouu) made their first
contribution in
[kubernetes-sigs/descheduler#1369
- [@&#8203;agmimidi](https://togithub.com/agmimidi) made their first
contribution in
[kubernetes-sigs/descheduler#1376
- [@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) made their
first contribution in
[kubernetes-sigs/descheduler#1379

**Full Changelog**:
kubernetes-sigs/descheduler@v0.29.0...v0.30.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguOSIsInVwZGF0ZWRJblZlciI6IjM3LjM2OC45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9oZWxtIiwidHlwZS9taW5vciJdfQ==-->

Co-authored-by: kireque-bot[bot] <143391978+kireque-bot[bot]@users.noreply.github.com>
sp3nx0r pushed a commit to sp3nx0r/homelab that referenced this pull request Jun 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [descheduler](https://togithub.com/kubernetes-sigs/descheduler) |
minor | `0.29.0` -> `0.30.1` |

---

### Release Notes

<details>
<summary>kubernetes-sigs/descheduler (descheduler)</summary>

###
[`v0.30.1`](https://togithub.com/kubernetes-sigs/descheduler/compare/v0.30.0...v0.30.1)

[Compare
Source](https://togithub.com/kubernetes-sigs/descheduler/compare/v0.30.0...v0.30.1)

###
[`v0.30.0`](https://togithub.com/kubernetes-sigs/descheduler/releases/tag/v0.30.0):
Descheduler v0.30.0

[Compare
Source](https://togithub.com/kubernetes-sigs/descheduler/compare/v0.29.0...v0.30.0)

#### What's Changed

- fix(podlifetime): fix failed unittest by
[@&#8203;xujihui1985](https://togithub.com/xujihui1985) in
[kubernetes-sigs/descheduler#1334
- `PodLifeTime`: update support pods with container status and pods
reason by [@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[kubernetes-sigs/descheduler#1330
- v1alpha1: log deprecation notice by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1337
- feat: Add support for topologySpreadConstraints by
[@&#8203;UAntBou](https://togithub.com/UAntBou) in
[kubernetes-sigs/descheduler#1289
- chore: update dependencies for security vulnerabilities
(CVE-2023-48795) by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1343
- trim managedFields in shared informer factory by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1346
- fix: `RemovePodsHavingTooManyRestarts` to include
`InitContainerStatuses` by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1348
- Improve PodEvictor observability through EvictOptions by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1349
- Fix node taint wrong EvictOption field by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1358
- Disambiguate node fit log messages by
[@&#8203;jackfrancis](https://togithub.com/jackfrancis) in
[kubernetes-sigs/descheduler#1362
- Check whether pod matches the inter-pod anti-affinity of another Pod
in a given Node in `NodeFit()` by
[@&#8203;nikimanoledaki](https://togithub.com/nikimanoledaki) in
[kubernetes-sigs/descheduler#1356
- Bump to k8s v0.30.0-alpha.3 by
[@&#8203;pravarag](https://togithub.com/pravarag) in
[kubernetes-sigs/descheduler#1359
- skip eviction when replica count is below evictor `minReplicas`
threshold setting by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1257
- Add argument to remove only pods violating allowlisted taints by
[@&#8203;etoster](https://togithub.com/etoster) in
[kubernetes-sigs/descheduler#1360
- use v1alpha2 api for helm chart default values by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1139
- `RemoveDuplicates`: reduce cycle times identifying duplicates by
[@&#8203;ls-2018](https://togithub.com/ls-2018) in
[kubernetes-sigs/descheduler#1365
- avoid redundant type conversion of DefaultEvictorArgs parameter in
DefaultEvictor by [@&#8203;fanhaouu](https://togithub.com/fanhaouu) in
[kubernetes-sigs/descheduler#1369
- bump(golang.org/x/net)=v0.23.0 by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1373
- Allow eviction of DaemonSet pods by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1342
- bump to go 1.22.2 by [@&#8203;jklaw90](https://togithub.com/jklaw90)
in
[kubernetes-sigs/descheduler#1374
- helm: Allow the use of existing policy configMap by
[@&#8203;agmimidi](https://togithub.com/agmimidi) in
[kubernetes-sigs/descheduler#1376
- Fix and improve the namespace filtering description in README by
[@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) in
[kubernetes-sigs/descheduler#1379
- Add an extra parameter ExitCode to RemoveFailedPods by
[@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) in
[kubernetes-sigs/descheduler#1381
- 753 - Descheduling framework by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1372
- KEP-753: Descheduling framework: update diagram by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1396
- \[release 1.30] upgrade kubernetes version and docs by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1400

#### New Contributors

- [@&#8203;xujihui1985](https://togithub.com/xujihui1985) made their
first contribution in
[kubernetes-sigs/descheduler#1334
- [@&#8203;UAntBou](https://togithub.com/UAntBou) made their first
contribution in
[kubernetes-sigs/descheduler#1289
- [@&#8203;tioxy](https://togithub.com/tioxy) made their first
contribution in
[kubernetes-sigs/descheduler#1349
- [@&#8203;jackfrancis](https://togithub.com/jackfrancis) made their
first contribution in
[kubernetes-sigs/descheduler#1362
- [@&#8203;nikimanoledaki](https://togithub.com/nikimanoledaki) made
their first contribution in
[kubernetes-sigs/descheduler#1356
- [@&#8203;etoster](https://togithub.com/etoster) made their first
contribution in
[kubernetes-sigs/descheduler#1360
- [@&#8203;ls-2018](https://togithub.com/ls-2018) made their first
contribution in
[kubernetes-sigs/descheduler#1365
- [@&#8203;fanhaouu](https://togithub.com/fanhaouu) made their first
contribution in
[kubernetes-sigs/descheduler#1369
- [@&#8203;agmimidi](https://togithub.com/agmimidi) made their first
contribution in
[kubernetes-sigs/descheduler#1376
- [@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) made their
first contribution in
[kubernetes-sigs/descheduler#1379

**Full Changelog**:
kubernetes-sigs/descheduler@v0.29.0...v0.30.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on saturday" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/sp3nx0r/homelab).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjguMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zODguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvaGVsbSIsInR5cGUvbWlub3IiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to teutonet/teutonet-helm-charts that referenced this pull request Jul 4, 2024
…0.30.x (#1015)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [descheduler](https://togithub.com/kubernetes-sigs/descheduler) |
minor | `0.29.x` -> `0.30.x` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>kubernetes-sigs/descheduler (descheduler)</summary>

###
[`v0.30.1`](https://togithub.com/kubernetes-sigs/descheduler/releases/tag/v0.30.1):
Descheduler v0.30.1

[Compare
Source](https://togithub.com/kubernetes-sigs/descheduler/compare/v0.30.0...v0.30.1)

#### What's Changed

- bump to to 1.22.3 to address CVE-2024-24788 by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1408
- \[release 1.30] update kustomize image tags and helm versions by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1405
- Automated cherry pick of
[#&#8203;1378](https://togithub.com/kubernetes-sigs/descheduler/issues/1378):
Fix the replicas type for the helm-chart

[#&#8203;1390](https://togithub.com/kubernetes-sigs/descheduler/issues/1390):
allow 'falsey' value in cmdOption

[#&#8203;1412](https://togithub.com/kubernetes-sigs/descheduler/issues/1412):
fix helm's default deschedulerPolicy

[#&#8203;1413](https://togithub.com/kubernetes-sigs/descheduler/issues/1413):
fix TOC location in Readme

[#&#8203;1416](https://togithub.com/kubernetes-sigs/descheduler/issues/1416):
use cmd context instead of using context.Background()

[#&#8203;1395](https://togithub.com/kubernetes-sigs/descheduler/issues/1395):
fix the issue that the pod anti-filtering rules are not by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1425

**Full Changelog**:
kubernetes-sigs/descheduler@v0.30.0...v0.30.1

###
[`v0.30.0`](https://togithub.com/kubernetes-sigs/descheduler/releases/tag/v0.30.0):
Descheduler v0.30.0

[Compare
Source](https://togithub.com/kubernetes-sigs/descheduler/compare/v0.29.0...v0.30.0)

#### What's Changed

- fix(podlifetime): fix failed unittest by
[@&#8203;xujihui1985](https://togithub.com/xujihui1985) in
[kubernetes-sigs/descheduler#1334
- `PodLifeTime`: update support pods with container status and pods
reason by [@&#8203;dongjiang1989](https://togithub.com/dongjiang1989) in
[kubernetes-sigs/descheduler#1330
- v1alpha1: log deprecation notice by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1337
- feat: Add support for topologySpreadConstraints by
[@&#8203;UAntBou](https://togithub.com/UAntBou) in
[kubernetes-sigs/descheduler#1289
- chore: update dependencies for security vulnerabilities
(CVE-2023-48795) by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1343
- trim managedFields in shared informer factory by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1346
- fix: `RemovePodsHavingTooManyRestarts` to include
`InitContainerStatuses` by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1348
- Improve PodEvictor observability through EvictOptions by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1349
- Fix node taint wrong EvictOption field by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1358
- Disambiguate node fit log messages by
[@&#8203;jackfrancis](https://togithub.com/jackfrancis) in
[kubernetes-sigs/descheduler#1362
- Check whether pod matches the inter-pod anti-affinity of another Pod
in a given Node in `NodeFit()` by
[@&#8203;nikimanoledaki](https://togithub.com/nikimanoledaki) in
[kubernetes-sigs/descheduler#1356
- Bump to k8s v0.30.0-alpha.3 by
[@&#8203;pravarag](https://togithub.com/pravarag) in
[kubernetes-sigs/descheduler#1359
- skip eviction when replica count is below evictor `minReplicas`
threshold setting by [@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1257
- Add argument to remove only pods violating allowlisted taints by
[@&#8203;etoster](https://togithub.com/etoster) in
[kubernetes-sigs/descheduler#1360
- use v1alpha2 api for helm chart default values by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1139
- `RemoveDuplicates`: reduce cycle times identifying duplicates by
[@&#8203;ls-2018](https://togithub.com/ls-2018) in
[kubernetes-sigs/descheduler#1365
- avoid redundant type conversion of DefaultEvictorArgs parameter in
DefaultEvictor by [@&#8203;fanhaouu](https://togithub.com/fanhaouu) in
[kubernetes-sigs/descheduler#1369
- bump(golang.org/x/net)=v0.23.0 by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1373
- Allow eviction of DaemonSet pods by
[@&#8203;tioxy](https://togithub.com/tioxy) in
[kubernetes-sigs/descheduler#1342
- bump to go 1.22.2 by [@&#8203;jklaw90](https://togithub.com/jklaw90)
in
[kubernetes-sigs/descheduler#1374
- helm: Allow the use of existing policy configMap by
[@&#8203;agmimidi](https://togithub.com/agmimidi) in
[kubernetes-sigs/descheduler#1376
- Fix and improve the namespace filtering description in README by
[@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) in
[kubernetes-sigs/descheduler#1379
- Add an extra parameter ExitCode to RemoveFailedPods by
[@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) in
[kubernetes-sigs/descheduler#1381
- 753 - Descheduling framework by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1372
- KEP-753: Descheduling framework: update diagram by
[@&#8203;ingvagabund](https://togithub.com/ingvagabund) in
[kubernetes-sigs/descheduler#1396
- \[release 1.30] upgrade kubernetes version and docs by
[@&#8203;a7i](https://togithub.com/a7i) in
[kubernetes-sigs/descheduler#1400

#### New Contributors

- [@&#8203;xujihui1985](https://togithub.com/xujihui1985) made their
first contribution in
[kubernetes-sigs/descheduler#1334
- [@&#8203;UAntBou](https://togithub.com/UAntBou) made their first
contribution in
[kubernetes-sigs/descheduler#1289
- [@&#8203;tioxy](https://togithub.com/tioxy) made their first
contribution in
[kubernetes-sigs/descheduler#1349
- [@&#8203;jackfrancis](https://togithub.com/jackfrancis) made their
first contribution in
[kubernetes-sigs/descheduler#1362
- [@&#8203;nikimanoledaki](https://togithub.com/nikimanoledaki) made
their first contribution in
[kubernetes-sigs/descheduler#1356
- [@&#8203;etoster](https://togithub.com/etoster) made their first
contribution in
[kubernetes-sigs/descheduler#1360
- [@&#8203;ls-2018](https://togithub.com/ls-2018) made their first
contribution in
[kubernetes-sigs/descheduler#1365
- [@&#8203;fanhaouu](https://togithub.com/fanhaouu) made their first
contribution in
[kubernetes-sigs/descheduler#1369
- [@&#8203;agmimidi](https://togithub.com/agmimidi) made their first
contribution in
[kubernetes-sigs/descheduler#1376
- [@&#8203;yuanchen8911](https://togithub.com/yuanchen8911) made their
first contribution in
[kubernetes-sigs/descheduler#1379

**Full Changelog**:
kubernetes-sigs/descheduler@v0.29.0...v0.30.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/teutonet/teutonet-helm-charts).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider implementing pod (anti)affinity checks in NodeFit
7 participants