-
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
Question/Proposal: Step Resource #1260
Comments
@danielhelfand I think this is a really interesting idea - maybe relevant to @ahpook 's interests as well?
We've been focusing on a Maybe you could give some examples of where this could be useful? |
@bobcatfish This is kind of related to Task composition and issues like #1367 (Allow for TaskReference Interpolation within Pipeline). I think the idea would be able to define some common step that need to be done in a Task, so that they can be shared and re-use easily. I wonder if it should be a PipelineResource or its own type, usable/injectable in the Task spec. And as it is "arbitrary" (Step being a |
I think the main use case I see for this is, as @vdemeester has mentioned, is about being able to define a step once and have it be reusable across tasks. Being able to write the step once and then be able to have a Granted, it's debatable how much this would be worth it considering how much has already been done around having tasks as the most basic unit, but I think promoting reuse of images, resource allocation for the step, and individual commands would be nice to package as some type of resource. |
Following up on this, I think a good use case of this could be cli tools used as part of a task. For instance, currently there is a task for |
I think this could be pretty cool, though it's hard for me to imagine exactly what it would look like. @danielhelfand and/or anyone else, would you be interested in putting together a proposal with maybe some examples of what this would be like? |
@bobcatfish Sure! Do you have any particular format for a proposal, or would you like a high level examples of how I imagine this? |
@danielhelfand either is great - we have some suggestions for what we try to look for in proposals in https://github.com/tektoncd/community/blob/master/process.md#proposing-features but basically as much/little as you think is reasonable :D and the working group (https://github.com/tektoncd/community/blob/master/working-groups.md#general) is a great place to discuss this out loud if you'd prefer that route |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten 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. |
I don't think we've ever really established whether or not we want to do this, it comes up every once in a while in conversation but it still feels (to me at least!) like we have no use cases for this that are compelling enough for us to do it |
Currently, the
Task
resource consists ofSteps
that each run in a separate container. I am wondering whySteps
are not a separate resource that could be defined separately from aTask
and then reused as part of severalTasks
.This would follow the design considerations of other Tekton resources that are highly reusable, such as
Tasks
andPipelineResources
.What is the reasoning for not having a
Step
resource?The text was updated successfully, but these errors were encountered: