Skip to content
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

Adds PipelineTask.name metadata label in TaskRun #966

Merged
merged 1 commit into from
Jun 10, 2019

Conversation

hrishin
Copy link
Member

@hrishin hrishin commented Jun 7, 2019

Changes

If clients want to show the logs for particular TaskRun of a Pipeline,
it's not easy to relate which Task it belongs to in a Pipeline.
TaskRun should have some reference to PipelineTask.Name

In order to fix this issue, this patch adds a metadata.lable
in TaskRun while executing a Pipeline's Task.

Fixes #965

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

Every `TaskRun` created by a `PipelineRun` would have a label `tekton.dev/pipelineTask`
which holds actual Task name give in Pipeline definition. 

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Jun 7, 2019
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 7, 2019
If clients want to show the logs for particular TaskRun of a Pipeline,
it's not easy to relate which Task it belongs to in a Pipeline.
TaskRun should have some reference to PipelineTask.Name

In order to fix this issue, this patch adds a metadata.lable
in TaskRun while executing a Pipeline's Task.

Fixes
  - tektoncd#965
@houshengbo
Copy link

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2019
@dlorenc dlorenc changed the title Adds PipelineTask.name metadata lable in TaskRun Adds PipelineTask.name metadata label in TaskRun Jun 10, 2019
@dlorenc
Copy link
Contributor

dlorenc commented Jun 10, 2019

/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dlorenc, hrishin

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 10, 2019
@tekton-robot tekton-robot merged commit c137ac5 into tektoncd:master Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cant relate TaskRun which belongs to particular PiepelineRunTask
5 participants