glamorous-kangaroo-20427
10/15/2024, 11:27 PMmicroscopic-river-74022
10/15/2024, 11:27 PMmicroscopic-river-74022
10/15/2024, 11:27 PMspec.valueFiles
field in the Helm Deploy action to specify value files to use when rendering the Helm chart. These files should be specified in ascending order of precedence, with the last file in the list having the highest precedence. The paths should be relative to the config root, and the files should be contained in the action config's directory.
Here's an example of how you can specify value files in a Helm Deploy action:
yaml
kind: Deploy
type: helm
name: helm-deploy
...
spec:
valueFiles:
- values.default.yaml
- values.${environment.name}.yaml
If you also specify keys under the values
field, those will effectively be added as another file at the end of this list, so they will take precedence over other files listed here.
To produce a values file from another action, you can use a Run action that generates the values file as part of its execution. You can then use the actions.<kind>.<name>.outputs.
template keys to pass information between actions. For example, you can pass log outputs from one task to another:
yaml
kind: Run
type: exec
name: prep-run
spec:
command: [echo, "my run output"]
---
kind: Deploy
name: my-deploy
dependencies: [run.prep-run]
spec:
env:
PREP_TASK_OUTPUT: ${actions.run.prep-run.outputs.log} # <- resolves to "my task output"
In this example, the output from prep-run
is copied to an environment variable for my-deploy
. Note that you currently need to explicitly declare prep-run
as a dependency for this to work.microscopic-river-74022
10/15/2024, 11:27 PM