-
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
Add ability to embed Resource declaration also when embedding Tasks in TaskRuns #313
Comments
(Build functionality needs specifically GCS + Git Resource types) Can make sense to work on alongside migrating yaml tests (#302) |
@bobcatfish : I have added a design doc to discuss proposed solutions. Please comment on it and we can get better alignment 👍 https://drive.google.com/open?id=1BQDfihryPT25_kyBX0pmilBaFsASkZBlbRsUDF1RUew |
Great write up @shashwathi ! I'm having trouble picking one approach over the other, so I'm interested to hear what other ppl (particularly @imjasonh ) think. Also would like to understand more about whether we intend to support this indefinitely or if it's more of a temporary stepping stone @imjasonh . |
@bobcatfish I think we should assume Serving will want the feature for the foreseeable future. Left comments on the doc. I like |
I was definitely thinking only about migration and not thinking about the serving use case at all 🤦♀️ I'm on board with the For handling the GCS type, I'm leaning toward adding a new resource type specifically for the |
I think @imjasonh @bobcatfish @pivotal-nader-ziada and I are okay with this solution so we can go ahead with this approach unless there is any objection. I will probably tackle this first.
I like this solution too. @pivotal-nader-ziada @bobcatfish and I are okay with this solution so lets go ahead with approach unless there is any objection. I will probably do this in follow up PR (in case we change our minds with another approach). |
@tejal29 to tackle the new GCS resource, maybe in a separate issue |
Looks like we've to a separate issue for the GCS resource in #415, any objections to closing this one @shashwathi ? :D |
Feel free to close this issue @bobcatfish |
awesome :D 🎉 |
Expected Behavior
In #262 @pivotal-nader-ziada made it possible to embed a Task Spec into a
TaskRun
- this way you can create aTaskRun
without needing to create aTask
first - the goals here are:Builds
are embedded into specs in knative/serving and are self containedIt should be possbile to put all of the info required for a
TaskRun
into aTaskRun.spec
without requiring any additional resources to exist first.Actual Behavior
You can embed a Task spec in a TaskRun, but the Resources the TaskRun refers to must exist at the time of the TaskRun creation.
This means if you embedded a TaskRun in a knative/serving spec, you'd have to have created the required Resources beforehand.
Additional Info
Discussion about resources in the PR
The text was updated successfully, but these errors were encountered: