Skip to content

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:

Screenshot_2022-08-11_at_23.09.32

Admin level menu with Kubernetes integrations turned on/off:
On Off
Screenshot_2022-08-04_at_21.31.16 Screenshot_2022-08-04_at_21.30.20
Group level menu with Kubernetes integrations turned on/off:
On Off
Screenshot_2022-08-04_at_21.33.06 Screenshot_2022-08-04_at_21.32.34
Project level menu with Kubernetes integrations turned on/off:
On Off
Screenshot_2022-08-04_at_21.34.35 Screenshot_2022-08-04_at_21.34.11

How to set up and validate locally

  1. Go to Admin -> Settings -> General -> Visibility and access controls section and select Enable agent
  2. Verify the instance level sidebar menu
  3. Verify the group level sidebar menu
  4. 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.

Review progress:

Related to #25952 (closed)

Edited by Austin Regnery

Merge request reports