-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Enhance the output of "kubectl get taskruns" #718
Enhance the output of "kubectl get taskruns" #718
Conversation
@vincent-pli thanks! for the PR 👍 . Would you mind to update |
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.
We should go for something more like knative/build
, aka https://github.com/knative/build/blob/master/config/300-build.yaml
(that's my fault on the initial PR, I should have commented that out)
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.
@vincent-pli so I would like for us to not change anything in the status and just go with what knative/build
does.
additionalPrinterColumns:
- name: Succeeded
type: string
JSONPath: ".status.conditions[?(@.type==\"Succeeded\")].status"
- name: Reason
type: string
JSONPath: ".status.conditions[?(@.type==\"Succeeded\")].reason"
- name: StartTime
type: date
JSONPath: .status.startTime
- name: CompletionTime
type: date
JSONPath: .status.completionTime
Using kubectl
to see status of the pipeline/task runs is not the end goal. A cli
is in discussion, a dashoard is also on the way. We should do "just" what we can with kubectl
.
@vdemeester For your comments, about the setting from Knative-build, that's make sense, I have tried it myself, get this:
That's looks great. I checked the code in the Knative-build, they prepare more "reasons", such as: "BuildCancelled", "BuildTimeout", "BuildValidationFailed". So In my opinion, if we decide to leverage cli or dashboard, we just remove these information from kubectl, just like what "argo" did, or we need build a more meaningful "reason", What do you think? :) |
@vincent-pli yeah we may want to add more/meaninful
We'll use the information from the API (same way |
@vdemeester |
4bcab81
to
e327c17
Compare
/ok-to-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.
Given that #740 is merged, CompletionTime
will now be present
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester, vincent-pli 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 |
Fix #717 #696
Changes
Any details please check the issue attached, I just want to enhance the output of "kubectl get taskrun", to make it more clear and friendly, open for discussion, thanks
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.
Release Notes