openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
124 stars 81 forks source link

feat: Allow non-admin users to get install info #1706

Closed chmouel closed 1 week ago

chmouel commented 3 weeks ago

This commit modifies the 'install' command to allow non-admin users to retrieve installation information for Pipelines-as-Code. Previously, this command was restricted to admin users only. Now, if the user does not have rights to list all repos in the cluster, the command will attempt to list repos in the current namespace instead. The command's help text has been updated to reflect this change.

Changes

Submitter Checklist

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 25.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 64.57%. Comparing base (3f9bcd0) to head (c7e0d3f).

Files Patch % Lines
pkg/cmd/tknpac/info/install.go 25.00% 8 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1706 +/- ## ========================================== - Coverage 64.59% 64.57% -0.03% ========================================== Files 144 144 Lines 11151 11158 +7 ========================================== + Hits 7203 7205 +2 - Misses 3422 3427 +5 Partials 526 526 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.