Repository navigation
cmd/image-builder: support templating output directory and artifact names (HMS-11286) - #2677
Conversation
achilleas-k
left a comment
There was a problem hiding this comment.
Nice work. Looks good overall, but I'm not sure about the "stem".
Also, error message language needs a fix.
eb2d075 to
e90a9fb
Compare
|
So, perhaps we want to align things here with the templating structure that we usually use in the YAML definitions which means Thoughts? (cc @achilleas-k). Like maybe we don't want to do that since we only want what's relevant for output filenames in here? |
I think so. In my mind, distro, arch, image-type, blueprint name, and export pipeline name are enough, but I'm sure people will want to get more creative at some point. Maybe we can stick to those first and then expand as needed if we ever get requests for more. |
Allow using Go templates (and use them internally) on the `output-name` and `output-dir` fields. This will make life easier in the future when we have multiple artifacts and generally make things a bit easier for users who want nested outputs or such. Signed-off-by: Simon de Vlieger <[email protected]>
e90a9fb to
f3e3c88
Compare
Allow using Go templates (and use them internally) on the
output-nameandoutput-dirfields. This will make life easier in the future when we have multiple artifacts and generally make things a bit easier for users who want nested outputs or such.