OCPBUGS-115833: Show CPU/Memory metrics for non-admin users on Projects page - #17132
OCPBUGS-115833: Show CPU/Memory metrics for non-admin users on Projects page#17132redhat-chai-bot wants to merge 2 commits into
Conversation
…ts page Use the Prometheus tenancy endpoint for non-admin users so the Projects list page shows CPU and Memory columns regardless of cluster-level namespace permissions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Wrap long encodeURIComponent call to satisfy prettier line-length rule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@redhat-chai-bot: This pull request references Jira Issue OCPBUGS-115833, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
/lgtm |
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: redhat-chai-bot, stefanonardo The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
1 similar comment
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: redhat-chai-bot, stefanonardo The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@redhat-chai-bot: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Analysis / Root cause
Non-admin users cannot list namespaces cluster-wide, so the existing cluster-wide Prometheus metrics request fails for them. The Projects page also gated the metrics columns on that permission.
Solution description
Validation
yarn eslint public/components/namespace.jsxpasses.yarn test namespace.spec.tsxencounters the same pre-existing schema-loading failure on both the base and feature branches; the test does not cover the changed metrics logic.Jira issue OCPBUGS-115833
AI-generated. Review for accuracy.
@stefanonardo requested in Slack thread