-
Notifications
You must be signed in to change notification settings - Fork 675
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
fix: descheduler_loop_duration_seconds has wrong value #1215
Conversation
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
Nice catch and thanks for the references/links! 🏆 /ok-to-test |
/test pull-descheduler-verify-master |
/assign @ingvagabund thanks. |
defer metrics.DeschedulerLoopDuration.With(map[string]string{}).Observe(time.Since(loopStartDuration).Seconds()) | ||
defer func(loopStartDuration time.Time) { | ||
metrics.DeschedulerLoopDuration.With(map[string]string{}).Observe(time.Since(loopStartDuration).Seconds()) | ||
}(time.Now()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not this be more like:
loopStartDuration := time.Now()
defer func(loopStartDuration time.Time) {
metrics.DeschedulerLoopDuration.With(map[string]string{}).Observe(time.Since(loopStartDuration).Seconds())
}(loopStartDuration)
?
Or just:
loopStartDuration := time.Now()
defer func() {
metrics.DeschedulerLoopDuration.With(map[string]string{}).Observe(time.Since(loopStartDuration).Seconds())
}()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both of these changes work.
It's straightforward to use defer func(...) {...} (time.Now())
because that's the only place the loopStartDuration
variable is used, and it doesn't seem like it needs an extra variable defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time.Now()
will have different value for loopStartDuration := time.Now()
and when defer
is invoked. Unless I incorrectly understand how the defer statement invokes the function/code. My assumption is anything after defer
gets invoke right before a function/method exits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://go.dev/tour/flowcontrol/12 says:
The deferred call's arguments are evaluated immediately, but the function call is not executed until the surrounding function returns.
Interesting.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ingvagabund The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [descheduler](https://togithub.opdaxia.com/kubernetes-sigs/descheduler) | minor | `0.27.1` -> `0.28.0` | --- ### Release Notes <details> <summary>kubernetes-sigs/descheduler (descheduler)</summary> ### [`v0.28.0`](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/releases/tag/v0.28.0): Descheduler v0.28.0 [Compare Source](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/compare/v0.27.1...v0.28.0) #### What's Changed - add unit tests for version compatibility check by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1096](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1096) - fix plugin arg conversion when using multiple profiles with same plugin by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1143](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1143) - Use dl.k8s.io instead of kubernetes-release bucket by [@​ratnopamc](https://togithub.opdaxia.com/ratnopamc) in [https://github.com/kubernetes-sigs/descheduler/pull/1145](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1145) - update deprecated sets.String to generic sets by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1146](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1146) - helm: ability to override command and args. set args inline by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1151](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1151) - fix: imagepullsecrets indentation for kind: Deployment by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1150](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1150) - docs: supplement missing link by [@​mikutas](https://togithub.opdaxia.com/mikutas) in [https://github.com/kubernetes-sigs/descheduler/pull/1159](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1159) - bump chart to v0.27.1 by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1160](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1160) - Custom labels for ServiceMonitor resource by [@​nlamirault](https://togithub.opdaxia.com/nlamirault) in [https://github.com/kubernetes-sigs/descheduler/pull/1147](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1147) - pod anti-affinity check among nodes by [@​10hin](https://togithub.opdaxia.com/10hin) in [https://github.com/kubernetes-sigs/descheduler/pull/1033](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1033) - PodLifeTime: support CrashLoopBackOff container state by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1164](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1164) - update pause image from 'kubernetes/pause' to 'registry.k8s.io/pause' by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1166](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1166) - TooManyRestart: state filter for CrashLoopBackOff by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1165](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1165) - Replace deprecated command with environment file by [@​jongwooo](https://togithub.opdaxia.com/jongwooo) in [https://github.com/kubernetes-sigs/descheduler/pull/1173](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1173) - use pod informers for listing pods in removepodsviolatingtopologyspreadconstraint and removepodsviolatinginterpodantiaffinity by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1163](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1163) - removepodsviolatingtopologyspreadconstraint: implement explicit constraints by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1148](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1148) - FakeClientset: bump watch channel size by [@​ingvagabund](https://togithub.opdaxia.com/ingvagabund) in [https://github.com/kubernetes-sigs/descheduler/pull/1174](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1174) - deschedule/balance order (continuation) by [@​ingvagabund](https://togithub.opdaxia.com/ingvagabund) in [https://github.com/kubernetes-sigs/descheduler/pull/1177](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1177) - bump log level for processing info by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1141](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1141) - fix priority threshold by name alone by [@​knelasevero](https://togithub.opdaxia.com/knelasevero) in [https://github.com/kubernetes-sigs/descheduler/pull/1186](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1186) - feat: Enable open telemetry tracing by [@​harshanarayana](https://togithub.opdaxia.com/harshanarayana) in [https://github.com/kubernetes-sigs/descheduler/pull/1189](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1189) - bump to k8s 1.28 beta.0 by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1201](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1201) - nodefit: aggregate errors by [@​lucming](https://togithub.opdaxia.com/lucming) in [https://github.com/kubernetes-sigs/descheduler/pull/1203](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1203) - fix: base configmap missing plugin RemoveDuplicates by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1207](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1207) - feat: Implement preferredDuringSchedulingIgnoredDuringExecution for RemovePodsViolatingNodeAffinity by [@​jordipiqueselles](https://togithub.opdaxia.com/jordipiqueselles) in [https://github.com/kubernetes-sigs/descheduler/pull/1210](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1210) - fix: descheduler_loop_duration_seconds has wrong value by [@​Abirdcfly](https://togithub.opdaxia.com/Abirdcfly) in [https://github.com/kubernetes-sigs/descheduler/pull/1215](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1215) - .gitattribute to not pollute PRs or stats by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1202](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1202) - Bump Kubernetes dependencies to v1.28.0 by [@​JaneLiuL](https://togithub.opdaxia.com/JaneLiuL) in [https://github.com/kubernetes-sigs/descheduler/pull/1216](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1216) - profile: fix span attribute typo by [@​antoinedeschenes](https://togithub.opdaxia.com/antoinedeschenes) in [https://github.com/kubernetes-sigs/descheduler/pull/1221](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1221) - k8s 1.28: update docs and go-version by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1224](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1224) #### New Contributors - [@​ratnopamc](https://togithub.opdaxia.com/ratnopamc) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1145](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1145) - [@​mikutas](https://togithub.opdaxia.com/mikutas) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1159](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1159) - [@​nlamirault](https://togithub.opdaxia.com/nlamirault) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1147](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1147) - [@​10hin](https://togithub.opdaxia.com/10hin) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1033](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1033) - [@​jongwooo](https://togithub.opdaxia.com/jongwooo) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1173](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1173) - [@​jordipiqueselles](https://togithub.opdaxia.com/jordipiqueselles) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1210](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1210) - [@​Abirdcfly](https://togithub.opdaxia.com/Abirdcfly) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1215](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1215) - [@​antoinedeschenes](https://togithub.opdaxia.com/antoinedeschenes) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1221](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1221) **Full Changelog**: kubernetes-sigs/descheduler@v0.27.0...v0.28.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.opdaxia.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41Ny44IiwidXBkYXRlZEluVmVyIjoiMzYuNTcuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: repo-jeeves <106431701+repo-jeeves[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [descheduler](https://github.com/kubernetes-sigs/descheduler) | minor | `0.27.1` -> `0.28.0` | --- ### Release Notes <details> <summary>kubernetes-sigs/descheduler (descheduler)</summary> ### [`v0.28.0`](https://github.com/kubernetes-sigs/descheduler/releases/tag/v0.28.0): Descheduler v0.28.0 [Compare Source](kubernetes-sigs/descheduler@v0.27.1...v0.28.0) #### What's Changed - add unit tests for version compatibility check by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1096 - fix plugin arg conversion when using multiple profiles with same plugin by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1143 - Use dl.k8s.io instead of kubernetes-release bucket by [@​ratnopamc](https://github.com/ratnopamc) in kubernetes-sigs/descheduler#1145 - update deprecated sets.String to generic sets by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1146 - helm: ability to override command and args. set args inline by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1151 - fix: imagepullsecrets indentation for kind: Deployment by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1150 - docs: supplement missing link by [@​mikutas](https://github.com/mikutas) in kubernetes-sigs/descheduler#1159 - bump chart to v0.27.1 by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1160 - Custom labels for ServiceMonitor resource by [@​nlamirault](https://github.com/nlamirault) in kubernetes-sigs/descheduler#1147 - pod anti-affinity check among nodes by [@​10hin](https://github.com/10hin) in kubernetes-sigs/descheduler#1033 - PodLifeTime: support CrashLoopBackOff container state by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1164 - update pause image from 'kubernetes/pause' to 'registry.k8s.io/pause' by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1166 - TooManyRestart: state filter for CrashLoopBackOff by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1165 - Replace deprecated command with environment file by [@​jongwooo](https://github.com/jongwooo) in kubernetes-sigs/descheduler#1173 - use pod informers for listing pods in removepodsviolatingtopologyspreadconstraint and removepodsviolatinginterpodantiaffinity by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1163 - removepodsviolatingtopologyspreadconstraint: implement explicit constraints by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1148 - FakeClientset: bump watch channel size by [@​ingvagabund](https://github.com/ingvagabund) in kubernetes-sigs/descheduler#1174 - deschedule/balance order (continuation) by [@​ingvagabund](https://github.com/ingvagabund) in kubernetes-sigs/descheduler#1177 - bump log level for processing info by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1141 - fix priority threshold by name alone by [@​knelasevero](https://github.com/knelasevero) in kubernetes-sigs/descheduler#1186 - feat: Enable open telemetry tracing by [@​harshanarayana](https://github.com/harshanarayana) in kubernetes-sigs/descheduler#1189 - bump to k8s 1.28 beta.0 by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1201 - nodefit: aggregate errors by [@​lucming](https://github.com/lucming) in kubernetes-sigs/descheduler#1203 - fix: base configmap missing plugin RemoveDuplicates by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1207 - feat: Implement preferredDuringSchedulingIgnoredDuringExecution for RemovePodsViolatingNodeAffinity by [@​jordipiqueselles](https://github.com/jordipiqueselles) in kubernetes-sigs/descheduler#1210 - fix: descheduler_loop_duration_seconds has wrong value by [@​Abirdcfly](https://github.com/Abirdcfly) in kubernetes-sigs/descheduler#1215 - .gitattribute to not pollute PRs or stats by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1202 - Bump Kubernetes dependencies to v1.28.0 by [@​JaneLiuL](https://github.com/JaneLiuL) in kubernetes-sigs/descheduler#1216 - profile: fix span attribute typo by [@​antoinedeschenes](https://github.com/antoinedeschenes) in kubernetes-sigs/descheduler#1221 - k8s 1.28: update docs and go-version by [@​a7i](https://github.com/a7i) in kubernetes-sigs/descheduler#1224 #### New Contributors - [@​ratnopamc](https://github.com/ratnopamc) made their first contribution in kubernetes-sigs/descheduler#1145 - [@​mikutas](https://github.com/mikutas) made their first contribution in kubernetes-sigs/descheduler#1159 - [@​nlamirault](https://github.com/nlamirault) made their first contribution in kubernetes-sigs/descheduler#1147 - [@​10hin](https://github.com/10hin) made their first contribution in kubernetes-sigs/descheduler#1033 - [@​jongwooo](https://github.com/jongwooo) made their first contribution in kubernetes-sigs/descheduler#1173 - [@​jordipiqueselles](https://github.com/jordipiqueselles) made their first contribution in kubernetes-sigs/descheduler#1210 - [@​Abirdcfly](https://github.com/Abirdcfly) made their first contribution in kubernetes-sigs/descheduler#1215 - [@​antoinedeschenes](https://github.com/antoinedeschenes) made their first contribution in kubernetes-sigs/descheduler#1221 **Full Changelog**: kubernetes-sigs/descheduler@v0.27.0...v0.28.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://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41Mi4yIiwidXBkYXRlZEluVmVyIjoiMzYuNTIuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Reviewed-on: https://git.devmem.ru/projects/infra/pulls/949 Co-authored-by: Renovate Bot <renovate@devmem.ru> Co-committed-by: Renovate Bot <renovate@devmem.ru>
…0.28.x (#538) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [descheduler](https://togithub.opdaxia.com/kubernetes-sigs/descheduler) | minor | `0.27.x` -> `0.28.x` | --- ### Release Notes <details> <summary>kubernetes-sigs/descheduler (descheduler)</summary> ### [`v0.28.0`](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/releases/tag/v0.28.0): Descheduler v0.28.0 [Compare Source](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/compare/v0.27.1...v0.28.0) #### What's Changed - add unit tests for version compatibility check by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1096](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1096) - fix plugin arg conversion when using multiple profiles with same plugin by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1143](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1143) - Use dl.k8s.io instead of kubernetes-release bucket by [@​ratnopamc](https://togithub.opdaxia.com/ratnopamc) in [https://github.com/kubernetes-sigs/descheduler/pull/1145](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1145) - update deprecated sets.String to generic sets by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1146](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1146) - helm: ability to override command and args. set args inline by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1151](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1151) - fix: imagepullsecrets indentation for kind: Deployment by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1150](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1150) - docs: supplement missing link by [@​mikutas](https://togithub.opdaxia.com/mikutas) in [https://github.com/kubernetes-sigs/descheduler/pull/1159](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1159) - bump chart to v0.27.1 by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1160](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1160) - Custom labels for ServiceMonitor resource by [@​nlamirault](https://togithub.opdaxia.com/nlamirault) in [https://github.com/kubernetes-sigs/descheduler/pull/1147](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1147) - pod anti-affinity check among nodes by [@​10hin](https://togithub.opdaxia.com/10hin) in [https://github.com/kubernetes-sigs/descheduler/pull/1033](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1033) - PodLifeTime: support CrashLoopBackOff container state by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1164](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1164) - update pause image from 'kubernetes/pause' to 'registry.k8s.io/pause' by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1166](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1166) - TooManyRestart: state filter for CrashLoopBackOff by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1165](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1165) - Replace deprecated command with environment file by [@​jongwooo](https://togithub.opdaxia.com/jongwooo) in [https://github.com/kubernetes-sigs/descheduler/pull/1173](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1173) - use pod informers for listing pods in removepodsviolatingtopologyspreadconstraint and removepodsviolatinginterpodantiaffinity by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1163](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1163) - removepodsviolatingtopologyspreadconstraint: implement explicit constraints by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1148](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1148) - FakeClientset: bump watch channel size by [@​ingvagabund](https://togithub.opdaxia.com/ingvagabund) in [https://github.com/kubernetes-sigs/descheduler/pull/1174](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1174) - deschedule/balance order (continuation) by [@​ingvagabund](https://togithub.opdaxia.com/ingvagabund) in [https://github.com/kubernetes-sigs/descheduler/pull/1177](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1177) - bump log level for processing info by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1141](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1141) - fix priority threshold by name alone by [@​knelasevero](https://togithub.opdaxia.com/knelasevero) in [https://github.com/kubernetes-sigs/descheduler/pull/1186](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1186) - feat: Enable open telemetry tracing by [@​harshanarayana](https://togithub.opdaxia.com/harshanarayana) in [https://github.com/kubernetes-sigs/descheduler/pull/1189](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1189) - bump to k8s 1.28 beta.0 by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1201](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1201) - nodefit: aggregate errors by [@​lucming](https://togithub.opdaxia.com/lucming) in [https://github.com/kubernetes-sigs/descheduler/pull/1203](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1203) - fix: base configmap missing plugin RemoveDuplicates by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1207](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1207) - feat: Implement preferredDuringSchedulingIgnoredDuringExecution for RemovePodsViolatingNodeAffinity by [@​jordipiqueselles](https://togithub.opdaxia.com/jordipiqueselles) in [https://github.com/kubernetes-sigs/descheduler/pull/1210](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1210) - fix: descheduler_loop_duration_seconds has wrong value by [@​Abirdcfly](https://togithub.opdaxia.com/Abirdcfly) in [https://github.com/kubernetes-sigs/descheduler/pull/1215](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1215) - .gitattribute to not pollute PRs or stats by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1202](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1202) - Bump Kubernetes dependencies to v1.28.0 by [@​JaneLiuL](https://togithub.opdaxia.com/JaneLiuL) in [https://github.com/kubernetes-sigs/descheduler/pull/1216](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1216) - profile: fix span attribute typo by [@​antoinedeschenes](https://togithub.opdaxia.com/antoinedeschenes) in [https://github.com/kubernetes-sigs/descheduler/pull/1221](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1221) - k8s 1.28: update docs and go-version by [@​a7i](https://togithub.opdaxia.com/a7i) in [https://github.com/kubernetes-sigs/descheduler/pull/1224](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1224) #### New Contributors - [@​ratnopamc](https://togithub.opdaxia.com/ratnopamc) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1145](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1145) - [@​mikutas](https://togithub.opdaxia.com/mikutas) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1159](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1159) - [@​nlamirault](https://togithub.opdaxia.com/nlamirault) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1147](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1147) - [@​10hin](https://togithub.opdaxia.com/10hin) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1033](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1033) - [@​jongwooo](https://togithub.opdaxia.com/jongwooo) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1173](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1173) - [@​jordipiqueselles](https://togithub.opdaxia.com/jordipiqueselles) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1210](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1210) - [@​Abirdcfly](https://togithub.opdaxia.com/Abirdcfly) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1215](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1215) - [@​antoinedeschenes](https://togithub.opdaxia.com/antoinedeschenes) made their first contribution in [https://github.com/kubernetes-sigs/descheduler/pull/1221](https://togithub.opdaxia.com/kubernetes-sigs/descheduler/pull/1221) **Full Changelog**: kubernetes-sigs/descheduler@v0.27.0...v0.28.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:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4xIiwidXBkYXRlZEluVmVyIjoiMzYuNjguMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Chris Werner Rau <cwr@teuto.net>
see golang/go#60048
I learned this change from https://github.com/golang/tools/blob/9abb02c1b5524bf655a0985bc101496a6b53ff71/internal/gocommand/invoke.go#L265, thanks to author https://github.com/heschi 🙏