Open Temikus opened 3 years ago
@Temikus Hey! Try nindent
instead of indent
. Also, running helmfile with --debug
like helmfile --debug whatever
would print the rendered helmfile.yaml, which should help you understand why your use of indent
breaks when you have two or more annotations.
It worked! Thank you so much @mumoshu ❤️
Looks like with indent
(without a newline) only the first part of the template is indented 🤔
139: values:
140: - podAnnotations:
141: ad.datadoghq.com/falcosidekick.check_names: >-
142: ["prometheus"]
143: ad.datadoghq.com/falcosidekick.init_configs: >-
144: [{}]
Reworded the issue to be closer to the original problem. If this is WAI - feel free to close :)
And thanks again for your help!
I'm not entirely sure why this occurs but I do want to understand what's happening here. It seems that the
readFile
macro is not working the same way depending on file content.Observe the following release:
With this template, everything works fine (with comment at the top, it can also be a simple space):
If I remove the first comment, i.e.:
, the template no longer builds:
Why could this happen? Is there a way to troubleshoot it somehow to understand what template it tries to build?
Thank you!