Skip to content

internal/cri/bandwidth: remove dead code - #13996

Merged
samuelkarp merged 1 commit into
containerd:mainfrom
thaJeztah:rm_bandwidth
Aug 20, 2026
Merged

samuelkarp merged 1 commit into
containerd:mainfrom
thaJeztah:rm_bandwidth

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Most of this package is unused, except for the ExtractPodBandwidthResources utility.

Most of this package is unused, except for the ExtractPodBandwidthResources
utility.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Copilot AI lite review requested due to automatic review settings August 20, 2026 17:39
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Aug 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 tc shaper implementation and non-Linux stub (linux.go, unsupported.go).
  • Remove now-unused Shaper interface and FakeShaper implementation (interfaces.go, fake_shaper.go).
  • Keep ExtractPodBandwidthResources and move the package doc comment into utils.go; simplify the resource import.

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.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Aug 20, 2026
@samuelkarp
samuelkarp enabled auto-merge August 20, 2026 17:47
@samuelkarp
samuelkarp added this pull request to the merge queue Aug 20, 2026
Merged via the queue into containerd:main with commit 4c4f176 Aug 20, 2026
53 of 67 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Aug 20, 2026
@thaJeztah
thaJeztah deleted the rm_bandwidth branch August 20, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants