-
Bug
-
Resolution: Done
-
Medium
-
Guilin Release
A template file in a helm chart, like the following was processed by the k8splugin:
- A comment line
{{- if .Values.env.someValue }}
<contents of the resource>
{{- end }}
When the value .Values.env.someValue is false, the template is rendered to be an empty resource, in this case a file with just the comment line:
- A comment line
The k8splugin (and presumably the EMCO rsync component also), fails when it attempts to create this component.
See: DecodeYAML() in src/k8splugin/internal/utils.go