nunjucks removing newline when rendering the template

 Normally when apply nunjucks templating, we ended up with newlines and yaml doesn't like this. To get around this, you can use the syntax here. 

Notice we have an extra - (dash) at the end of the line below and also at the beginning of the closing tag. 


{% if values.addManagedIdentitySupport === "auto" -%}

  workloadIdentityEnabled: true 

{%- endif %}



Comments

Popular posts from this blog

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error