glamorous-kangaroo-20427
10/15/2024, 10:13 PMhelm apply
command used by Garden were customizable, this may be possible. I could set it to vals eval -f values.yaml | helm apply -f -
, or if Garden currently pipes the values file into helm
, then this could instead be vals eval -f - | helm apply -f -
.glamorous-kangaroo-20427
10/15/2024, 11:14 PMhelm
flag --post-renderer
, and point it to a shell script that calls vals eval -f -
glamorous-kangaroo-20427
10/15/2024, 11:17 PMfreezing-pharmacist-34446
10/17/2024, 12:27 PMvals eval
on the values file for helm before using the actual helm deploy action. You can have the helm deploy action depend on the Run action, which will make sure that the values file is rendered by vals
before the helm deploy action runs.
And just as a side note garden does not run Helm in a container but on your local machine.glamorous-kangaroo-20427
10/17/2024, 2:40 PMvals
print them to stdout instead of to a file, and then in the Helm deploy action I use:
yaml
spec:
values:
$merge: ${yamlDecode(actions.run.render-vals.outputs.log)}
This works well, but unfortunately I wasn't able to find any way to prevent Garden from displaying stdout for this run action. I couldn't find a feature request around having Garden hide the output from the terminal, so I created one: https://github.com/garden-io/garden/issues/6557glamorous-kangaroo-20427
10/17/2024, 2:41 PM/dev/null
in a couple spots since it's getting mixed up in the output with the credentials: https://github.com/garden-io/garden/issues/6556