mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-03 20:29:39 +02:00
Add missing documentation for isFile function (#996)
See https://github.com/helmfile/helmfile/commit/ed436ba68bd80057be99c20296c26dd4996b69dc Signed-off-by: anessi <anessi@users.noreply.github.com> Co-authored-by: anessi <anessi@users.noreply.github.com>
This commit is contained in:
@@ -32,6 +32,13 @@ The `envExec` function allows you to run a command with environment variables de
|
||||
{{ $cmdOutpot := envExec (dict "envKey" "envValue") "./mycmd" (list "arg1" "arg2" "--flag1") }}
|
||||
```
|
||||
|
||||
#### `isFile`
|
||||
The `isFile` function allows you to check if a file exists. On failure, the template rendering will fail with an error message.
|
||||
|
||||
```yaml
|
||||
{{ if isFile "./myfile" }}
|
||||
```
|
||||
|
||||
#### `readFile`
|
||||
The `readFile` function allows you to read a file and return its content as the function output. On failure, the template rendering will fail with an error message.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user