finish the helm yaml tree test
This commit is contained in:
parent
531e2c8c51
commit
4f19a2a6fb
3 changed files with 21 additions and 7 deletions
15
helm/treetest/README.md
Normal file
15
helm/treetest/README.md
Normal 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.
|
|
@ -1,6 +1,4 @@
|
|||
email:
|
||||
{{- if .Values.email -}}
|
||||
{{ tpl .Values.email . }}
|
||||
{{- end -}}
|
||||
|
||||
{{ .Values.email }}
|
||||
{{ .Values.email | nindent 4 }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
email:
|
||||
somehost: "abc"
|
||||
someport: 5333
|
||||
email: |
|
||||
abc: moo
|
||||
def: "false"
|
||||
rf: true
|
||||
|
|
Loading…
Reference in a new issue