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: email:
{{- if .Values.email -}} {{- if .Values.email -}}
{{ tpl .Values.email . }} {{ .Values.email | nindent 4 }}
{{- end -}} {{ end }}
{{ .Values.email }}

View file

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