Skip to content

✨ Feature: Show only enabled namespaces in UI - #275

Merged
pdettori merged 1 commit into
rossoctl:mainfrom
pzhao0:feat/show_enabled_namespaces
Oct 9, 2025
Merged

pdettori merged 1 commit into
rossoctl:mainfrom
pzhao0:feat/show_enabled_namespaces

Conversation

@pzhao0

@pzhao0 pzhao0 commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor

Summary

  • Updated cluster.py to label agent namespaces with kagenti-enabled=true during installation.
  • Added selector functionality to get_all_namespaces() and created a get_enabled_namespaces() wrapper to filter by the new label (kube.py).
  • Updated UI components to display only enabled namespaces.
  • Added function docstrings to 2 functions in build_utils.py to pass lint check.
  • Successful local testing of installation and new UI image (see screenshots below).

Sorry about the messy commit changes! The pre-commit tasks triggered with my git commit and reformatted some of the files.

Fixes #134

Description

The installer enables namespaces for listing or deploying agents and tools. Such namespaces have been created with secrets by the installer. Although any namespace in theory could be used, that would require additional manual steps. This solution labels the namespaces during preparation with kagenti-enabled=true and then filters the namespaces by label in the UI

Screenshots

Screenshot 2025-10-07 at 8 06 34 PM Screenshot 2025-10-07 at 9 56 17 PM Screenshot 2025-10-07 at 8 17 22 PM Screenshot 2025-10-07 at 8 20 22 PM

@ingpaolodettori-dev ingpaolodettori-dev 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.

/lgtm

@pdettori pdettori left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I tested the PR and works for me - thanks @pzhao0 !

/lgtm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: show only enabled namespaces in UI

3 participants