Skip to content

chore: remove unused client fields and duplicate tool output code - #11

Merged
ValgulNecron merged 1 commit into
masterfrom
chore/cleanup-unused-code
Nov 27, 2026
Merged

ValgulNecron merged 1 commit into
masterfrom
chore/cleanup-unused-code

Conversation

@ValgulNecron

@ValgulNecron ValgulNecron commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Cleanup pass with no behaviour change.

What Where Why it is safe
Removed panel.Client.fanout and perCluster with their clamps internal/panel/client.go, internal/panel/fanout.go New was the only writer and always set the defaults, so the clamps could never fire; fanOut uses the constants
One renderJSON helper for tool results tools.go Replaces five copies of the strip-managedFields and marshal block; error texts are identical
isSkippedStatus reuses statusOf internal/panel/fanout.go Same result: statusOf returns 0 for a non-API error
GetCRD namespace check in one branch internal/kube/client.go Same conditions, same order
Status version specs.md v0.5.0

Verification

go build ./... passes and the test files compile. CI runs the suites.

No user-visible change, so no changelog entry is needed with the pointer bump.

🤖 Generated with Claude Code

- Drop panel.Client.fanout and perCluster with their clamps: New was the
  only writer and always set the defaults, so the clamps could not fire.
  fanOut uses the constants directly.
- Render every tool's JSON result through one renderJSON helper instead of
  five copies of the strip-managedFields and marshal block. Error texts
  are unchanged.
- isSkippedStatus reuses statusOf; GetCRD checks the namespace in one
  branch.
- specs.md: update the status version.

No behaviour change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8bf22858-20e7-4cc2-9810-2a63e93aa16d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron ValgulNecron self-assigned this Nov 27, 2026
@ValgulNecron
ValgulNecron merged commit ffbf1cf into master Nov 27, 2026
6 checks passed
@ValgulNecron
ValgulNecron deleted the chore/cleanup-unused-code branch November 27, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants