Skip to content

refactor: rename McpPort to MCPPort for Go naming conventions#4589

Open
mvanhorn wants to merge 1 commit intostacklok:mainfrom
mvanhorn:osc/4582-mcpport-naming
Open

refactor: rename McpPort to MCPPort for Go naming conventions#4589
mvanhorn wants to merge 1 commit intostacklok:mainfrom
mvanhorn:osc/4582-mcpport-naming

Conversation

@mvanhorn
Copy link
Copy Markdown

@mvanhorn mvanhorn commented Apr 7, 2026

Summary

  • Renames Go struct field McpPort to MCPPort and method GetMcpPort to GetMCPPort across 15 files to follow Go's all-caps acronym convention
  • JSON tag mcpPort is unchanged, so no wire-format or API breaking change

Test plan

  • All affected packages compile (go build ./cmd/thv-operator/... ./pkg/export/... ./pkg/vmcp/...)
  • CI passes

Closes #4582

@ChrisJBurns
Copy link
Copy Markdown
Collaborator

@mvanhorn You have an out of date branch/merge conflicts

Rename the Go struct field McpPort to MCPPort and the method
GetMcpPort to GetMCPPort to follow Go convention of all-caps
acronyms. JSON tag remains mcpPort (no wire-format change).

Closes stacklok#4582
@mvanhorn mvanhorn force-pushed the osc/4582-mcpport-naming branch from 91bcb14 to 9642bfc Compare April 7, 2026 13:45
@mvanhorn
Copy link
Copy Markdown
Author

mvanhorn commented Apr 7, 2026

Rebased onto current main in 9642bfc. Also caught 3 additional files that upstream changed since the original PR - applied the McpPort -> MCPPort rename to those as well (integration and scaling tests).

@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Apr 7, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.86%. Comparing base (f5d8015) to head (9642bfc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4589      +/-   ##
==========================================
+ Coverage   68.85%   68.86%   +0.01%     
==========================================
  Files         505      505              
  Lines       52425    52425              
==========================================
+ Hits        36096    36103       +7     
+ Misses      13536    13532       -4     
+ Partials     2793     2790       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ChrisJBurns
Copy link
Copy Markdown
Collaborator

@mvanhorn there's some CRD steps you need to do. some task operator-manifests task crdref-gen etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

McpPort field naming inconsistency

2 participants