Skip to content

charts: Add missing kagent RBAC permissions#329

Merged
timflannagan merged 1 commit intoagentregistry-dev:mainfrom
timflannagan:fix/kagent-rbac
Mar 12, 2026
Merged

charts: Add missing kagent RBAC permissions#329
timflannagan merged 1 commit intoagentregistry-dev:mainfrom
timflannagan:fix/kagent-rbac

Conversation

@timflannagan
Copy link
Copy Markdown
Collaborator

Description

Fixes #325. See issue description for reproducer. Manually tested locally since we don't have the helm chart hooked up to CI yet.

Change Type

/kind fix

Changelog

NONE

Additional Notes

Fixes agentregistry-dev#325. See issue description for reproducer.

Signed-off-by: timflannagan <[email protected]>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Helm chart RBAC for the agentregistry deployment by granting missing permissions needed to list/watch kagent.dev resources used during Kubernetes discovery (per Issue #325).

Changes:

  • Extend kagent.dev RBAC rules to include agents and remotemcpservers alongside existing mcpservers.
  • Update Helm unit tests to assert the new RBAC resources are present in both default and rbac.watchedNamespaces modes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
charts/agentregistry/templates/rbac.yaml Adds agents and remotemcpservers to the chart’s kagent.dev RBAC resources in both ClusterRole and per-namespace Role variants.
charts/agentregistry/tests/rbac_test.yaml Updates assertions to validate the expanded kagent.dev RBAC resource list in rendered manifests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@timflannagan timflannagan enabled auto-merge March 12, 2026 19:19
@timflannagan timflannagan added this pull request to the merge queue Mar 12, 2026
Merged via the queue into agentregistry-dev:main with commit 67cf2df Mar 12, 2026
12 checks passed
@timflannagan timflannagan deleted the fix/kagent-rbac branch March 12, 2026 19:35
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.

Helm chart RBAC missing kagent.dev/agents permissions

4 participants