-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: tkn-results add pipelinerun list and result describe command #908
base: main
Are you sure you want to change the base?
Conversation
Hi @xinnjie. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
/kind feature |
63ade1e
to
ba0455b
Compare
@@ -21,11 +21,12 @@ | |||
package pagetoken_go_proto | |||
|
|||
import ( | |||
reflect "reflect" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't want to modify this file, but make goimports
keeps fixing this importing.
Is this type of improvement welcome? Personally I just wanted to know about Results API, and make the progress smoother using |
Yes, this kind of contribution is welcome. Thanks for the contribution. |
3cccaa0
to
7277c4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
The following is the coverage report on the affected files.
|
Please rebase the PR. |
pr := &pipelinev1.PipelineRun{} | ||
switch record.Data.GetType() { | ||
case "tekton.dev/v1beta1.PipelineRun": | ||
prV1beta1 := &pipelinev1beta1.PipelineRun{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add //nolint:staticcheck adjacent to this line. It will fix the build test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed and rebased.
140ca2b
to
20132e6
Compare
The following is the coverage report on the affected files.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
tkn-results
introduces commands for listing pipelineruns and describing results, improving user experience and assisting contributors in comprehending the Results API. Ideally, thetkn-results
experience should mirror that oftkn
(mybe in far future).To list PipelineRuns in the
default
namespace, use:tkn-results pipelinerun list
For details on a specific result, run:
tkn-results result describe <result-name>
ortkn-results result describe -n <namespace> --uid <result-uid>
Currently, PipelineRuns listing does not utilize paging.
Related to #587, More commands like
tkn results taskrun list/describe/logs
are expected to be added in an upcoming PR(Try best I can).Breaking Changes
tkn-results list
is moved totkn-results result list
for clarity.Examples
records get
:pipelinerun list
:And
result describe
below.Known issues:
STARTED and DURATION are not displayed due to the absence of start/end times in the result summary.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you review them:
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes