update Readme.md for execEnvs

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2022-05-14 10:13:09 +08:00
parent 1258c9ed10
commit ba5bea17d7
1 changed files with 10 additions and 0 deletions

View File

@ -1126,6 +1126,16 @@ mysetting: |
The possibility is endless. Try importing values from your golang app, bash script, jsonnet, or anything! The possibility is endless. Try importing values from your golang app, bash script, jsonnet, or anything!
Then `execEnvs` same as `exec`, but it can receive a dict as the envs.
A usual usage of `execEnvs` would look like this:
```yaml
mysetting: |
{{ execEnvs (dict "envkey" "envValue") "./mycmd" (list "arg1" "arg2" "--flag1") | indent 2 }}
```
## Hooks ## Hooks
A Helmfile hook is a per-release extension point that is composed of: A Helmfile hook is a per-release extension point that is composed of: