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

mongosh install properly

gemini cli getting file not defined error

vllm : Failed to infer device type