-
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 the kubectl get taskruns #615
Comments
If this make sense, I can send out a PR to fix this |
Hey there @skeeey ! Trying to make sure I know what's missing: so when I run status:
conditions:
- lastTransitionTime: 2018-12-11T15:50:09Z
status: "True"
type: Succeeded
podName: echo-hello-world-task-run-pod-85ca51
startTime: 2018-12-11T15:49:39Z
steps:
- terminated:
containerID: docker://fcfe4a004...6729d6d2ad53faff41
exitCode: 0
finishedAt: 2018-12-11T15:50:01Z
reason: Completed
startedAt: 2018-12-11T15:50:01Z
- terminated:
containerID: docker://fe86fc5f7...eb429697b44ce4a5b
exitCode: 0
finishedAt: 2018-12-11T15:50:02Z
reason: Completed
startedAt: 2018-12-11T15:50:02Z (I took this example output from https://github.com/tektoncd/pipeline/blob/master/docs/tutorial.md#task) So we've got:
Is that the info you're looking for? (Note that some of this is not super intuitive b/c it's trying to follow these kubernetes api best practices: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties) |
Hi @bobcatfish, maybe my description is not clear :), in fact, I want to get some basic info from
I think I can quickly glance the |
/good-first-issue |
@vdemeester: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In 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 kubernetes/test-infra repository. |
/kind enhancement |
/assign @chmouel |
@vdemeester: GitHub didn't allow me to assign the following users: chmouel. Note that only tektoncd members and repo collaborators can be assigned. In 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 kubernetes/test-infra repository. |
If we're going to do this for |
ohhh that makes perfect sense, thanks for the extra details @skeeey !!! ❤️ ❤️❤️ |
It looks like the right way to do this might be with "Additional Printer Columns": |
@chmouel are you still hoping to do this? |
I can work on this @dlorenc, I have this much output working.
I am not sure how to get |
Added type, status, startTime and CompletionTime as additional printer columns in taskrun. This will show the above fields when someone does kubectl get taskruns. Fixes tektoncd#615
Opened a PR for this #694 |
Added type, status, startTime and CompletionTime as additional printer columns in taskrun. This will show the above fields when someone does kubectl get taskruns. Fixes #615
Expected Behavior
When I execute
kubectl get taskruns
command, I want to get more helpful information about thetaskruns
e.g.
TaskRun.Status.StartTime
TaskRun.Status.CompletionTime
TaskRun.Status.Conditions.Type
TaskRun.Status.Conditions.Status
TaskRun.Status.Conditions.Reason
Actual Behavior
When I execute
kubectl get taskruns
command, I don't get any helpful informationThe text was updated successfully, but these errors were encountered: