https://garden.io logo
#🌱|help-and-getting-started
buildArgs and ModuleTemplate
# 🌱|help-and-getting-started
a

aloof-lamp-69262

04/20/2023, 5:46 PM
Hello, I am trying to use ModuleTemplate. While trying to deploy the service, I am unable to add
buildArgs
to the
templated
module. I get the error
key "buildArgs" is not allowed at path [buildArgs]
If I try to add
buildArgs
in the template itself and use
${inputs.XXX}
it complains
Could not find key inputs. Available keys: command, git, local, project and secrets.
Basically it looks like inside the template I can not use
inputs
except in the
modules
section. So currently as it stands I can not use
buildArgs
with
templates
. This is a blocker for using this feature. Is there any other way around it?
Ok I managed to solve it. I was able to add
buildArgs:
to the
ModuleTemplate
under the modules section and use
${var.inputs.XXX}
vs adding it at the top level. So I am all set 🙂
b

bright-policeman-43626

04/21/2023, 7:05 AM
Thank you for figuring it out in this short amount of time and sharing the solution, sometimes we only need to talk through the problem and the solution comes right away haha.
3 Views