Skip to content

Commit

Permalink
feat(app): helm style templating
Browse files Browse the repository at this point in the history
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
  • Loading branch information
rjshrjndrn committed Feb 11, 2024
1 parent b7a09d3 commit cc8d646
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

## How to use

1. Inline variables

```bash
# File using helm templating
cat <<'EOF'>file
Expand Down Expand Up @@ -38,6 +40,25 @@ class:

```

2. Passing variables from external yaml, using helm style templating.
```bash
# Value file
cat <<'EOF'>values.yaml
school: Govt. Public School
EOF
# File using helm templating
cat <<'EOF'>file
---
{{- $name := "John" }}
class:
school: {{ .Values.school }}
{{- range $i := until 11 }}
{{$i}}: {{$name}}
{{- end }}
EOF

templater -i file -f values.yaml -o out/
```

## Getting Started

Expand Down

0 comments on commit cc8d646

Please sign in to comment.