Skip to content

OCPBUGS-95590: Hide Builds nav section when Build capability is disabled - #16891

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
Leo6Leo:OCPBUGS-builds-section-capability
Aug 24, 2026
Merged

OCPBUGS-95590: Hide Builds nav section when Build capability is disabled#16891
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
Leo6Leo:OCPBUGS-builds-section-capability

Conversation

@Leo6Leo

@Leo6Leo Leo6Leo commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Analysis / Root cause:
When the Build capability is disabled on an OpenShift cluster, the Admin perspective still shows a "Builds" navigation section containing only ImageStreams. This is confusing because the section name implies build functionality that isn't available.

Solution description:

  • Gate the existing ImageStreams navigation entry (under the "builds" section) behind the OPENSHIFT_BUILDCONFIG feature flag so it only appears when builds are enabled.
  • Add a fallback ImageStreams navigation entry under the "storage" section that appears when OPENSHIFT_BUILDCONFIG is disabled, ensuring ImageStreams remains accessible.

Screenshots / screen recording:

Test setup:

  • A cluster with the Build capability disabled

Test cases:

  • With Build capability enabled: ImageStreams appears under Builds section as before
  • With Build capability disabled: Builds section is hidden, ImageStreams appears under Storage section
  • ImageStreams links work correctly in both configurations

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
JIRA: https://redhat.atlassian.net/browse/OCPBUGS-95590

Summary by CodeRabbit

  • New Features
    • ImageStreams navigation now adapts based on build capabilities.
    • Added a storage-focused ImageStreams entry for environments without build support.
    • Existing build-related ImageStreams navigation is shown only when build capabilities are enabled.

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 <cursoragent@cursor.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jul 30, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@Leo6Leo: This pull request references Jira Issue OCPBUGS-95590, which is invalid:

  • expected the bug to target the "5.0.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Analysis / Root cause:
When the Build capability is disabled on an OpenShift cluster, the Admin perspective still shows a "Builds" navigation section containing only ImageStreams. This is confusing because the section name implies build functionality that isn't available.

Solution description:

  • Gate the existing ImageStreams navigation entry (under the "builds" section) behind the OPENSHIFT_BUILDCONFIG feature flag so it only appears when builds are enabled.
  • Add a fallback ImageStreams navigation entry under the "storage" section that appears when OPENSHIFT_BUILDCONFIG is disabled, ensuring ImageStreams remains accessible.

Screenshots / screen recording:

Test setup:

  • A cluster with the Build capability disabled

Test cases:

  • With Build capability enabled: ImageStreams appears under Builds section as before
  • With Build capability disabled: Builds section is hidden, ImageStreams appears under Storage section
  • ImageStreams links work correctly in both configurations

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
JIRA: https://redhat.atlassian.net/browse/OCPBUGS-95590

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 9d2fb17c-ec9f-404c-8773-3e55cecba8e2

📥 Commits

Reviewing files that changed from the base of the PR and between 44716b3 and db216ff.

📒 Files selected for processing (1)
  • frontend/packages/console-app/console-extensions.json

Walkthrough

ImageStream navigation is now gated by OPENSHIFT_BUILDCONFIG, with separate builds and storage entries for enabled and disabled states.

Changes

ImageStream navigation

Layer / File(s) Summary
Split ImageStream navigation by build capability
frontend/packages/console-app/console-extensions.json
The builds ImageStreams entry requires OPENSHIFT_BUILDCONFIG; a storage fallback entry is shown when the flag is disallowed.

Estimated code review effort: 2 (Simple) | ~5 minutes

Possibly related PRs

  • openshift/console#16888: Updates the same ImageStreams navigation configuration with build-capability gating and a storage fallback.

