Open burkempers opened 12 months ago
helm template output:
---
# Source: testingHelm/templates/cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: test
data:
test.data: |-
test1 this
test1 is
test1 somthing
---
# Source: testingHelm/templates/cm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: test2
data:
test.data: |-
test2 this
test2 is
test2 somthing
---
# Source: testingHelm/templates/cm.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: test3
data:
test.data: |-
#comment
test3 this
test3 is
test3 somthing
Issues regarding Helm usage are best posted over on the helm software repo https://github.com/helm/helm. Please repost there. Thanks!
There seems to be a bug with range inside of an include. It is a little hard to explain, so here is my test setup.
values.yaml:
_helpers.tpl :
cm.yaml :
In my mind all three configmaps should look the same, but when you do a helm template command with this setup the test2 confimap has an extra blank new line. This new line once pushed to kubernetes then screws up kubernetes output to yaml format.
I am going to guess that the whitespace deletion has a bug in it with this setup, since in test3 just adding some text before the range removes any extra whitespace. Or I might be missing something simple.