From 59f14eb09d86219e375ccfac796a0410f106421e Mon Sep 17 00:00:00 2001 From: Sampada Sawant Date: Fri, 12 Jun 2026 21:42:22 +0530 Subject: [PATCH] CONSOLE-5140: Hide Builds and ImageStreams nav items when Build capability is disabled When the Build capability is disabled (baselineCapabilitySet: None), the builds.build.openshift.io and buildconfigs.build.openshift.io APIs are not present. However, the admin perspective Builds nav section was still visible because: 1. The admin "Builds" section header only required the generic OPENSHIFT flag (always true on OpenShift), not the Build-specific capability flag. 2. The "ImageStreams" nav item inside the Builds section had no flag guard, and imagestreams.image.openshift.io APIs are always present on OpenShift regardless of the Build capability state. Fix: - Add "flags": { "required": ["OPENSHIFT_BUILDCONFIG"] } to the admin ImageStreams nav item so it is hidden when BuildConfig APIs are absent. - Change the admin Builds section flag from OPENSHIFT to OPENSHIFT_BUILDCONFIG so the section header itself is hidden when Build capability is disabled. The Developer perspective Builds nav item already has the correct flag guard ("required": ["OPENSHIFT_BUILDCONFIG"]) and does not need to be changed. Co-authored-by: Cursor --- frontend/packages/console-app/console-extensions.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/packages/console-app/console-extensions.json b/frontend/packages/console-app/console-extensions.json index 6a09a9710ce..078b69d498b 100644 --- a/frontend/packages/console-app/console-extensions.json +++ b/frontend/packages/console-app/console-extensions.json @@ -722,7 +722,7 @@ "name": "%console-app~Builds%", "dataAttributes": { "data-quickstart-id": "qs-nav-builds" } }, - "flags": { "required": ["OPENSHIFT"] } + "flags": { "required": ["OPENSHIFT_BUILDCONFIG"] } }, { "type": "console.navigation/section", @@ -1164,7 +1164,8 @@ "version": "v1", "kind": "ImageStream" } - } + }, + "flags": { "required": ["OPENSHIFT_BUILDCONFIG"] } }, { "type": "console.navigation/resource-cluster",