Suggested reviewers: jeff-phillips-18, logonoff

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: hiding the Builds nav when the Build capability is disabled.
Description check ✅ Passed The description follows the template and includes root cause, solution, tests, setup, and Jira link; screenshots and browser checks are still incomplete.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The only changed file is console-extensions.json; no Ginkgo test files or titles were added or modified.
Test Structure And Quality ✅ Passed No Ginkgo tests were changed; the PR only updates console navigation JSON, so this test-quality check is not applicable.
Microshift Test Compatibility ✅ Passed PR only changes console navigation JSON; no new Ginkgo e2e tests were added, so MicroShift test compatibility is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Only console-extensions.json changed; no Ginkgo/e2e tests were added, so SNO multi-node compatibility checks are not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed Only console navigation JSON changed; no deployment manifests, controllers, pod specs, or scheduling constraints were introduced.
Ote Binary Stdout Contract ✅ Passed Only changed file is a JSON navigation config; no process-level code or stdout writes were added, so the OTE stdout contract is unaffected.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed Only console-extensions.json changed; no Ginkgo e2e tests or network-dependent code were added.
No-Weak-Crypto ✅ Passed Only changed file is navigation JSON; diff adds feature flags for ImageStreams and contains no crypto, custom crypto, or secret comparisons.
Container-Privileges ✅ Passed Only a console navigation JSON changed; no privileged settings, hostPID/Network/IPC, SYS_ADMIN, allowPrivilegeEscalation, or root container manifests were added.
No-Sensitive-Data-In-Logs ✅ Passed Only a nav config JSON changed; the patch adds no console/log statements or sensitive data literals.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Biome (2.5.5)
frontend/packages/console-app/console-extensions.json

File contains syntax errors that prevent linting: Line 1891: Expected a property but instead found '// The query used to compute the number of kube-apiserver instances that are up'.; Line 1902: End of file expected; Line 1902: End of file expected; Line 1903: Expected an array, an object, or a literal but instead found '// API_SERVERS_UP'.; Line 1902: End of file expected; Line 1903: End of file expected; Line 1904: End of file expected; Line 1904: End of file expected; Line 1906: End of file expected; Line 1906: End of file expected; Line 1908: End of file expected; Line 1908: End of file expected; Line 1910: End of file expected; Line 1911: End of file expected; Line 1912: End of file expected; Line 1912: End of file expected; Line 1912: End of file expected; Line 1914: End of file expected; Line 1915: End of file expected; Line 1915: End of file expected; Line 1915: End of file expected; Line 1917: End of file expected; Line 1918: End of file expected; Line 1918: End of file expecte

... [truncated 2765 characters] ...

expected; Line 2715: End of file expected; Line 2725: End of file expected; Line 2726: End of file expected; Line 2736: End of file expected; Line 2737: End of file expected; Line 2747: End of file expected; Line 2748: End of file expected; Line 2753: End of file expected; Line 2754: End of file expected; Line 2764: End of file expected; Line 2765: End of file expected; Line 2775: End of file expected; Line 2776: End of file expected; Line 2786: End of file expected; Line 2787: End of file expected; Line 2797: End of file expected; Line 2798: End of file expected; Line 2810: End of file expected; Line 2811: End of file expected; Line 2821: End of file expected; Line 2822: End of file expected; Line 2832: End of file expected; Line 2833: End of file expected; Line 2844: End of file expected


Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from spadgett and stefanonardo July 30, 2026 20:04
@openshift-ci openshift-ci Bot added the component/core Related to console core functionality label Jul 30, 2026
@Leo6Leo

Leo6Leo commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

/jira refresh
/cherry-pick release-4.22

@openshift-cherrypick-robot

Copy link
Copy Markdown

@Leo6Leo: once the present PR merges, I will cherry-pick it on top of release-4.22 in a new PR and assign it to you.

Details

In response to this:

/jira refresh
/cherry-pick release-4.22

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. label Aug 11, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@Leo6Leo: This pull request references Jira Issue OCPBUGS-95590, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.0) matches configured target version for branch (5.0.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

/jira refresh
/cherry-pick release-4.22

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Aug 11, 2026
@Leo6Leo

Leo6Leo commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

/pipeline required

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-gcp-console
/test e2e-playwright

@logonoff

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2026
@openshift-ci

openshift-ci Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Leo6Leo, logonoff

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 24, 2026
@logonoff

logonoff commented Aug 24, 2026

Copy link
Copy Markdown
Member

QA Verification Evidence

Details
Branch OCPBUGS-builds-section-capability
Baseline main @ bb9b86bd76
Candidate OCPBUGS-builds-section-capability @ db216ff0
Verified 2026-08-24
Browser Playwright 1.62.1 / Chromium
OS Darwin 25.6.0
Jira OCPBUGS-95590

Verification method: The "builds disabled" state was simulated by temporarily removing the console.flag/model extension that registers OPENSHIFT_BUILDCONFIG from detecting build.openshift.io/v1 BuildConfig — functionally equivalent to a cluster with the Build capability disabled.


Verification Summary

Test case Builds section Storage section Result
Baseline (main, builds enabled) BuildConfigs, Builds, ImageStreams PVs, PVCs, StorageClasses, … Reference
Candidate (builds enabled) BuildConfigs, Builds, ImageStreams PVs, PVCs, StorageClasses, … ✅ No regression
Candidate (builds disabled) Builds only PVs, PVCs, StorageClasses, …, ImageStreams ✅ Fix works

Lane 1 — Baseline (main, builds enabled)

Builds + Storage sections expanded

Storage section (no ImageStreams) and Builds section (ImageStreams present, no flag gate)

Baseline: both sections expanded

Builds section only (detail)

Baseline: Builds expanded

Storage section only (detail)

Baseline: Storage expanded


Lane 2 — Candidate (db216ff0, builds enabled)

With OPENSHIFT_BUILDCONFIG set, behavior is identical to baseline — no regression.

Builds + Storage sections expanded

Storage section (no ImageStreams) and Builds section (ImageStreams still present under flag gate) ✅

Candidate enabled: both sections expanded


Lane 3 — Candidate (db216ff0, builds disabled simulation)

With OPENSHIFT_BUILDCONFIG unset: ImageStreams moves from Builds → Storage.

Builds + Storage sections expanded

Builds section: only "Builds" remains — no ImageStreams ✅
Storage section: ImageStreams appears at the bottom ✅

Candidate disabled: both sections expanded


Warning

This verification was performed by an AI agent. Results may contain false positives or miss
regressions that require human judgment. Always review the screenshots manually before approving.

Automated QA verification by Claude Code

@logonoff

Copy link
Copy Markdown
Member

/verified by @logonoff

when both OPENSHIFT_BUILD and OPENSHIFT_BUILDCONFIG flags are unset in the pluginstore, the nav section is gone

image

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Aug 24, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@logonoff: This PR has been marked as verified by @logonoff.

Details

In response to this:

/verified by @logonoff

when both OPENSHIFT_BUILD and OPENSHIFT_BUILDCONFIG flags are unset in the pluginstore, the nav section is gone

image

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci

openshift-ci Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

@Leo6Leo: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-playwright db216ff link false /test e2e-playwright

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot
openshift-merge-bot Bot merged commit 4897fc6 into openshift:main Aug 24, 2026
10 of 11 checks passed
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@Leo6Leo: Jira Issue OCPBUGS-95590: Some pull requests linked via external trackers have merged:

The following pull request, linked via external tracker, has not merged:

All associated pull requests must be merged or unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-95590 has not been moved to the MODIFIED state.

This PR is marked as verified. If the remaining PRs listed above are marked as verified before merging, the issue will automatically be moved to VERIFIED after all of the changes from the PRs are available in an accepted nightly payload.

Details

In response to this:

Analysis / Root cause:
When the Build capability is disabled on an OpenShift cluster, the Admin perspective still shows a "Builds" navigation section containing only ImageStreams. This is confusing because the section name implies build functionality that isn't available.

Solution description:

  • Gate the existing ImageStreams navigation entry (under the "builds" section) behind the OPENSHIFT_BUILDCONFIG feature flag so it only appears when builds are enabled.
  • Add a fallback ImageStreams navigation entry under the "storage" section that appears when OPENSHIFT_BUILDCONFIG is disabled, ensuring ImageStreams remains accessible.

Screenshots / screen recording:

Test setup:

  • A cluster with the Build capability disabled

Test cases:

  • With Build capability enabled: ImageStreams appears under Builds section as before
  • With Build capability disabled: Builds section is hidden, ImageStreams appears under Storage section
  • ImageStreams links work correctly in both configurations

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
JIRA: https://redhat.atlassian.net/browse/OCPBUGS-95590

Summary by CodeRabbit

  • New Features
  • ImageStreams navigation now adapts based on build capabilities.
  • Added a storage-focused ImageStreams entry for environments without build support.
  • Existing build-related ImageStreams navigation is shown only when build capabilities are enabled.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-cherrypick-robot

Copy link
Copy Markdown

@Leo6Leo: new pull request created: #17083

Details

In response to this:

/jira refresh
/cherry-pick release-4.22

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants