Repository navigation
internal/cri/bandwidth: remove dead code - #13996
Merged
Merged
Conversation
Most of this package is unused, except for the ExtractPodBandwidthResources utility. Signed-off-by: Sebastiaan van Stijn <[email protected]>
samuelkarp
approved these changes
Aug 20, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR trims internal/cri/bandwidth down to the single remaining utility that is still used by the CRI implementation (ExtractPodBandwidthResources), removing the unused shaping implementations and related interfaces.
Changes:
- Remove Linux
tcshaper implementation and non-Linux stub (linux.go,unsupported.go). - Remove now-unused
Shaperinterface andFakeShaperimplementation (interfaces.go,fake_shaper.go). - Keep
ExtractPodBandwidthResourcesand move the package doc comment intoutils.go; simplify theresourceimport.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| internal/cri/bandwidth/utils.go | Keeps the remaining bandwidth annotation parsing utility; adjusts package comment and import. |
| internal/cri/bandwidth/unsupported.go | Removes non-Linux stub shaper implementation. |
| internal/cri/bandwidth/linux.go | Removes Linux tc shaper implementation. |
| internal/cri/bandwidth/interfaces.go | Removes Shaper interface definition. |
| internal/cri/bandwidth/fake_shaper.go | Removes FakeShaper implementation. |
| internal/cri/bandwidth/doc.go | Removes redundant package doc file (comment moved to utils.go). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
estesp
approved these changes
Aug 20, 2026
samuelkarp
enabled auto-merge
August 20, 2026 17:47
This was referenced Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Most of this package is unused, except for the ExtractPodBandwidthResources utility.