Description of problem: The Pipeline details page shows a Metrics tab for the latest PipelineRuns to show their success ratio and other stats. To see the charts the user needs view access to the openshift-pipeline namespace. This is a follow up on https://bugzilla.redhat.com/show_bug.cgi?id=2041769 Version-Release number of selected component (if applicable): 4.9+ How reproducible: Always as a user with limited access Steps to Reproduce: 1. Add OpenShift Pipelines operator (tested with 1.7) 2. Switch to a user with limited access (you should not see ANY namespace) 3. Create a new namespace 4. Import an application from git and enable the Pipelines checkbox 5. Let the PipelineRun finish at least one time (success or failure state) 6. Switch to Pipeline detail page. Actual results: It shows a "Metrics" tab with four cards that show "No datapoint found." Expected results: It should check the required permission and should not show the "Metrics" tab if it couldn't show the stats/data points. Additional info: None
Created attachment 1874853 [details] missing-data-points.png
A Fix is provided by the pipelines operator team in this PR https://github.com/tektoncd/operator/pull/796 and this will be backported to 4.10 and 4.9 respective operators, so we no longer need to hide the metrics tab.I am closing this ticket, let me know if there are any questions.