mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 15:14:04 +02:00
Implement readDirEntries method
Signed-off-by: vasicvuk <vuk.vasic@asseco-see.rs>
This commit is contained in:
@@ -367,6 +367,8 @@ We also added the following functions:
|
||||
- `exec`
|
||||
- `envExec`
|
||||
- `readFile`
|
||||
- `readDir`
|
||||
- `readDirEntries`
|
||||
- `toYaml`
|
||||
- `fromYaml`
|
||||
- `setValueAtPath`
|
||||
@@ -679,6 +681,8 @@ You can use go's text/template expressions in `helmfile.yaml` and `values.yaml.g
|
||||
In addition to built-in ones, the following custom template functions are available:
|
||||
|
||||
- `readFile` reads the specified local file and generate a golang string
|
||||
- `readDir` reads the files within provided directory path. (folders are excluded)
|
||||
- `readDirEntries` Returns a list of [https://pkg.go.dev/os#DirEntry](DirEntry) within provided directory path
|
||||
- `fromYaml` reads a golang string and generates a map
|
||||
- `setValueAtPath PATH NEW_VALUE` traverses a golang map, replaces the value at the PATH with NEW_VALUE
|
||||
- `toYaml` marshals a map into a string
|
||||
|
||||
Reference in New Issue
Block a user