-
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
Implement the github Resource type #58
Comments
@pivotal-nader-ziada this is the issue I was mentioning re. the github resource! |
Sounds good /assign @pivotal-nader-ziada |
It is better to pull the common parts we need to the
The resource itself has the ServiceAccount and the
I think we have a piece of that already in |
If you prefer that approach we can do it, but I prefer keeping the build related logic in build, since I think that's a reasonable grouping of logic. One of the downsides of the
Oh interesting, I totally missed that the resource has a
Yep you are totally right, that's another thing (the fact that TaskRuns now have references to Resources) I missed! The |
I'm fine with keeping it in build and depending on it there, I think we will have this dependency anyways. If we later decide to make the dependency less coupled, we can pull out the common things even in another common repo.
yeah in case you have different accounts to get from buckets vs from github, I have seen this use case before, what do you think?
I like the approach of saving the snapshot with the ref so everything is in one place |
Sounds good to me!
I think you're right, especially if you've seen it before. It'll be more flexible anyway!
kk then let's assume that! In that case the |
my high level plan so far is the following:
I'm expecting the TaskRun Controller/Runner will take this array of init-containers and add them to the Pod that will actually execute the task @bobcatfish @imjasonh @shashwathi @tejal29 makes sense? |
Sounds great to me @pivotal-nader-ziada ! I pinged @aaron-prindle in case he has any other comments, he's working on #59. |
- add resource to Build as an input source
- add resource to Build as an input source
- add resource to Build as an input source
- add resource to Build as an input source
Expected Behavior
When a user creates a
TaskRun
, theTaskRun
will contain the actualResources
that theTask
is using, and if theseResources
are inputs, they should be made available as mounted volumes in theTask
's steps.For example run-kritis-test.yaml contains a kritis github source (note: maybe this section should be called
resource
now?):This would mean that the TaskRun controller would need to pull from that github repo and make the contents available in a mounted volume for the steps subsequently executed by the TaskRun's Task.
It would need to use a serviceAccount to do this which would have the correct GitHub credentials.
Requirements
gitToContainer
)Resource
Bonus:
Actual Behavior
We have none of this implemented, TaskRun's controller currently just (barely) validates the yaml.
Additional Info
(Open to redesign: instead of repeating all of the resources and credentials in the TaskRun, TaskRun could have a references to the Resource and PipelineParam CRDs. One downside tho is that if you look at a TaskRun, you won't know for sure what values were used for these, since they could have been subseqently updated.)
The text was updated successfully, but these errors were encountered: