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:
|
email:
|
||||||
{{- if .Values.email -}}
|
{{- if .Values.email -}}
|
||||||
{{ tpl .Values.email . }}
|
{{ .Values.email | nindent 4 }}
|
||||||
{{- end -}}
|
{{ end }}
|
||||||
|
|
||||||
{{ .Values.email }}
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
email:
|
email: |
|
||||||
somehost: "abc"
|
abc: moo
|
||||||
someport: 5333
|
def: "false"
|
||||||
|
rf: true
|
||||||
|
|
Loading…
Reference in a new issue