-
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
Allow embedding specs in Pipeline and PipelineRun instead of referencing. #872
Comments
Seems totally reasonable to have this! Thanks for opening the issue @cjwagner
Sort of related, I'd also like to bring your attention to #859: we'd really like our Pipeline and Task definitions to live in our repo alongside our code. So another possible way to address your use case could be for Prow to be aware of where the Pipeline and Task definitions are stored in the repo, and apply them before running? (Would still need some way to stamp out and/or embed PipelineResources tho) |
p.s. going to propose pipelineresource embedding for #544 anyway :D |
@pritidesai is working on this! |
/assign pritidesai |
@bobcatfish: GitHub didn't allow me to assign the following users: pritidesai. Note that only tektoncd members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. 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. |
/assign pritidesai |
Design doc for PipelineSpec embedding: https://docs.google.com/document/d/1at7nFsC-4OIILXwAC--EujlF9eJ_yiVt3cBWMRJbIdc/edit# |
I'm going to reopen this b/c we don't have Task embedding yet. |
@bobcatfish @pritidesai I think all is done now, right ? |
hey @vdemeester the |
@pritidesai ok 👍 I thought it was tracked in another issue 😝 |
Expected Behavior
I see that the
TaskRun
spec allowTask
s andPipelineResource
s to be embedded into the spec via thetaskSpec
andresourceSpec
fields. (Docs, Issue) Creating just theTaskRun
is simpler than creating all the CRDs and avoids the need to clean up ephemeralTasks
andPipelineResources
that are only needed for the individualTaskRun
. (ref #544)It would be great if
PipelineRun
s could expose a similar embedding mechanism so that theTask
s,Pipeline
, andPipelineResource
s could all be embedded into thePipelineRun
spec. Here is a simple example of what I would expect a fully embeddedPipelineRun
to look like (snipped together from other examples):Additional Info
The context for this is running ProwJobs as Tekton Pipelines.
Prow now has a controller that can run ProwJobs that define a
PipelineRun
spec, but currently the referencedPipeline
andPipelineResource
s must already exist in the cluster. It would be neat if a ProwJob could specify all the needed information in thePipelineRun
spec instead of having to reference other CRDs that must be separately managed by our automation.The text was updated successfully, but these errors were encountered: