Skip to content

Remove invalid 'apply' RBAC verb from operator roles#4001

Merged
ChrisJBurns merged 9 commits intomainfrom
remove-invalid-apply-rbac-verb
Mar 5, 2026
Merged

Remove invalid 'apply' RBAC verb from operator roles#4001
ChrisJBurns merged 9 commits intomainfrom
remove-invalid-apply-rbac-verb

Conversation

@ChrisJBurns
Copy link
Collaborator

Summary

  • Remove the invalid apply RBAC verb from all operator controller kubebuilder markers, defaultRBACRules, generated ClusterRole manifest, and Chainsaw test assertions
  • apply is not a valid Kubernetes RBAC verb — server-side apply uses the patch verb (already present in all rules), so the apply entry was a silent no-op stored in etcd

Closes #3995

Test plan

  • Operator controller unit tests pass (go test ./cmd/thv-operator/controllers/...)
  • Chainsaw E2E tests pass in CI (single-tenancy and multi-tenancy)
  • Verify no apply verb remains in RBAC-related files

🤖 Generated with Claude Code

The 'apply' string is not a valid Kubernetes RBAC verb. Server-side
apply uses the 'patch' verb (HTTP PATCH with application/apply-patch+yaml),
which is already present in all affected rules. The 'apply' verb was
silently accepted by the API server but never matched any real request.

Closes #3995

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Mar 4, 2026
@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.59%. Comparing base (9dd1156) to head (97390c1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4001      +/-   ##
==========================================
+ Coverage   68.52%   68.59%   +0.07%     
==========================================
  Files         441      441              
  Lines       44970    44970              
==========================================
+ Hits        30814    30847      +33     
+ Misses      11763    11730      -33     
  Partials     2393     2393              

☔ 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.

@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Mar 4, 2026
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Mar 4, 2026
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Mar 4, 2026
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Mar 4, 2026
JAORMX
JAORMX previously approved these changes Mar 5, 2026
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Mar 5, 2026
Signed-off-by: Chris Burns <29541485+ChrisJBurns@users.noreply.github.com>
…toolhive into remove-invalid-apply-rbac-verb
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Mar 5, 2026
@github-actions github-actions bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Mar 5, 2026
@ChrisJBurns ChrisJBurns merged commit c755713 into main Mar 5, 2026
35 checks passed
@ChrisJBurns ChrisJBurns deleted the remove-invalid-apply-rbac-verb branch March 5, 2026 22:40
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.

Remove invalid 'apply' RBAC verb from operator roles

4 participants