Browse Source

finish the helm yaml tree test

master
Nico Schottelius 3 months ago
parent
commit
4f19a2a6fb
  1. 15
      helm/treetest/README.md
  2. 6
      helm/treetest/test/server.yaml
  3. 7
      helm/treetest/values.yaml

15
helm/treetest/README.md

@ -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.

6
helm/treetest/test/server.yaml

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

7
helm/treetest/values.yaml

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

Loading…
Cancel
Save