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

FR: pipelineRun.spec.taskRunTemplate #5302

Closed
lbernick opened this issue Aug 10, 2022 · 23 comments
Closed

FR: pipelineRun.spec.taskRunTemplate #5302

lbernick opened this issue Aug 10, 2022 · 23 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@lbernick
Copy link
Member

Feature request

We already have pipelineRun.spec.taskRunSpecs, but it might be nice to be able to specify a TaskRun configuration that applies to every TaskRun in the PipelineRun by default. An analogous feature is task.spec.stepTemplate.

Example use cases

  • I would like to use the same service account for all of my pipeline tasks except one.
  • I want to specify compute resources that each TaskRun in my PipelineRun should run with, and don't want to have to specify them individually for each TaskRun.
@lbernick lbernick added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 10, 2022
@yuzp1996
Copy link
Contributor

/assign

@yuzp1996
Copy link
Contributor

taskRunTemplate should be a field of pipelineRun.spec or a field of pipeline.spec ?

@lbernick
Copy link
Member Author

I think we'd want this to be on PipelineRun, since the use cases I mentioned (service account and compute resources) are probably things you'd want to specify for a pipelinerun rather than a Pipeline. However (I should have mentioned this in the initial issue) I think we should have a small TEP (design proposal) for this before implementing it just to make sure there are no concerns from maintainers. Is that something you'd be willing to do, with help from me?

@yuzp1996
Copy link
Contributor

I think we'd want this to be on PipelineRun, since the use cases I mentioned (service account and compute resources) are probably things you'd want to specify for a pipelinerun rather than a Pipeline. However (I should have mentioned this in the initial issue) I think we should have a small TEP (design proposal) for this before implementing it just to make sure there are no concerns from maintainers. Is that something you'd be willing to do, with help from me?

Of course! I would like to do it! Thanks for your help!@lbernick

Maybe I should create a TEP PR in Tekton/community first?

@lbernick
Copy link
Member Author

Thank you, that would be amazing! The instructions for creating a new TEP are here. Please let me know if you need any help with this.

@yuzp1996
Copy link
Contributor

Thank you, that would be amazing! The instructions for creating a new TEP are here. Please let me know if you need any help with this.

Yes! I will 😁 !

Since I'm not good at English and I need to do some in-depth research, it will take some time to create the TEP, but I'll sync the progress here.

@lbernick
Copy link
Member Author

lbernick commented Sep 6, 2022

Thanks so much for adding the TEP @yuzp1996! are you still interested in implementing this, or should we assign someone else? Either way works!

@yuzp1996
Copy link
Contributor

yuzp1996 commented Sep 13, 2022 via email

@yuzp1996
Copy link
Contributor

@JeromeJu welcome! 😀

@yuzp1996
Copy link
Contributor

yuzp1996 commented Sep 13, 2022

When should we start to implement this TEP? I remember we need to implement it in V1. When will V1 be released? I can not find that in the roadmap.

@lbernick
Copy link
Member Author

We already have v1 Go structs here. Before we release v1, we need to move serviceAccountName and podTemplate to pipelineRun.spec.TaskRunTemplate in this folder. After releasing v1, we can implement the rest of the TaskRunTemplate fields.

@yuzp1996
Copy link
Contributor

yuzp1996 commented Sep 14, 2022

Ok! I am worried I will not be able to start to implement it immediatly because I will be a little busy for my work in the next few weeks.

Look like @JeromeJu is fine to do it. Maybe you can start to implement it now. I can just help review the PR if possiable! Thanks!

@JeromeJu
Copy link
Member

Ok! I am worried I will not be able to start to implement it immediatly because I will be a little busy for my work in the next few weeks.

Look like @JeromeJu is fine to do it. Maybe you can start to implement it now. I can just help review the PR if possiable! Thanks!

Sounds good. Thank you for the excellent collaboration on the TEP work.

@JeromeJu
Copy link
Member

TODO: implement the rest of the fields after v1 release

@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 15, 2022
@JeromeJu
Copy link
Member

/remove-lifecycle stale #5579 unblocks this

@lbernick lbernick removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 18, 2022
@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 18, 2023
@wuhuizuo
Copy link

How about support taskTemplate in Pipeline.Tasks. I found it's impossible to build multi arch image with kaniko with multi tasks planed to run on different arch nodes.

@lbernick
Copy link
Member Author

Thanks @wuhuizuo, could you give an example of what you'd like to exist? I'm curious why pipelinerun.spec.taskrunspecs does not work for your use case.

@tekton-robot
Copy link
Collaborator

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 27, 2023
@tekton-robot tekton-robot added the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Apr 27, 2023
@tekton-robot
Copy link
Collaborator

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

@tekton-robot
Copy link
Collaborator

@tekton-robot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

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.

@wuhuizuo
Copy link

Thanks @wuhuizuo, could you give an example of what you'd like to exist? I'm curious why pipelinerun.spec.taskrunspecs does not work for your use case.

Sorry for late reply. I discussed it in slack channel, also I created a issue in community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
Status: Done
Development

No branches or pull requests

5 participants