Skip to content

SRVKP-14992: Add ClusterQueue List Page - #1469

Merged
arvindk-softwaredev merged 1 commit into
openshift-pipelines:masterfrom
ankrsinha:feat/SRVKP-14992
Nov 24, 2026
Merged

arvindk-softwaredev merged 1 commit into
openshift-pipelines:masterfrom
ankrsinha:feat/SRVKP-14992

Conversation

@ankrsinha

@ankrsinha ankrsinha commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Refactoring
  • Migration
  • CVE Fix

Summary

Add a ClusterQueues tab to the Pipelines page.

  • Show the ClusterQueues tab and Create menu item only when multi-cluster is enabled and the current cluster is configured as the hub.
  • Add a filter section for filter by name by using DataViewFilter
  • Display Name, Cohort, Queueing strategy, Nominal quota, Workloads, Status, and row actions.
  • Use the existing Pipelines child paths:
    • /pipelines/ns/:namespace/clusterqueues
    • /pipelines/all-namespaces/clusterqueues
  • Use the default console create, YAML edit, and delete flows until dedicated ClusterQueue pages are available.
  • No console-extensions.json route, exposed module, or generic resource-list registration is added.

Testing

  • Added focused tests for hub/non-hub visibility, rendered row values, Name filtering, loading, and empty states.

Screen Recording / Screenshot

SRVKP-14992-1.mp4

For narrow screen

SRVKP-14992-small-screen.mp4

@openshift-ci-robot

openshift-ci-robot commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

@ankrsinha: This pull request references SRVKP-14992 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.1.0" version, but no target version was set.

Details

In response to this:

Type of Change

  • Bug fix
  • New feature
  • Refactoring
  • Migration
  • CVE Fix

Summary

Add the ClusterQueues list to the Pipelines page.

  • Add a ClusterQueues tab at /pipelines/ns/:namespace/clusterqueues and /pipelines/all-namespaces/clusterqueues.
  • Support searching queues by name or cohort.
  • Show queueing strategy, nominal quota, workload counts, status, and row actions.
  • Add ClusterQueue create navigation and return to the ClusterQueues tab after creation.

Screen Recordings / Screenshot

SRVKP-14992.mp4

Note

This PR depends on PR: #1458, #1459, #1460

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.

@qodo-code-review

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Warning

/review is deprecated. Use /agentic_review instead (removal date not yet scheduled).

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incomplete quota

The nominal quota cell reads only the first flavor in the first resource group. ClusterQueues with multiple flavors or groups will display a partial quota as though it represents the whole queue. Consider showing that more quotas exist or summarizing all of them.

const getNominalQuota = (queue: ClusterQueueKind) => {
  const flavor = queue.spec?.resourceGroups?.[0]?.flavors?.[0];
  const resources = flavor?.resources ?? [];

  if (!resources.length) return t('No quota set');

  return (
    <>
      <div>{resources.map(formatQuota).join(' · ')}</div>
      <div>{flavor.name}</div>
    </>
  );
Missing quota

formatQuota renders an undefined value when a resource has no nominalQuota, producing text such as undefined cores. Handle missing quotas explicitly.

const formatQuota = (resource: Resource) =>
  resource.name === 'cpu'
    ? t('{{quota}} cores', { quota: resource.nominalQuota })
    : resource.name === 'memory'
    ? resource.nominalQuota
    : `${resource.nominalQuota} ${resource.name}`;

@qodo-code-review

Copy link
Copy Markdown

Important

The /generate_labels command by Qodo was deprecated on the 1st of October 2026 and is no longer available. We recommend switching to the latest Qodo review capabilities. Learn more

@ankrsinha
ankrsinha removed the request for review from vdemeester November 6, 2026 05:43
@ankrsinha

Copy link
Copy Markdown
Contributor Author

/test e2e

@anwesha-palit-redhat

Copy link
Copy Markdown
Contributor

Let us trim this PR down to only hold listview + filters with conditional rendering
The cluster queue list page implementation should be restricted to data views and filters applicable to hub clusters and when MC is enabled via tekton config
For initial testing, resources can be created through the CLI to work around the UI components that are not yet available.
We understand that some columns might need an update after UX is finalised

@anwesha-palit-redhat

Copy link
Copy Markdown
Contributor

/retest frontend

@openshift-ci

openshift-ci Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@anwesha-palit-redhat: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

/test build
/test e2e
/test frontend
/test images

Use /test all to run all jobs.

Details

In response to this:

/retest frontend

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.

@anwesha-palit-redhat

Copy link
Copy Markdown
Contributor

in the screen recording the filter is different from what we have in dataviewfilter today right ?

@anwesha-palit-redhat

anwesha-palit-redhat commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

please add another screen recording for ipad / narrower screen view
need to ensure that the experience is same as the other tabs ( like pipelinerun / taskrun ) - some columns sticky, and some scrollable

@ankrsinha

Copy link
Copy Markdown
Contributor Author

in the screen recording the filter is different from what we have in dataviewfilter today right ?

Yes, that is because we need atleast 2 filter options for filter dropdown to appear. Since we have only "name", thatswhy only a search input without any filter dropdown is appearing now.

@ankrsinha

Copy link
Copy Markdown
Contributor Author

please add another screen recording for ipad / narrower screen view need to ensure that the experience is same as the other tabs ( like pipelinerun / taskrun ) - some columns sticky, and some scrollable

Added screen recording in PR desc for narrower screen view. Name and action columns are sticky while other are scrollable same as pipelinerun.

- Show ClusterQueues on hub clusters in the Pipelines page.
- Add name filtering, queue details, and generic create, edit, and delete actions.

Signed-off-by: Ankur Sinha <anksinha@redhat.com>
@anwesha-palit-redhat

Copy link
Copy Markdown
Contributor

Have we verified the empty list state in clusterqueue ?

@ankrsinha

ankrsinha commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Have we verified the empty list state in clusterqueue ?

Not actually because for verifying we will need to delete all the CQs, but there are two CQs (cluster-queue and local-cluster-queue) which were already present in this Hub cluster. Can we safely delete them ? will it create any issue with multicluster config ?

We have a unit test added for this

@anwesha-palit-redhat

Copy link
Copy Markdown
Contributor

Have we verified the empty list state in clusterqueue ?

Not actually because for verifying we will need to delete all the CQs, but there are two CQs (cluster-queue and local-cluster-queue) which were already present in this Hub cluster. Can we safely delete them ? will it create any issue with multicluster config ?

We have a unit test added for this

No need to delete the CRs
All that we can do is pass [] in the listview and check the UX

@ankrsinha

Copy link
Copy Markdown
Contributor Author

Have we verified the empty list state in clusterqueue ?

Not actually because for verifying we will need to delete all the CQs, but there are two CQs (cluster-queue and local-cluster-queue) which were already present in this Hub cluster. Can we safely delete them ? will it create any issue with multicluster config ?
We have a unit test added for this

No need to delete the CRs All that we can do is pass [] in the listview and check the UX

Oh my bad, verified it now
image

@anwesha-palit-redhat

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Looks Good to Me Label label Nov 19, 2026

@arvindk-softwaredev arvindk-softwaredev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci

openshift-ci Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ankrsinha, arvindk-softwaredev

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:
  • OWNERS [arvindk-softwaredev]

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

@openshift-ci openshift-ci Bot added the approved Label for Approved PRs label Nov 24, 2026
@arvindk-softwaredev
arvindk-softwaredev merged commit 6b258ff into openshift-pipelines:master Nov 24, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Label for Approved PRs jira/valid-reference lgtm Looks Good to Me Label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants