Like Helm but works for any kind of file, not just YAMLs.
Similar to Helm, with the following directory structure:
chart
├── values.yaml
├── templates
│ ├── app.tf
│ └── _helpers.txt
└── values.yaml
You can run:
mleh -values values.yaml -output-dir . chart/
And it will generate, in this case an app.tf file, while skipping files that start with an underscore.
As Helm, Sprig functions are available, the documentation is hosted by Mastermind.
Mleh uses the default template definitions from
Go, so when requiring a template,
rather than using Helm's include just use Go's native implementation.
{{- define "app.name" -}}
{{- .Values | trunc 16 | trimSuffix "-" -}}
{{- end -}}
// Later, just call it with:
app.name = {{ template "app.name" . }}
Functions toYaml, toJson, tpl, are neither implemented.
Content type
Image
Digest
sha256:e1518a34d…
Size
4.5 MB
Last updated
almost 3 years ago
docker pull ivan/mleh