⚡ Sangsakala Proxy 🏠 Home
Skip to content

fix: add watch verb on clusterroles and clusterrolebindings for feast-operator - #7062

Open
ryder777777 wants to merge 1 commit into
feast-dev:masterfrom
ryder777777:fix/operator-rbac-watch-clusterroles-7061
Open

ryder777777 wants to merge 1 commit into
feast-dev:masterfrom
ryder777777:fix/operator-rbac-watch-clusterroles-7061

Conversation

@ryder777777

Copy link
Copy Markdown

What this PR does / why we need it:

controller-runtime's default cached client starts informers (List + Watch) the first time Get/List is called on a resource type. Currently, the Feast Operator's manager-role ClusterRole grants get and list on clusterroles and clusterrolebindings in rbac.authorization.k8s.io, but omits watch, causing the informer reflectors to fail with Failed to watch *v1.ClusterRole: ... cannot watch resource "clusterroles" and Failed to watch *v1.ClusterRoleBinding: ... cannot watch resource "clusterrolebindings".

This PR adds the watch verb to clusterroles and clusterrolebindings in featurestore_controller.go's kubebuilder RBAC markers and synced manifests (config/rbac/role.yaml, dist/install.yaml, and bundle/manifests/feast-operator.clusterserviceversion.yaml).

Which issue(s) this PR fixes:

Fixes #7061

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

@ryder777777
ryder777777 requested a review from a team as a code owner October 22, 2026 13:36

@patelchaitany patelchaitany 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.

Looks good to me.

Just something to keep in mind: watch on clusterroles and clusterrolebindings was removed in #6736 as part of narrowing the RBAC permissions. It may have been an oversight given the cached client's requirements, but I'm not sure whether that removal was intentional.

@codecov-commenter

codecov-commenter commented Nov 4, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.01%. Comparing base (d3e2041) to head (774564c).
⚠️ Report is 1 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7062   +/-   ##
=======================================
  Coverage   51.01%   51.01%           
=======================================
  Files         455      455           
  Lines       57015    57015           
  Branches     8327     8327           
=======================================
  Hits        29089    29089           
  Misses      25939    25939           
  Partials     1987     1987           
Flag Coverage Δ
go-feature-server 30.58% <ø> (ø)
python-unit 52.48% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3e2041...774564c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…-operator

Signed-off-by: ryder777777 <sahilridder@gmail.com>
@ryder777777
ryder777777 force-pushed the fix/operator-rbac-watch-clusterroles-7061 branch from 774564c to f38a451 Compare November 4, 2026 14:30

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Operator: manager role lacks watch on clusterroles/clusterrolebindings, informers fail with "cannot watch resource"

4 participants