You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using indent function in helm templates to generate yaml files. In lots of places we need to indent stuff, but that breaks template indentations (see below).
resources:
{{ .Values.resources | indent 4 }}
Jinja indent filter allows skipping the first line. I think that would be useful so that we can write templates as the following snippet which allows keeping the natural indentation in template files:
Because this can be accomplished with pipelines and existing functions I'm going to go ahead and close this. Thanks for the suggestion and the way of doing it today.
We are using
indent
function in helm templates to generateyaml
files. In lots of places we need to indent stuff, but that breaks template indentations (see below).Jinja
indent
filter allows skipping the first line. I think that would be useful so that we can write templates as the following snippet which allows keeping the natural indentation in template files:The text was updated successfully, but these errors were encountered: