-
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
Expose pipeline run metadata to Tasks and Conditions #1020
Comments
/assign |
Created a design proposal here: https://docs.google.com/document/d/1eJBb2VHuSTbrIWfPE3TGdRRfdbJsRCOBIqfTwx9M3H8/edit#heading=h.2f7asw3l4lo9 (to view this join the tekton-dev@ mailing list: https://github.com/tektoncd/community/blob/master/contact.md#mailing-list ) |
/kind feature |
@dibyom are you still working on this or can we throw it back in the backlog? |
Thanks for the reminder. Moved to backlog -- here's why:
I think we should take another look at this post #1376 |
This feature is essential for @dibyom I would like to collaborate on the design if I can, planning on working on it after core Assigning it to myself as well, please let me know if there is any issue 🙏 /assign |
Excellent!! 😃 |
I think @dibyom 's proposal to provide this info via json file is a great first step toward what we need for both conditions + finally. We can always follow that up with more power around variable interpolation if needed. |
@popcor255 do you have any particular use case or story you would like to be supported with this feature request? |
@pritidesai Yes, as a user I would like to log my pipelines with something with logDNA/ELK. However, this work around looks like I should be able to get the name of the pipelinerun I am under. This should let me use a step with kubctl to get the params. 😄 apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: fetch-my-pipelinerunner
spec:
steps:
- name: kubeconfig
image: bitnami/kubectl
script: |
kubectl get pipelineruns $PIPELINERUN -o json
env:
- name: PIPELINERUN
valueFrom:
fieldRef:
fieldPath: metadata.labels['tekton.dev/pipelineRun'] |
@jerop ty for pointing this out. Will this be included in the next minor version release 0.20.0? Or could this be part of 0.19.x? |
@riceluxs1t this will not be part of 0.19.x, we avoid introducing features in a patch release. It can be part of 0.20 depending on the reviews. I have added it to the 0.20 milestone for now. |
@riceluxs1t aggregate status is still not implemented. PR #3390 has implementation of accessing individual task (task A and task B in your use case and have finally task C enumerate on task A and task B). I will have a TEP this week to propose enumerated status of all |
@pritidesai an ability for a finally task to access the status of individual tasks is sufficient for my use case but thank you for giving me this kind update on the progress |
@pritidesai is there a way to get the aggregate of all tasks? Based on #3390 it seems we have to spell out each task.
|
yes @jrcast it is spelling out each task for now 🙃 . I am in process of proposing |
/reopen PR #3390 introduced a part of this feature, we are still working on it. |
@riceluxs1t can you please review the proposal tektoncd/community#371 and let me know if it matches your expectations? 🙏 |
Reopening again 😜 since we do not expose the entire metadata yet, so far we have access to execution status of individual |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. 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. |
Condition containers need access to metadata about the pipeline run. The metadata will be in the form of a
pr-metadata.json
file that is present in theworkspace
directory.Part of implementation of #27
ref: #1137
The text was updated successfully, but these errors were encountered: