-
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
[TEP-0047] add display name to pipeline spec and task spec #6294
Conversation
|
Hi @nanjingfm. 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. |
1589bdc
to
925b286
Compare
The following is the coverage report on the affected files.
|
/ok-to-test |
The following is the coverage report on the affected files.
|
Looks like we need to run |
Thanks for the thorough change on both apiversions including the conversions 😎 🙏 For the release note, suggest that shall we use "add Also NIT for the commit message, shall we use explicitly |
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.
@itewk this is an implementation of TEP-0047 - please take a look 🙏🏾
@jerop first, THANK YOU! this is awesome you are taking this on. i presume the rendering of tasks / pipelines in UI is done by a different system which would need to actaully take advantage of these new fields? or am i missing something in the commit where it actaully changes the rendering to use these fields if set and/or do you have a picture of how this renders now? |
@itewk - to clarify, it is @nanjingfm who's implementing the feature, I was just looping you in yes, the rendering is handled by tektoncd/dashboard so they will need to support this feature once it's available in a release - cc @AlanGreene @tektoncd/dashboard-maintainers |
@nanjingfm all my thanks to you!! @jerop thanksnfor clarification. From a CRD perspective then this looks great to me. |
Thanks for the heads up @jerop, @tektoncd/cli-maintainers may also be interested. I've created tektoncd/dashboard#2792 to track the Dashboard implementation. Any input on how / where users might expect to see these new values would be welcome and can be shared on the Dashboard issue. |
[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 |
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.
Thank you so much for working on this! I wonder if we could add a simple example in docs, and also an example to use all the new fields in https://github.com/tektoncd/pipeline/tree/main/examples?
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.
Thanks @nanjingfm! Could you please add the new fields to the conversion unit tests?
a71d124
to
38c098d
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@QuanZhang-William Unit tests and sample code have been added,I would appreciate it if you could review it again. |
c0bdf4c
to
32f971e
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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.
please squash the 4 commits into 1: "Use one commit per PR" - standards
here are some guidelines for the commit message: https://github.com/tektoncd/community/blob/main/standards.md#commit-messages
New fields are added to Pipeline, Task, and PipelineTask for display names, as well as a new field on PipelineTask for description. These "human readable" fields can be used to populate a UI in the future.
32f971e
to
705e86a
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
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.
/lgtm
Thanks for the contribution @nanjingfm, and welcome to the Tekton community! /meow |
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. |
@nanjingfm WAHOOO!! thank you! |
Changes
Before this commit, a task in a Pipeline is currently represented in the UI using a field (name) that is meant to be machine readable, not human readable. So new fields are added to Pipeline, Task, and PipelineTask for display names, as well as a new field on PipelineTask for description.
closes: #3466
/kind tep
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes