finish the helm yaml tree test

This commit is contained in:
Nico Schottelius 2022-03-29 18:28:28 +02:00
parent 531e2c8c51
commit 4f19a2a6fb
3 changed files with 21 additions and 7 deletions

15
helm/treetest/README.md Normal file
View File

@ -0,0 +1,15 @@
## Motivation
Setting yaml constructs inside configurations files via values.yaml.
## TL;DR
Setting it using
```
abc: |
...
```
works, however pushing the multiline string into helm might be the
bigger issue / challenge.

View File

@ -1,6 +1,4 @@
email:
{{- if .Values.email -}}
{{ tpl .Values.email . }}
{{- end -}}
{{ .Values.email }}
{{ .Values.email | nindent 4 }}
{{ end }}

View File

@ -1,3 +1,4 @@
email:
somehost: "abc"
someport: 5333
email: |
abc: moo
def: "false"
rf: true