Draft: Add ability to hide Kubernetes menu option in groups
What does this MR do and why?
This MR adds an application setting that shows/hides the Kubernetes Menu on the instance, group, and project levels. It's an MVC phase for the disabling Kubernetes integrations task. For now, it just hides the menu item. There will be another MR to add the setting to the group level.
Screenshots or screen recordings
Setting in the admin settings -> General -> Visibility and access controls section:
Admin level menu with Kubernetes integrations turned on/off:
On | Off |
---|---|
Group level menu with Kubernetes integrations turned on/off:
On | Off |
---|---|
Project level menu with Kubernetes integrations turned on/off:
On | Off |
---|---|
How to set up and validate locally
- Go to Admin -> Settings -> General -> Visibility and access controls section and select Enable agent
- Verify the instance level sidebar menu
- Verify the group level sidebar menu
- Verify the Project level sidebar menu
Note: As we don't have the Agent views for Groups and instance level (it's on the roadmap), to see the menu item you'll need to enable the certificate_based_clusters
feature flag.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Review progress:
-
UX review -
UI text review -
backend developer review -
backend maintainer review -
frontend developer review -
frontend maintainer review -
database developer review -
database maintainer review -
documentation review
Related to #25952 (closed)
Edited by Austin Regnery