From db216ff031cdbba58fdb0e661c2a4263f2ee839b Mon Sep 17 00:00:00 2001 From: Leo6Leo <36619969+Leo6Leo@users.noreply.github.com> Date: Thu, 30 Jul 2026 14:53:53 -0400 Subject: [PATCH] Hide Builds nav section when Build capability is disabled When the Build capability is disabled, the Admin perspective still shows a "Builds" section containing only ImageStreams. Gate the ImageStreams entry in the "builds" section behind OPENSHIFT_BUILDCONFIG and add a fallback entry in the "storage" section so ImageStreams remains accessible. Co-authored-by: Cursor --- .../console-app/console-extensions.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/packages/console-app/console-extensions.json b/frontend/packages/console-app/console-extensions.json index c5e7e329639..12f059702c1 100644 --- a/frontend/packages/console-app/console-extensions.json +++ b/frontend/packages/console-app/console-extensions.json @@ -1523,7 +1523,24 @@ "version": "v1", "kind": "ImageStream" } - } + }, + "flags": { "required": ["OPENSHIFT_BUILDCONFIG"] } + }, + { + "type": "console.navigation/resource-ns", + "properties": { + "perspective": "admin", + "section": "storage", + "id": "imagestreams-no-builds", + "name": "%console-app~ImageStreams%", + "startsWith": ["imagestreamtags"], + "model": { + "group": "image.openshift.io", + "version": "v1", + "kind": "ImageStream" + } + }, + "flags": { "disallowed": ["OPENSHIFT_BUILDCONFIG"] } }, { "type": "console.navigation/resource-cluster",