Skip to content

Fix API group mismatch in operator webhook manifest#4600

Merged
ChrisJBurns merged 1 commit intomainfrom
fix/webhook-api-group-mismatch
Apr 7, 2026
Merged

Fix API group mismatch in operator webhook manifest#4600
ChrisJBurns merged 1 commit intomainfrom
fix/webhook-api-group-mismatch

Conversation

@ChrisJBurns
Copy link
Copy Markdown
Collaborator

Summary

The MCPExternalAuthConfig webhook entry in cmd/thv-operator/config/webhook/manifests.yaml incorrectly used the API group toolhive.stacklok.com instead of the correct toolhive.stacklok.dev. The webhook path also used the wrong domain (toolhive-stacklok-com instead of toolhive-stacklok-dev). The other two webhooks in the same file and the top-level config/webhook/manifests.yaml already used the correct group. This is a latent bug that would cause the webhook to target a non-existent API group if webhooks were ever enabled.

Fixes #4599

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Test plan

  • Verified that the operator webhook manifest now has all three webhooks consistently using toolhive.stacklok.dev
  • Confirmed the top-level config/webhook/manifests.yaml was already correct and unchanged
  • Confirmed the canonical API group is toolhive.stacklok.dev per groupversion_info.go

Generated with Claude Code

The MCPExternalAuthConfig webhook entry in the operator's webhook
manifest incorrectly used `toolhive.stacklok.com` for both the API
group and the webhook path. The correct API group is
`toolhive.stacklok.dev`, which is what the other two webhooks in
the same file and the top-level manifest already use.

Fixes #4599

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@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.83%. Comparing base (1ddaaef) to head (6110cb1).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4600      +/-   ##
==========================================
- Coverage   68.90%   68.83%   -0.08%     
==========================================
  Files         505      505              
  Lines       52403    52403              
==========================================
- Hits        36109    36071      -38     
- Misses      13502    13542      +40     
+ Partials     2792     2790       -2     

☔ 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 ChrisJBurns merged commit 6c065f5 into main Apr 7, 2026
40 checks passed
@ChrisJBurns ChrisJBurns deleted the fix/webhook-api-group-mismatch branch April 7, 2026 11:13
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.

Fix API group mismatch in operator webhook manifest for MCPExternalAuthConfig

2 participants