Closed dsabeti closed 5 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/160765962
The labels on this github issue will be updated when the story is started.
Hey @dsabeti - Great suggestion. I'll turn this into a story. Thank you! Josh
Hey @dsabeti @flawedmatrix @jvshahid - Yesterday we released cf-d-ct v8.1 & v8.2 which includes bosh-deploy*
tasks updated to include the upload-stemcell functionality as per this issue.
Just wanted to close the loop with y'all and please let me know if the solution we provided hit the mark or not. Cheers!
We were recently trying to use cf-deployment-concourse-tasks to upload stemcells in our pipeline, and we came across a few pain points:
bosh-upload-stemcells
in order to get our experimental and windows stemcells uploaded.deploy
andupload-stemcells
tasks.upload-stemcells
task rejects ops-files that don't modify thestemcells
section of the manifest, so our YAML anchor didn't help. And we had to hand-curate the list of ops-files for theupload-stemcells
task.Originally, we were planning to give feedback about the errors raised in the
upload-stemcells
task and request that the task be modified so that you can just provide the same list of ops-files to both thedeploy
andupload-stemcells
task.But, as we thought about it more, we started to wonder if it made more sense for the
upload-stemcells
task to be subsumed into thedeploy
task.The two tasks have very similar interfaces. They have same inputs, except that the
deploy
task has one additional input calledvars-files
. All of the parameters for theupload-stemcells
task are also included in thedeploy
, except forINFRASTRUCTURE
. The reason the inputs and parameters are so similar is because the two tasks are kind of similar work: generating a manifest (both tasks runbosh interpolate
), and then performing abosh
command (deploy
orupload-stemcells
) using the completely generated manifest. This would solve our original problem (managing to distinct lists of ops-files between the two tasks) by consolidating the logic into one task.Would it make sense to combine these two tasks? Or, at least, to add the
upload-stemcells
logic to thedeploy
task?cc @flawedmatrix @jvshahid